From fd3c4d763fcdc80c0b4b7ab077316c01de699fc9 Mon Sep 17 00:00:00 2001 From: James Wang Date: Wed, 25 Sep 2024 04:31:48 +0800 Subject: [PATCH] docs(main): correct function name and fix formatting in OpenTelemetry Hook documentation (#583) Signed-off-by: JamesWang Co-authored-by: james_wang --- hooks/open-telemetry/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/open-telemetry/README.md b/hooks/open-telemetry/README.md index 248f2a6be..e86884e77 100644 --- a/hooks/open-telemetry/README.md +++ b/hooks/open-telemetry/README.md @@ -103,18 +103,18 @@ span.End() ### Options -### WithErrorStatusEnabled +#### WithErrorStatusEnabled Enable setting span status to `Error` in case of an error. Default behavior is disabled, span status is unset for errors. -### WithTracesAttributeSetter +#### WithTracesAttributeSetter This constructor options allows to provide a custom callback to extract dimensions from `FlagMetadata`. These attributes are added at the `After` stage of the hook. ```go -NewTracesHook(WithMetricsAttributeSetter( +NewTracesHook(WithTracesAttributeSetter( func(metadata openfeature.FlagMetadata) []attribute.KeyValue { // custom attribute extraction logic