semconv

package
v0.0.584 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 6

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 AttrIdentityID

func AttrIdentityID(val uuid.UUID) otelattr.KeyValue

func AttrNID

func AttrNID(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"
)

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