Telemetry class

Internal Telemetry Utility for OpenFeature + OpenTelemetry compatibility.

This implementation:

  • Contains NO external dependencies (as required by ticket)
  • Generates OTel-compliant telemetry signals
  • Uses bucketed histograms (not unbounded lists)
  • Supports span events per Appendix D

Constructors

Telemetry()

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

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

Static Properties

metrics → _TelemetryMetrics
Access metrics API
no setter

Static Methods

enableDebugMode() → void
endSpan(_TelemetrySpan span, {Object? error}) → void
End an existing span
recordLatency(String flagKey, Duration latency) → void
Record latency in histogram
startSpan(String name, {Map<String, Object?> attributes = const {}}) → _TelemetrySpan
Start a new span with OTel naming conventions