ctx

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBuildTime

func WithBuildTime(ctx context.Context, buildTime string) context.Context

WithBuildTime stores the build time in the context.

func WithCommitHash

func WithCommitHash(ctx context.Context, commitHash string) context.Context

WithCommitHash stores the commit hash in the context.

func WithParentSpanID

func WithParentSpanID(ctx context.Context, parentSpanID string) context.Context

WithParentSpanID stores the parent span ID in the context.

func WithSpanID

func WithSpanID(ctx context.Context, spanID string) context.Context

WithSpanID stores the given span ID in the context.

func WithTraceID

func WithTraceID(ctx context.Context, traceID string) context.Context

WithTraceID stores the given trace ID in the context.

func WithVersion

func WithVersion(ctx context.Context, version string) context.Context

WithVersion stores the application version in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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