OtlpGrpcSpanExporter class
An OpenTelemetry span exporter that exports spans using OTLP over gRPC.
This exporter sends trace data to an OpenTelemetry collector or compatible backend using the OpenTelemetry Protocol (OTLP) over gRPC. It supports features such as:
- Retrying failed exports with exponential backoff
- Secure and insecure connections
- Custom headers and timeouts
- Compression
- Implemented types
Constructors
- OtlpGrpcSpanExporter.new([OtlpGrpcExporterConfig? config])
- Creates a new OtlpGrpcSpanExporter with the specified configuration.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
export(
List< Span> spans) → Future<void> -
Exports a batch of finished Spans.
override
-
forceFlush(
) → Future< void> -
Force flush any pending spans
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shutdown(
) → Future< void> -
Shuts down the exporter.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited