telemetry

package
v0.0.0-...-b14404a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

This is a modified version of https://pkg.go.dev/golang.org/x/exp/event@v0.0.0-20230817173708-d852ddb80c63/otel, since the supported OTEL package is no longer the latest.

This is a modified version of https://pkg.go.dev/golang.org/x/exp/event@v0.0.0-20230817173708-d852ddb80c63/otel, since the supported OTEL package is no longer the latest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricHandler

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

MetricHandler is an event.Handler for OpenTelemetry metrics. Its Event method handles Metric events and ignores all others.

func NewMetricHandler

func NewMetricHandler(m metric.Meter) *MetricHandler

NewMetricHandler creates a new MetricHandler.

func (*MetricHandler) Event

type MultiHandler

type MultiHandler struct {
	Metric handler
	Trace  handler
	Log    handler
}

func (*MultiHandler) Event

func (h *MultiHandler) Event(ctx context.Context, ev *event.Event) context.Context

type PrometheusHandler

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

PrometheusHandler is an event.Handler for OpenTelemetry metrics. Its Event method handles Metric events and ignores all others.

func NewPrometheusHandler

func NewPrometheusHandler(client prometheus.Registerer) *PrometheusHandler

NewPrometheusHandler creates a new PrometheusHandler.

func (*PrometheusHandler) Event

type SlogHandler

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

func NewSlogHandler

func NewSlogHandler(logger *slog.Logger) *SlogHandler

func (*SlogHandler) Event

func (h *SlogHandler) Event(ctx context.Context, ev *event.Event) context.Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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