gen2

package module
v0.0.0-...-162e0aa Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: CC0-1.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttrKeyProjectID = "project_id"
)

Variables

This section is empty.

Functions

func NewTracerProvider

func NewTracerProvider(ctx context.Context, projectID string, defaultSampleRatio float64) (*sdktrace.TracerProvider, error)

Types

type LogHandler

type LogHandler struct {
	// contains filtered or unexported fields
}

LogHandler は構造化ログ世界のバックエンドとしての slog.LogHandler をラップします

func NewLogHandler

func NewLogHandler(w io.Writer, minLevel slog.Level) *LogHandler

func (*LogHandler) Enabled

func (h *LogHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*LogHandler) Handle

func (h *LogHandler) Handle(ctx context.Context, record slog.Record) error

func (*LogHandler) WithAttrs

func (h *LogHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*LogHandler) WithGroup

func (h *LogHandler) WithGroup(name string) slog.Handler

Directories

Path Synopsis
app
web
infra

Jump to

Keyboard shortcuts

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