Skip to content

Commit fd3c4d7

Browse files
jame2408james_wang
and
james_wang
authoredSep 24, 2024
docs(main): correct function name and fix formatting in OpenTelemetry Hook documentation (#583)
Signed-off-by: JamesWang <jame2408@gmail.com> Co-authored-by: james_wang <james_wang@mayohr.com>
1 parent 0e3ceb2 commit fd3c4d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎hooks/open-telemetry/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ span.End()
103103

104104
### Options
105105

106-
### WithErrorStatusEnabled
106+
#### WithErrorStatusEnabled
107107

108108
Enable setting span status to `Error` in case of an error. Default behavior is disabled, span status is unset for errors.
109109

110-
### WithTracesAttributeSetter
110+
#### WithTracesAttributeSetter
111111

112112
This constructor options allows to provide a custom callback to extract dimensions from `FlagMetadata`.
113113
These attributes are added at the `After` stage of the hook.
114114

115115
```go
116116

117-
NewTracesHook(WithMetricsAttributeSetter(
117+
NewTracesHook(WithTracesAttributeSetter(
118118
func(metadata openfeature.FlagMetadata) []attribute.KeyValue {
119119
// custom attribute extraction logic
120120

0 commit comments

Comments
 (0)
Please sign in to comment.