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

style: use HyperDXSpanProcessor #113

Merged
merged 3 commits into from
May 21, 2024
Merged

Conversation

wrn14897
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented May 21, 2024

🦋 Changeset detected

Latest commit: 415523d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hyperdx/node-opentelemetry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

@colehpage colehpage left a comment

Choose a reason for hiding this comment

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

makes sense to me!

Comment on lines 21 to +25
onStart(_span: Span, _parentContext: Context): void {
const traceId = _span.spanContext().traceId;
hyperDXGlobalContext.addTraceSpan(traceId, _span);
if (this.enableHDXGlobalContext) {
const traceId = _span.spanContext().traceId;
hyperDXGlobalContext.addTraceSpan(traceId, _span);
}

Choose a reason for hiding this comment

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

are we sure we don't want to call the call the parent super.onStart(...) here? Is nothing missing if we don't from the default behavior?

Choose a reason for hiding this comment

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

lol nvm 🤦

CleanShot 2024-05-21 at 11 57 53@2x

@kodiakhq kodiakhq bot merged commit aee31d1 into main May 21, 2024
3 checks passed
@kodiakhq kodiakhq bot deleted the warren/start-using-hdx-span-processor branch May 21, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants