MCPcopy Index your code
hub / github.com/coder/coder / startSpan

Function startSpan

aibridge/passthrough.go:119–124  ·  view source on GitHub ↗
(r *http.Request, tracer trace.Tracer)

Source from the content-addressed store, hash-verified

117}
118
119func startSpan(r *http.Request, tracer trace.Tracer) (context.Context, trace.Span) {
120 return tracer.Start(r.Context(), "Passthrough", trace.WithAttributes(
121 attribute.String(tracing.PassthroughURL, r.URL.String()),
122 attribute.String(tracing.PassthroughMethod, r.Method),
123 ))
124}

Callers 2

newPassthroughRouterFunction · 0.85
newInvalidBaseURLHandlerFunction · 0.85

Calls 3

StartMethod · 0.65
ContextMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected