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
| Property | Type | Description |
|---|---|---|
enabled | bool | |
endpoint | String? | |
headers | Map<String, String> | |
serviceName | String | |
resourceAttributes | Map<String, String> | |
timeoutMilliseconds | int | |
isConfigured | bool get | |
isConfigured | bool get |
ObservabilityConfig
Observability configuration.
Constructor
dart
const ObservabilityConfig({
this.debug = false,
this.maxBodyBytes = 65536,
this.redact = true,
this.otel = const OtelConfig(),
})Properties
| Property | Type | Description |
|---|---|---|
debug | bool | |
maxBodyBytes | int | Maximum 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. |
redact | bool | When false, skip body/URL/header scrubbing. Off is only safe for local reproduction — never ship with this disabled. |
otel | OtelConfig | OTLP-compatible trace export. This is independent of debug mode. |