You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using SDK in Ktor server to access Bedrock. Each user request to the server creates a new span (with a new traceId) and corresponds to 1 call to Bedrock.
I was trying to use OpenTelemetryProvider to add tracing for SDK. However, enabling telemetryProvider causes multiple independent user requests to share the same traceId (essentially breaking traces).
Regression Issue
Select this option if this issue appears to be a regression.
Expected behavior
Each user request should use a different traceId
Current behavior
Multiple user requests share the same traceId
Steps to Reproduce
Perform 2 consecutive calls to Bedrock through SDK under independent OpenTelemetry spans
Possible Solution
From the first look, it seems like the line private val spanScope = otelSpan.makeCurrent() (here) might be the issue.
Context
No response
Smithy-Kotlin version
1.3.31
Platform (JVM/JS/Native)
JVM
Operating system and version
MacOS 15.1.1
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm using SDK in Ktor server to access Bedrock. Each user request to the server creates a new span (with a new
traceId
) and corresponds to 1 call to Bedrock.I was trying to use
OpenTelemetryProvider
to add tracing for SDK. However, enablingtelemetryProvider
causes multiple independent user requests to share the sametraceId
(essentially breaking traces).Regression Issue
Expected behavior
Each user request should use a different
traceId
Current behavior
Multiple user requests share the same
traceId
Steps to Reproduce
Perform 2 consecutive calls to Bedrock through SDK under independent OpenTelemetry spans
Possible Solution
From the first look, it seems like the line
private val spanScope = otelSpan.makeCurrent()
(here) might be the issue.Context
No response
Smithy-Kotlin version
1.3.31
Platform (JVM/JS/Native)
JVM
Operating system and version
MacOS 15.1.1
The text was updated successfully, but these errors were encountered: