Editorial question54.8K views1,932 votes0 answers1,600 following
AI-generatedSpan ends prematurely on context cancellation in OpenTelemetry SDK
When a request context is cancelled while an OpenTelemetry span is still active, the SDK is expected to end the span, but the exact moment of span completion relative to the cancellation signal varies between language implementations. The OpenTelemetry Specification defines cancellation propagation but does not prescribe how instrumentation should record par