Skip to content

ObservabilityConfig

Category: Observability

Source: observability_config.dart

Standard OTLP tracing export configuration.

Classes

OtelConfig

Standard OTLP tracing export configuration.

Constructor

dart
const OtelConfig({
    this.enabled = false,
    this.endpoint,
    this.headers = const {},
    this.serviceName = 'glue',
    this.resourceAttributes = const {},
    this.timeoutMilliseconds = 10000,
  })

Properties

PropertyTypeDescription
enabledbool
endpointString?
headersMap<String, String>
serviceNameString
resourceAttributesMap<String, String>
timeoutMillisecondsint
isConfiguredbool get
isConfiguredbool get

ObservabilityConfig

Observability configuration.

Constructor

dart
const ObservabilityConfig({
    this.debug = false,
    this.maxBodyBytes = 65536,
    this.redact = true,
    this.otel = const OtelConfig(),
  })

Properties

PropertyTypeDescription
debugbool
maxBodyBytesintMaximum bytes captured per HTTP request/response body, tool input, or tool output. Anything over the cap is truncated with a marker. Applied only when debug logging is on.
redactboolWhen false, skip body/URL/header scrubbing. Off is only safe for local reproduction — never ship with this disabled.
otelOtelConfigOTLP-compatible trace export. This is independent of debug mode.

Released under the MIT License.