From d14647d71aeabdcf5da78cc3505c4071d8650629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <2493377+askpt@users.noreply.github.com> Date: Fri, 15 Dec 2023 13:12:36 +0000 Subject: [PATCH] Fixed README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com> --- src/OpenFeature.Contrib.Hooks.Otel/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenFeature.Contrib.Hooks.Otel/README.md b/src/OpenFeature.Contrib.Hooks.Otel/README.md index 77fcfc88..d4e6a784 100644 --- a/src/OpenFeature.Contrib.Hooks.Otel/README.md +++ b/src/OpenFeature.Contrib.Hooks.Otel/README.md @@ -12,6 +12,7 @@ The `open telemetry hook` taps into the after and error methods of the hook life For this, an active span must be set in the `Tracer`, otherwise the hook will no-op. ### Example + The following example demonstrates the use of the `OpenTelemetry hook` with the `OpenFeature dotnet-sdk`. The traces are sent to a `jaeger` OTLP collector running at `localhost:4317`. ```csharp @@ -38,7 +39,7 @@ namespace OpenFeatureTestApp .Build(); // add the Otel Hook to the OpenFeature instance - OpenFeature.Api.Instance.AddHooks(new OtelHook()); + OpenFeature.Api.Instance.AddHooks(new TracingHook()); var flagdProvider = new FlagdProvider(new Uri("http://localhost:8013"));