otel

package
v0.0.0-...-2b14389 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const UnspecifiedValue = "unspecified"

UnspecifiedValue is the value used for unspecified attributes.

Variables

This section is empty.

Functions

func NewResource

func NewResource(attrs ...attribute.KeyValue) *resource.Resource

NewResource create a new resource with the default attributes configured from the environment.

func SetupTracing

func SetupTracing(
	ctx context.Context,
	rcs *resource.Resource,
	opts ...otlptracegrpc.Option,
) (shutdown func(), err error)

SetupTracing configures the global OpenTelemetry SDK to send trace data.

func WithHoneCombEndpoint

func WithHoneCombEndpoint() otlptracegrpc.Option

WithHoneCombEndpoint sets the Honeycomb endpoint for the OTLP exporter.

func WithHoneyCombHeader

func WithHoneyCombHeader(honeycombKey string) otlptracegrpc.Option

WithHoneyCombHeader sets the Honeycomb headers for the OTLP exporter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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