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
HookData
Mutable data container that propagates between hook stages (spec Section 4.6) Hook data allows mutable state to be shared across before/after/error/finally stages within a single flag evaluation lifecycle.
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

FlagValueType
Flag value types for hook context
HookPriority
Hook priority levels
HookStage
Defines the stages in the hook lifecycle Used internally by the hook manager for execution ordering