otelx

package module
v0.0.0-...-00113a4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 3 Imported by: 0

README

otelx

Custom otel SDK-, and otel collector components.

import (
    "github.com/karlpokus/otelx"
    "go.opentelemetry.io/otel/sdk/trace"
)

tp := trace.NewTracerProvider(otelx.WithAll())

Components

# SDK
* trace provider
├── global config
├── default resource
├── sampler (unsampled spans are created in noop mode)
├── id generator
└── * span processor
    ├── handlers for start and end span
    ├── forceFlush calls exporter.ExportSpans immediately
    ├── Shutdown calls exporter.Shutdown
    └── * span exporter
        └── exports sampled spans

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAll

func WithAll() trace.TracerProviderOption

WithAll is a tracer provider option that sets our SpanProcessor and SpanExporter.

Types

This section is empty.

Directories

Path Synopsis
sdk

Jump to

Keyboard shortcuts

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