Interface AgentTracesConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgentTracesConfig.Builder,,AgentTracesConfig> SdkBuilder<AgentTracesConfig.Builder,,AgentTracesConfig> SdkPojo
- Enclosing class:
AgentTracesConfig
@Mutable
@NotThreadSafe
public static interface AgentTracesConfig.Builder
extends SdkPojo, CopyableBuilder<AgentTracesConfig.Builder,AgentTracesConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AgentTracesConfig.BuildercloudwatchLogs(Consumer<CloudWatchLogsTraceConfig.Builder> cloudwatchLogs) Agent traces read from CloudWatch Logs.cloudwatchLogs(CloudWatchLogsTraceConfig cloudwatchLogs) Agent traces read from CloudWatch Logs.sessionSpans(Collection<Document> sessionSpans) Agent traces provided as inline session spans in OpenTelemetry format.sessionSpans(Document... sessionSpans) Agent traces provided as inline session spans in OpenTelemetry format.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
-
sessionSpans
Agent traces provided as inline session spans in OpenTelemetry format.
- Parameters:
sessionSpans- Agent traces provided as inline session spans in OpenTelemetry format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionSpans
Agent traces provided as inline session spans in OpenTelemetry format.
- Parameters:
sessionSpans- Agent traces provided as inline session spans in OpenTelemetry format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudwatchLogs
Agent traces read from CloudWatch Logs.
- Parameters:
cloudwatchLogs- Agent traces read from CloudWatch Logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudwatchLogs
default AgentTracesConfig.Builder cloudwatchLogs(Consumer<CloudWatchLogsTraceConfig.Builder> cloudwatchLogs) Agent traces read from CloudWatch Logs.
This is a convenience method that creates an instance of theCloudWatchLogsTraceConfig.Builderavoiding the need to create one manually viaCloudWatchLogsTraceConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocloudwatchLogs(CloudWatchLogsTraceConfig).- Parameters:
cloudwatchLogs- a consumer that will call methods onCloudWatchLogsTraceConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-