internal

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtendedContextWithMetadata

func ExtendedContextWithMetadata[metaType any](baseCtx context.Context, metaKey any, metadata metaType) context.Context

ExtendedContextWithMetadata add metadata to base context

func GetContextMetadata

func GetContextMetadata[metaType any](baseCtx context.Context, metaKey any) (metaData metaType, isExist bool)

GetContextMetadata will try get form context.Context metadata

Types

type TraceContextKey

type TraceContextKey struct{}

TraceContextKey for tracer context metadata

Directories

Path Synopsis
generated
mocks/DataDog/datadog-go/statsd
Package mock_statsd is a generated GoMock package.
Package mock_statsd is a generated GoMock package.
mocks/labstack/echo/v4
Package mock_echo is a generated GoMock package.
Package mock_echo is a generated GoMock package.
mocks/metric
Package mock_metric is a generated GoMock package.
Package mock_metric is a generated GoMock package.

Jump to

Keyboard shortcuts

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