hooks library

Classes

BaseHook
A base hook implementation with empty methods
EvaluationDetails
Details about the evaluation result
Hook
Interface for implementing hooks
HookConfig
Configuration for hook behavior
HookContext
Context passed to hooks during execution
HookHints
Optional hints for hook execution
HookManager
Manager for hook registration and execution
HookMetadata
Metadata for hook identification and configuration
OpenTelemetryHook
A hook that generates OpenTelemetry-compatible telemetry
OpenTelemetryUtil
Utility class for generating OpenTelemetry-compatible telemetry from feature flag evaluations
OTelAttribute
Represents an OpenTelemetry attribute
OTelAttributes
A collection of OpenTelemetry attributes
OTelFeatureFlagConstants
OpenTelemetry semantic conventions for feature flags Based on https://opentelemetry.io/docs/specs/semconv/feature-flags/feature-flags-spans/

Enums

HookPriority
Hook priority levels
HookStage
Defines the stages in the hook lifecycle Used internally by the hook manager for execution ordering