OtlpHttpExporterConfig class
Configuration for the OpenTelemetry span exporter that exports spans using OTLP over HTTP/protobuf
Constructors
-
OtlpHttpExporterConfig({String endpoint = 'http://localhost:4318', Map<
String, String> ? headers, Duration timeout = const Duration(seconds: 10), bool compression = false, int maxRetries = 3, Duration baseDelay = const Duration(milliseconds: 100), Duration maxDelay = const Duration(seconds: 1), String? certificate, String? clientKey, String? clientCertificate}) - Creates a new configuration for the OTLP HTTP span exporter
Properties
- baseDelay → Duration
-
Base delay for exponential backoff when retrying
Default: 100 milliseconds
final
- certificate → String?
-
Path to the TLS certificate file for secure connections.
final
- clientCertificate → String?
-
Path to the client certificate file for secure connections with client authentication.
final
- clientKey → String?
-
Path to the client key file for secure connections with client authentication.
final
- compression → bool
-
Whether to use gzip compression for the HTTP body
Default: false
final
- endpoint → String
-
The endpoint to export spans to (e.g., 'http://localhost:4318/v1/traces')
Default: 'http://localhost:4318'
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Additional HTTP headers to include in the export requests
final
- maxDelay → Duration
-
Maximum delay for exponential backoff when retrying
Default: 1 second
final
- maxRetries → int
-
Maximum number of retries for failed export requests
Default: 3
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
The timeout for export HTTP requests
Default: 10 seconds
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited