MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / EndWithStatusCode

Function EndWithStatusCode

tracing/tracing.go:204–206  ·  view source on GitHub ↗

EndWithStatusCode will set a status for the span and then end it.

(span trace.Span, statusCode int)

Source from the content-addressed store, hash-verified

202
203// EndWithStatusCode will set a status for the span and then end it.
204func EndWithStatusCode(span trace.Span, statusCode int) {
205 endSpan(span, statusCode, codes.Ok, nil)
206}
207
208// EndWithErrorStatus will set a status for the span and then end it.
209func endSpan(span trace.Span, upstreamStatusCode int, spanStatusCode codes.Code, err error) {

Callers 1

proxyHTTPRequestMethod · 0.92

Calls 1

endSpanFunction · 0.85

Tested by

no test coverage detected