-
Notifications
You must be signed in to change notification settings - Fork 14
/
span_attributes.go
35 lines (29 loc) · 1.11 KB
/
span_attributes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package nethttplibrary
import "go.opentelemetry.io/otel/attribute"
// HTTP Request attributes
const (
httpRequestBodySizeAttribute = attribute.Key("http.request.body.size")
httpRequestResendCountAttribute = attribute.Key("http.request.resend_count")
httpRequestMethodAttribute = attribute.Key("http.request.method")
httpRequestHeaderContentTypeAttribute = attribute.Key("http.request.header.content-type")
)
// HTTP Response attributes
const (
httpResponseBodySizeAttribute = attribute.Key("http.response.body.size")
httpResponseHeaderContentTypeAttribute = attribute.Key("http.response.header.content-type")
httpResponseStatusCodeAttribute = attribute.Key("http.response.status_code")
)
// Network attributes
const (
networkProtocolNameAttribute = attribute.Key("network.protocol.name")
)
// Server attributes
const (
serverAddressAttribute = attribute.Key("server.address")
)
// URL attributes
const (
urlFullAttribute = attribute.Key("url.full")
urlSchemeAttribute = attribute.Key("url.scheme")
urlUriTemplateAttribute = attribute.Key("url.uri_template")
)