Sequential async use of startActiveSpan
within a startActiveSpan
results in incorrect span hierarchy
#5373
Labels
bug
Something isn't working
pkg:context-zone
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
What happened?
I've created a repository that contains an SSCCE for this issue.
https://github.com/dancrumb/otel-js-bug-recreate
In short, this code snippet:
Should result in this trace/span structure:
but actually results in
I've run this on Chrome; I don't see that the browser should matter too much.
OpenTelemetry Setup Code
package.json
See https://github.com/dancrumb/otel-js-bug-recreate
Relevant log output
Operating System and Version
M1 Mac Pro running Sequoia 15.1.1
Runtime and Version
Chrome Version 132.0.6834.110 (Official Build) (arm64)
I'm using
esbuild
to create the bundle that gets executed.The text was updated successfully, but these errors were encountered: