ITelemetryRepository class abstract
Repository interface for telemetry operations.
Provides methods for exporting traces, metrics, and events.
Implementations can send data to OpenTelemetry, console, or custom backends.
Methods return Future<void> to simplify error handling; errors are handled
internally.
- Implementers
Constructors
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
-
exportEvent(
TelemetryEvent event) → Future< void> - Export an event to telemetry backend.
-
exportMetric(
Metric metric) → Future< void> - Export a metric to telemetry backend.
-
exportSpan(
Span span) → Future< void> - Export a span to telemetry backend.
-
exportTrace(
Trace trace) → Future< void> - Export a trace to telemetry backend.
-
flush(
) → Future< void> - Flush any buffered telemetry data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shutdown(
) → Future< void> - Shutdown telemetry exporter and release resources.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateSpan(
{required String spanId, required DateTime endTime, Map< String, String> attributes = const {}}) → Future<void> - Update an existing span with new end time and attributes.
-
updateTrace(
{required String traceId, required DateTime endTime, Map< String, String> attributes = const {}}) → Future<void> - Update an existing trace with new end time and attributes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited