Interface Context.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Context.Builder,,Context> SdkBuilder<Context.Builder,,Context> SdkPojo
- Enclosing class:
Context
@Mutable
@NotThreadSafe
public static interface Context.Builder
extends SdkPojo, CopyableBuilder<Context.Builder,Context>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Context.BuilderspanContext(Consumer<SpanContext.Builder> spanContext) The span context information that uniquely identifies the trace and span being evaluated, including session ID, trace ID, and span ID for precise targeting within the agent's execution flow.spanContext(SpanContext spanContext) The span context information that uniquely identifies the trace and span being evaluated, including session ID, trace ID, and span ID for precise targeting within the agent's execution flow.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
spanContext
The span context information that uniquely identifies the trace and span being evaluated, including session ID, trace ID, and span ID for precise targeting within the agent's execution flow.
- Parameters:
spanContext- The span context information that uniquely identifies the trace and span being evaluated, including session ID, trace ID, and span ID for precise targeting within the agent's execution flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spanContext
The span context information that uniquely identifies the trace and span being evaluated, including session ID, trace ID, and span ID for precise targeting within the agent's execution flow.
This is a convenience method that creates an instance of theSpanContext.Builderavoiding the need to create one manually viaSpanContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospanContext(SpanContext).- Parameters:
spanContext- a consumer that will call methods onSpanContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-