logging

package
v0.0.0-...-addc432 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetaToContext

func AddMetaToContext(ctx context.Context, args ...slog.Attr) context.Context

func AddToContext

func AddToContext(ctx context.Context, logger *slog.Logger) context.Context

func FromContext

func FromContext(ctx context.Context) *slog.Logger

func NewGoogleCloudTracingLogHandler

func NewGoogleCloudTracingLogHandler(baseHandler slog.Handler, project string) *googleCloudTracingLogHandler

Create a slog.Handler that adds Google Cloud Trace fields to log records

NOTE: Requires the use of the *Context slog methods to get the tracing info

Types

This section is empty.

Jump to

Keyboard shortcuts

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