Skip to content

Commit 334c543

Browse files
committed
Add KDocs and default impl
1 parent df45912 commit 334c543

File tree

1 file changed

+5
-1
lines changed
  • runtime/observability/telemetry-api/common/src/aws/smithy/kotlin/runtime/telemetry/trace

1 file changed

+5
-1
lines changed

runtime/observability/telemetry-api/common/src/aws/smithy/kotlin/runtime/telemetry/trace/TraceSpan.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import aws.smithy.kotlin.runtime.collections.Attributes
1010
import aws.smithy.kotlin.runtime.collections.emptyAttributes
1111
import aws.smithy.kotlin.runtime.telemetry.context.Scope
1212
import 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

0 commit comments

Comments
 (0)