otelx

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

func GetResource

func GetResource() (*resource.Resource, error)

func Init

func Init(options ...Option) error

func InitResource

func InitResource(ctx context.Context, options ...resource.Option) *resource.Resource

Types

type Option

type Option func(*Otel)

func WithCtx

func WithCtx(ctx context.Context) Option

func WithMetricsOtlpCollector

func WithMetricsOtlpCollector(target string, dialOptions ...grpc.DialOption) Option

func WithMetricsPrometheus

func WithMetricsPrometheus() Option

func WithResource

func WithResource(res *resource.Resource) Option

func WithTracingOtlpCollector

func WithTracingOtlpCollector(target string, dialOptions ...grpc.DialOption) Option

func WithTracingStdout

func WithTracingStdout() Option

type Otel

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

Directories

Path Synopsis
dbx
sql

Jump to

Keyboard shortcuts

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