Interface AwsSdkTelemetryConfig.AwsSdkConfig

Enclosing interface:
AwsSdkTelemetryConfig

public static interface AwsSdkTelemetryConfig.AwsSdkConfig
  • Method Details

    • experimentalSpanAttributes

      @WithDefault("false") Optional<Boolean> experimentalSpanAttributes()
      Sets whether experimental attributes should be set to spans. These attributes may be changed or removed in the future, so only enable this if you know you do not require attributes filled by this instrumentation to be stable across versions.
    • experimentalUsePropagatorForMessaging

      @WithDefault("false") Optional<Boolean> experimentalUsePropagatorForMessaging()
      Sets whether the io.opentelemetry.context.propagation.TextMapPropagator configured in the provided OpenTelemetry should be used to inject into supported messaging attributes (currently only SQS; SNS may follow). In addition, the X-Ray propagator is always used. Using the messaging propagator is needed if your tracing vendor requires special tracestate entries or legacy propagation information that cannot be transported via X-Ray headers. It may also be useful if you need to directly connect spans over messaging in your tracing backend, bypassing any intermediate spans/X-Ray segments that AWS may create in the delivery process. This option is off by default. If enabled, on extraction the configured propagator will be preferred over X-Ray if it can extract anything.
    • experimentalRecordIndividualHttpError

      @WithDefault("false") Optional<Boolean> experimentalRecordIndividualHttpError()
      Sets whether errors returned by each individual HTTP request should be recorded as events for the SDK span. This option is off by default. If enabled, the HTTP error code and the error message will be captured and associated with the span. This provides detailed insights into errors on a per-request basis.