OpenTelemetryHook class

A hook that generates OpenTelemetry-compatible telemetry

Inheritance

Constructors

OpenTelemetryHook.new({required String providerName, void telemetryCallback(OTelAttributes)?, HookPriority priority = HookPriority.NORMAL})

Properties

hashCode int
The hash code for this object.
no setterinherited
metadata HookMetadata
Hook metadata and configuration
finalinherited
providerName String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
telemetryCallback → void Function(OTelAttributes)?
final

Methods

after(HookContext context) Future<void>
After successful evaluation
inherited
before(HookContext context) Future<void>
Before flag evaluation
inherited
error(HookContext context) Future<void>
When an error occurs
inherited
finally_(HookContext context, EvaluationDetails? evaluationDetails, [HookHints? hints]) Future<void>
Always executed at the end, now with evaluation details parameter
override
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