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

Function TestLogEventWithEmptySpan

proxy/tracing_test.go:798–807  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

796}
797
798func TestLogEventWithEmptySpan(t *testing.T) {
799 tracer := tracingtest.NewTracer()
800 tracing := newProxyTracing(&OpenTracingParams{
801 Tracer: tracer,
802 })
803
804 // should not panic
805 tracing.logEvent(nil, "test", StartEvent)
806 tracing.logEvent(nil, "test", EndEvent)
807}
808
809func TestSetTagWithEmptySpan(t *testing.T) {
810 tracer := tracingtest.NewTracer()

Callers

nothing calls this directly

Calls 3

NewTracerFunction · 0.92
newProxyTracingFunction · 0.85
logEventMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…