context

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 0 Imported by: 20 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 gRPC 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"
)

Jump to

Keyboard shortcuts

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