telemetry

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package telemetry provides OpenTelemetry initialization for minimaldoc-server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, cfg Config) (func(context.Context) error, error)

Init initializes the OpenTelemetry TracerProvider. Returns a shutdown function that should be deferred.

Types

type Config

type Config struct {
	Enabled     bool
	Endpoint    string // OTLP HTTP endpoint (e.g. "localhost:4318")
	ServiceName string
	Environment string
}

Config holds OpenTelemetry configuration.

Jump to

Keyboard shortcuts

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