Skip to content

Commit 58aa56c

Browse files
fix: deprecate otel hook (open-feature#449)
Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Kavindu Dodanduwa <[email protected]>
1 parent 7914b7d commit 58aa56c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libs/hooks/open-telemetry/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:warning: This package will be deprecated. Please use the telemetry hooks package from `@openfeature/open-telemetry-hooks`.
2+
13
# OpenTelemetry Hook
24

35
The OpenTelemetry hook for OpenFeature provides a [spec compliant][otel-spec] way to automatically add a feature flag evaluation to a span as a span event. Since feature flags are dynamic and affect runtime behavior, it’s important to collect relevant feature flag telemetry signals. This can be used to determine the impact a feature has on a request, enabling enhanced observability use cases, such as A/B testing or progressive feature releases.

libs/hooks/open-telemetry/src/lib/open-telemetry-hook.ts

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const spanEventProperties = Object.freeze({
88
VARIANT: 'feature_flag.variant',
99
});
1010

11+
/**
12+
* @deprecated OpenTelemetryHook (and this package) will be deprecated. Please use TracingHook from `@openfeature/open-telemetry-hooks`
13+
*/
1114
export class OpenTelemetryHook implements Hook {
1215
after(hookContext: HookContext, evaluationDetails: EvaluationDetails<FlagValue>) {
1316
const currentTrace = trace.getActiveSpan();

0 commit comments

Comments
 (0)