semconv

package
v0.0.631 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Overview

Package semconv contains OpenTelemetry semantic convention constants.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttrClientIP added in v0.0.522

func AttrClientIP(val string) otelattr.KeyValue

func AttrGeoLocation added in v0.0.589

func AttrGeoLocation(val httpx.GeoLocation) []otelattr.KeyValue

func AttrIdentityID

func AttrIdentityID(val uuid.UUID) otelattr.KeyValue

func AttrNID

func AttrNID(val uuid.UUID) otelattr.KeyValue

func AttrProjectEnvironment added in v0.0.628

func AttrProjectEnvironment(val string) otelattr.KeyValue

func AttrSubscription added in v0.0.628

func AttrSubscription(val uuid.UUID) otelattr.KeyValue

func AttrWorkspace added in v0.0.596

func AttrWorkspace(val uuid.UUID) otelattr.KeyValue

func AttributesFromContext added in v0.0.552

func AttributesFromContext(ctx context.Context) []attribute.KeyValue

func ContextWithAttributes added in v0.0.552

func ContextWithAttributes(ctx context.Context, attrs ...attribute.KeyValue) context.Context

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"
	AttributeKeySubscriptionID     AttributeKey = "SubscriptionID"
	AttributeKeyProjectEnvironment AttributeKey = "ProjectEnvironment"
)

func (AttributeKey) String added in v0.0.552

func (a AttributeKey) String() string

type Event added in v0.0.552

type Event string

func (Event) String added in v0.0.552

func (e Event) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL