Documentation
¶
Index ¶
- func AddMetaToContext(ctx context.Context, args ...slog.Attr) context.Context
- func AddToContext(ctx context.Context, logger *slog.Logger) context.Context
- func FromContext(ctx context.Context) *slog.Logger
- func NewGoogleCloudTracingLogHandler(baseHandler slog.Handler, project string) *googleCloudTracingLogHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMetaToContext ¶
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.
Click to show internal directories.
Click to hide internal directories.