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

fix(node): Add conditions to TracingHandler.startTransaction #5485

Merged
merged 4 commits into from Jul 28, 2022

Conversation

lobsterkatie
Copy link
Member

Currently, our TracingHandler always starts a transaction, whether or not tracing is enabled. It also traces OPTIONS and HEAD requests, which it shouldn't. This fixes both of those problems by checking both the current client's options (for tracing enablement) and the incoming request's method before starting a transaction.

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (minor typo correction)

packages/node/src/handlers.ts Outdated Show resolved Hide resolved
@Lms24 Lms24 merged commit 538f41c into master Jul 28, 2022
@Lms24 Lms24 deleted the kmclb-start-node-transactions-selectively branch July 28, 2022 16:33
@Lms24 Lms24 changed the title fix(node): Add conditions to TracingHanlder.startTransaction fix(node): Add conditions to TracingHandler.startTransaction Jul 28, 2022
@g-popovic
Copy link

Is it still possible to enable some config option or something so that OPTIONS requests still get tracked? Or are they fully disabled and not possible to track now?

@mydea
Copy link
Member

mydea commented Jan 26, 2024

In the upcoming v8 release of the SDK, we will switch the underlying tracing technology to OpenTelemetry. We may add an option then to allow this, possibly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants