Documentation
¶
Index ¶
- func DeletingSharedResourceFromContext(ctx context.Context) bool
- func GetKeyValuesFromCtx(ctx context.Context) map[interface{}]interface{}
- func GetLogger(ctx context.Context) *zerolog.Logger
- func GetTracerProvider(ctx context.Context) trace.TracerProvider
- func PutKeyValuesToCtx(m map[interface{}]interface{}) context.Context
- func WithDeletingSharedResource(ctx context.Context) context.Context
- func WithLogger(ctx context.Context, l *zerolog.Logger) context.Context
- func WithTracerProvider(ctx context.Context, p trace.TracerProvider) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyValuesFromCtx ¶
GetKeyValuesFromCtx retrieves all the key-value pairs from the provided context.
func GetLogger ¶
GetLogger returns the logger associated with the given context or a disabled logger in case no logger is stored inside the context.
func GetTracerProvider ¶
func GetTracerProvider(ctx context.Context) trace.TracerProvider
GetTracerProvider returns the TracerProvider associated with the given context. (Or the global default TracerProvider if there is no TracerProvider in the context)
func PutKeyValuesToCtx ¶
PutKeyValuesToCtx puts all the key-value pairs from the provided map to a background context.
func WithLogger ¶
WithLogger returns a context with an associated logger.
func WithTracerProvider ¶
WithTracerProvider returns a context with an associated TracerProvider
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.