semconv

package
v0.0.674 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Overview

Package semconv contains OpenTelemetry semantic convention constants.

Index

Constants

View Source
const (
	AttributeKeyDeprecatedCodePathIDAttributeKey AttributeKey = "DeprecatedFeatureID"
	DeprecatedFeatureUsed                        Event        = "DeprecatedFeatureUsed"
)

Variables

This section is empty.

Functions

func AttrClientIP added in v0.0.522

func AttrClientIP(val string) otelattr.KeyValue

func AttrDeprecatedFeatureID added in v0.0.660

func AttrDeprecatedFeatureID(id string) otelattr.KeyValue

func AttrGeoLocation added in v0.0.589

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

func AttrIdentityID

func AttrIdentityID[V string | uuid.UUID](val V) otelattr.KeyValue

func AttrNID

func AttrNID(val uuid.UUID) otelattr.KeyValue

func AttrProjectAPIKeyID added in v0.0.659

func AttrProjectAPIKeyID[V string | uuid.UUID](val V) 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 AttrWorkspaceAPIKeyID added in v0.0.659

func AttrWorkspaceAPIKeyID[V string | uuid.UUID](val V) 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)

func NewDeprecatedFeatureUsedEvent added in v0.0.660

func NewDeprecatedFeatureUsedEvent(ctx context.Context, deprecatedCodeFeatureID string) (string, trace.EventOption)

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"
	AttributeKeyWorkspaceAPIKeyID  AttributeKey = "WorkspaceAPIKeyID"
	AttributeKeyProjectAPIKeyID    AttributeKey = "ProjectAPIKeyID"
)

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