otlpaddr

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package otlpaddr holds the single rule craftgo applies to an OTLP endpoint string, shared by the trace and metric exporters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base[T any](addr string, endpointURL func(string) T, endpoint func(string) T, insecure func() T) []T

Base returns the endpoint options for addr in the exporter's own option type. A full URL lets its scheme pick transport security (`https://host:4317` = TLS); a bare `host:port` is dialled insecure.

The rule decides TLS, so traces and metrics must not drift apart on it - hence one implementation, two callers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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