go.opencensus.io/plugin/ochttp.trackingResponseWriter.statusCode (field)
8 uses
go.opencensus.io/plugin/ochttp (current package)
server.go#L174: statusCode int
server.go#L185: if t.statusCode == 0 {
server.go#L186: t.statusCode = 200
server.go#L190: span.SetStatus(TraceStatus(t.statusCode, t.statusLine))
server.go#L191: span.AddAttributes(trace.Int64Attribute(StatusCodeAttribute, int64(t.statusCode)))
server.go#L201: allTags[0] = tag.Upsert(StatusCode, strconv.Itoa(t.statusCode))
server.go#L222: t.statusCode = statusCode
server.go#L223: t.statusLine = http.StatusText(t.statusCode)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |