MCPcopy
hub / github.com/grafana/dskit / SetTag

Method SetTag

tracing/span.go:49–56  ·  view source on GitHub ↗
(name string, value any)

Source from the content-addressed store, hash-verified

47}
48
49func (s *Span) SetTag(name string, value any) {
50 if s.opentracingSpan != nil {
51 s.opentracingSpan.SetTag(name, value)
52 }
53 if s.otelSpan != nil {
54 s.otelSpan.SetAttributes(KeyValueToOTelAttribute(name, value))
55 }
56}
57
58func (s *Span) SetError() {
59 if s.otelSpan != nil {

Callers 3

wrapWithOpenTracingMethod · 0.45
CollectedRequestFunction · 0.45

Calls 1

KeyValueToOTelAttributeFunction · 0.85

Tested by

no test coverage detected