Add OTel hook #171
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Now that OTel 2529 is merged, we should update the (or create a new) Open Telemetry hook.
Basically, this would entail creating a hook which:
after
stage: gets the current span and adds an appropriately named event (feature_flag
), with the attributes (feature_flag.key
,feature_flag.provider_name
, andfeature_flag.variant
)error
stage, records the exceptionIn pseudocode, this looks something like:
See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/feature-flags.md
Note: For the this repo, we may want to deprecate the old hook.
The text was updated successfully, but these errors were encountered: