Skip to content

feat(node-experimental): Allow to pass base span options to trace methods #10006

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

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 2, 2024

This was brought up in Slack, currently you cannot pass other span properties directly to otel startSpan(). This now adds attributes, kind and startTime to better align with OTEL.

Note that I chose to omit root and links options, not sure if we want to support those in none-OTEL environments, and this API should (~~) be the same for node & non-node in v8.

@mydea mydea requested review from Lms24 and AbhiPrasad January 2, 2024 08:59
@mydea mydea self-assigned this Jan 2, 2024
@mydea mydea merged commit 84ca84f into develop Jan 3, 2024
@mydea mydea deleted the fn/startSpanAttributes branch January 3, 2024 08:33
anonrig pushed a commit that referenced this pull request Jan 3, 2024
…hods (#10006)

This was brought up in Slack, currently you cannot pass other span
properties directly to otel `startSpan()`. This now adds `attributes`,
`kind` and `startTime` to better align with OTEL.

Note that I chose to omit `root` and `links` options, not sure if we
want to support those in none-OTEL environments, and this API should
(~~) be the same for node & non-node in v8.
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.

2 participants