CustomSpanRegistry class
Dart-side span id registry: maps returned by the native bridge to trace ids, plus zone-scoped “active global span” for CoralogixGlobalSpan.withContext.
Native code owns real OTel spans; this class only holds string ids and supports Dart auto-instrumentation (HTTP, interactions, etc.).
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
-
ignoredInstruments
→ Set<
CoralogixIgnoredInstrument> -
Ignored instruments for the current CxFlutterPlugin.getCustomTracer
configuration (Dart-side only). Read-only view; mutate via
addIgnoredInstrument, removeIgnoredInstrument, clearIgnoredInstruments,
or setIgnoredInstruments.
no setter
Static Methods
-
addIgnoredInstrument(
CoralogixIgnoredInstrument instrument) → void -
clear(
) → void - Clears span registrations and ignored-instrument state (e.g. on SDK shutdown).
-
clearIgnoredInstruments(
) → void -
getActiveGlobalSpanId(
) → String? - Active global span id for the current async zone, if any.
-
getTraceId(
String spanId) → String? -
registerSpan(
String spanId, String traceId) → void -
removeIgnoredInstrument(
CoralogixIgnoredInstrument instrument) → void -
runWithActiveGlobalSpan(
String spanId, Future< void> block()) → Future<void> -
Runs
blockin a zone where getActiveGlobalSpanId returnsspanId. -
setIgnoredInstruments(
Set< CoralogixIgnoredInstrument> instruments) → void - Replaces ignoredInstruments (e.g. when CxFlutterPlugin.getCustomTracer runs).
-
unregisterSpan(
String spanId) → void