[otel-hook] Update OTel Hook to conform to official conventions #49
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 Open Telemetry hook (currently exists, but not consistent with the convention).
Basically, this would entail updating the hook to:
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
The text was updated successfully, but these errors were encountered: