Documentation ¶
Overview ¶
Package semconv contains OpenTelemetry semantic convention constants.
Index ¶
- func AttrClientIP(val string) otelattr.KeyValue
- func AttrGeoLocation(val httpx.GeoLocation) []otelattr.KeyValue
- func AttrIdentityID(val uuid.UUID) otelattr.KeyValue
- func AttrNID(val uuid.UUID) otelattr.KeyValue
- func AttrWorkspace(val uuid.UUID) otelattr.KeyValue
- func AttributesFromContext(ctx context.Context) []attribute.KeyValue
- func ContextWithAttributes(ctx context.Context, attrs ...attribute.KeyValue) context.Context
- func Middleware(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- type AttributeKey
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttrClientIP ¶ added in v0.0.522
func AttrGeoLocation ¶ added in v0.0.589
func AttrGeoLocation(val httpx.GeoLocation) []otelattr.KeyValue
func AttributesFromContext ¶ added in v0.0.552
func ContextWithAttributes ¶ added in v0.0.552
func Middleware ¶ added in v0.0.552
func Middleware(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Types ¶
type AttributeKey ¶ added in v0.0.552
type AttributeKey string
const ( AttributeKeyIdentityID AttributeKey = "IdentityID" AttributeKeyNID AttributeKey = "ProjectID" AttributeKeyClientIP AttributeKey = "ClientIP" AttributeKeyGeoLocationCity AttributeKey = "GeoLocationCity" AttributeKeyGeoLocationRegion AttributeKey = "GeoLocationRegion" AttributeKeyGeoLocationCountry AttributeKey = "GeoLocationCountry" AttributeKeyWorkspace AttributeKey = "WorkspaceID" )
func (AttributeKey) String ¶ added in v0.0.552
func (a AttributeKey) String() string
Click to show internal directories.
Click to hide internal directories.