Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

observability: use manual tracing instead of auto-traceWrapping until opentelemetry-instrumentation-spanner is ported #2114

Open
2 tasks
odeke-em opened this issue Sep 17, 2024 · 0 comments · May be fixed by #2118
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@odeke-em
Copy link
Contributor

This issue serves as a decision marker and record for our method of attack to get observability in for this package. I implemented
2 kinds of tracing to ensure the team had a buffet of options:

Internally at Google it was discussed and resolved with @surbhigarg92 representing us when tabled with the OpenTelemetry team at Google that:

  • traceWrap was well received but we should send that instrumentation to be hosted at opentelemetry-js-contrib
  • manually instrument the libraries currently

One thing to note is that we shall need to add feature guards that will ensure that customers don't doubly import the future opentelemetry-instrumentation-spanner and then also with the manual spans.

@odeke-em odeke-em added priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Sep 17, 2024
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/nodejs-spanner API. label Sep 17, 2024
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 17, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 17, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 19, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 19, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more
precise to avoid flakes.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
gcf-merge-on-green bot pushed a commit that referenced this issue Sep 20, 2024
This change is part of a series of changes to add
OpenTelemetry traces, focused on BatchTransaction and Table.

While here, made the tests for sessionPool spans much more precise to avoid flakes.

Updates #2079
Built from PR #2087
Updates #2114
@release-please release-please bot linked a pull request Sep 20, 2024 that will close this issue
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
Adds trace spans for Database methods, as well as tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
Adds trace spans for Database methods, as well as tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 20, 2024
Adds trace spans for Database methods, as well as tests
for methods:

* getSession
* getSnapshot
* run
* runStream
* runTransaction

tracing of other methods shall come in follow-up PRs.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 21, 2024
This change adds tracing spans to Session for methods:
* create
* getMetadata
* keepAlive

and corresponding tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 22, 2024
This change adds tracing spans to Session for methods:
* create
* getMetadata
* keepAlive

and corresponding tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
This change adds tracing spans to Session for methods:
* create
* getMetadata
* keepAlive

and corresponding tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
This change adds tracing spans to Session for methods:
* create
* getMetadata
* keepAlive

and corresponding tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
This change adds tracing spans to Session for methods:
* create
* getMetadata
* keepAlive

and corresponding tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
This change adds tracing spans to Session for methods:
* create
* getMetadata
* keepAlive

and corresponding tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
Adds trace spans for Database methods, as well as tests
for methods:

* getSession
* getSnapshot
* run
* runStream
* runTransaction

tracing of other methods shall come in follow-up PRs.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
Adds trace spans for Database methods, as well as tests
for methods:

* getSession
* getSnapshot
* run
* runStream
* runTransaction

tracing of other methods shall come in follow-up PRs.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 23, 2024
Adds trace spans for Database methods, as well as tests
for methods:

* getSession
* getSnapshot
* run
* runStream
* runTransaction

tracing of other methods shall come in follow-up PRs.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 30, 2024
Adds trace spans for Database methods, as well as tests
for methods:

* getSession
* getSnapshot
* run
* runStream
* runTransaction

tracing of other methods shall come in follow-up PRs.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 30, 2024
This change adds tracing spans to Session for methods:
* create
* getMetadata
* keepAlive

and corresponding tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 30, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Sep 30, 2024
Adds trace spans for Database methods, as well as tests
for methods:

* getSession
* getSnapshot
* run
* runStream
* runTransaction

tracing of other methods shall come in follow-up PRs.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
gcf-merge-on-green bot pushed a commit that referenced this issue Sep 30, 2024
Adds trace spans for Database methods, as well as tests
for methods:

* getSession
* getSnapshot
* run
* runStream
* runTransaction

tracing of other methods shall come in follow-up PRs.

Updates #2079
Built from PR #2087
Updates #2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Oct 1, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Oct 1, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Oct 1, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Oct 3, 2024
This change adds observability tracing for
Transaction along with tests.

Alsoo while here, added SessionPool.createSessions span.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Oct 3, 2024
This change adds observability tracing for
Transaction along with tests.

Alsoo while here, added SessionPool.createSessions span.

Updates googleapis#2079
Built from PR googleapis#2087
Updates googleapis#2114
odeke-em added a commit to odeke-em/nodejs-spanner that referenced this issue Oct 4, 2024
This change adds observability tracing for
Transaction along with tests.

Updates googleapis#2079
Updates googleapis#2114
Requires PR googleapis#2145.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant