Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerOptions ¶
type HandlerOptions struct { Level slog.Leveler ProjectID string TraceInfo func(ctx context.Context) (traceID string, spanID string) }
HandlerOptions are options for a Cloud Logging compatible handler.
func (HandlerOptions) NewHandler ¶
func (ho HandlerOptions) NewHandler(w io.Writer) slog.Handler
NewHandler creates a Cloud Logging compatible handler with the given options that writes to w.
Click to show internal directories.
Click to hide internal directories.