MCPcopy
hub / github.com/cloudflare/cloudflared / EndWithErrorStatus

Function EndWithErrorStatus

tracing/tracing.go:199–201  ·  view source on GitHub ↗

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

(span trace.Span, err error)

Source from the content-addressed store, hash-verified

197
198// EndWithErrorStatus will set a status for the span and then end it.
199func EndWithErrorStatus(span trace.Span, err error) {
200 endSpan(span, -1, codes.Error, err)
201}
202
203// EndWithStatusCode will set a status for the span and then end it.
204func EndWithStatusCode(span trace.Span, statusCode int) {

Callers 9

RegisterUdpSessionMethod · 0.92
RequestMethod · 0.92
RequestMethod · 0.92
sendReplyMethod · 0.92
RequestMethod · 0.92
handleResponseMethod · 0.92
proxyHTTPRequestMethod · 0.92
proxyStreamMethod · 0.92
proxyTCPStreamMethod · 0.92

Calls 1

endSpanFunction · 0.85

Tested by

no test coverage detected