context

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 0 Imported by: 9

README

Various internal context unique tools

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OtelTracerNameKey is OpenTelemetry context key
	OtelTracerNameKey = &ContextKey{name: "tracer_name"} //nolint:gochecknoglobals

	// OtelRootSpanKey is OpenTelemetry root span context key
	OtelRootSpanKey = &ContextKey{name: "otel_root_span"} //nolint:gochecknoglobals

	// PsrContextKey is a context key. It can be used in the http attributes
	// immutable
	PsrContextKey = &ContextKey{"psr_attributes"} //nolint:gochecknoglobals
)
View Source
var (
	// GrpcTranscoderSpanKey is gRPC transcoder span context key
	GrpcTranscoderSpanKey = &ContextKey{name: "grpc_transcoder_span"} //nolint:gochecknoglobals

	// GrpcMethodDescKey is gRPC method descriptor context key
	GrpcMethodDescKey = &ContextKey{name: "grpc_method_desc"} //nolint:gochecknoglobals

	// GrpcRequestMessageKey is gGRPC request message context key
	GrpcRequestMessageKey = &ContextKey{name: "grpc_request_message"} //nolint:gochecknoglobals
)

Functions

This section is empty.

Types

type ContextKey

type ContextKey struct {
	// contains filtered or unexported fields
}

func (*ContextKey) String

func (ck *ContextKey) String() string

type PoolKey added in v1.1.0

type PoolKey string
const (
	// PoolName used in the Jobs drivers to indicate on which pool execute the job
	PoolName PoolKey = "pool" //nolint:gochecknoglobals
)

Jump to

Keyboard shortcuts

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