MCPcopy Create free account
hub / github.com/zalando/skipper / setTag

Method setTag

proxy/tracing.go:107–121  ·  view source on GitHub ↗
(span ot.Span, key string, value any)

Source from the content-addressed store, hash-verified

105}
106
107func (pt *proxyTracing) setTag(span ot.Span, key string, value any) *proxyTracing {
108 if span == nil {
109 return pt
110 }
111
112 if !pt.excludeTags[key] {
113 if s, ok := value.(string); ok {
114 span.SetTag(key, ensureUTF8(s))
115 } else {
116 span.SetTag(key, value)
117 }
118 }
119
120 return pt
121}
122
123func (pt *proxyTracing) logStreamEvent(span ot.Span, eventName, eventValue string) {
124 if !pt.logStreamEvents {

Callers 11

logEventMethod · 0.95
makeBackendRequestMethod · 0.45
doMethod · 0.45
serveResponseMethod · 0.45
errorResponseMethod · 0.45
ServeHTTPMethod · 0.45
setCommonSpanInfoMethod · 0.45
TestSetEnabledTagsFunction · 0.45
TestSetDisabledTagsFunction · 0.45
TestSetTagWithEmptySpanFunction · 0.45
loopbackInternalMethod · 0.45

Calls 2

SetTagMethod · 0.80
ensureUTF8Function · 0.70

Tested by 3

TestSetEnabledTagsFunction · 0.36
TestSetDisabledTagsFunction · 0.36
TestSetTagWithEmptySpanFunction · 0.36