logmeta

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package logmeta holds the request-scoped log metadata map. It lives here rather than in the elephantine root package so that both the root package and the rpc package can write to the same map: the root package uses the rpc package's interceptors, so rpc cannot import it back.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context) map[string]any

Get returns the log metadata map for the context, or nil if it has none.

func Set

func Set(ctx context.Context, key string, value any)

Set sets a log metadata value on the context if it has a log metadata map.

func With

func With(ctx context.Context) context.Context

With creates a child context with a log metadata map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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