WithAttribute appends attributes to a new created span.
(k string, v any)
| 37 | |
| 38 | // WithAttribute appends attributes to a new created span. |
| 39 | func WithAttribute(k string, v any) SpanOpt { |
| 40 | return func(config *StartConfig) { |
| 41 | config.spanOpts = append(config.spanOpts, |
| 42 | trace.WithAttributes(Attribute(k, v))) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // UpdateHTTPClient updates the http client with the necessary otel transport |
| 47 | func UpdateHTTPClient(client *http.Client, name string) { |
no test coverage detected
searching dependent graphs…