File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
runtime/observability/telemetry-api/common/src/aws/smithy/kotlin/runtime/telemetry/trace Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import aws.smithy.kotlin.runtime.collections.Attributes
1010import aws.smithy.kotlin.runtime.collections.emptyAttributes
1111import aws.smithy.kotlin.runtime.telemetry.context.Scope
1212import kotlin.coroutines.CoroutineContext
13+ import kotlin.coroutines.EmptyCoroutineContext
1314
1415/* *
1516 * Represents a single operation/task within a trace. Each trace contains a root span and
@@ -28,7 +29,10 @@ public interface TraceSpan : Scope {
2829 */
2930 public val spanContext: SpanContext
3031
31- public fun asContextElement (): CoroutineContext
32+ /* *
33+ * A representation of this span as a [CoroutineContext] element
34+ */
35+ public fun asContextElement (): CoroutineContext = EmptyCoroutineContext
3236
3337 /* *
3438 * Set an attribute on the span
You can’t perform that action at this time.
0 commit comments