instr

package
v1.0.0-cli.0...-4491760 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package instr provides instrumentation for observability pipelines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupOTel

func SetupOTel(
	ctx context.Context,
	serviceName string,
	disable bool,
) (shutdown func(context.Context) error, reterr error)

Types

type OTelSlogHandler

type OTelSlogHandler struct {
	slog.Handler
}

func (OTelSlogHandler) Handle

func (h OTelSlogHandler) Handle(ctx context.Context, r slog.Record) error

func (OTelSlogHandler) WithAttrs

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

Jump to

Keyboard shortcuts

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