otlptracegrpc

package
v1.2.120 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenExporter

func OpenExporter(ctx context.Context, opts ...Option) (*otlptrace.Exporter, error)

OpenExporter opens a trace exporter specified by its trace exporter name and a exporter-specific data source name, usually consisting of at least a trace exporter name and connection information.

Types

type EmptyOption

type EmptyOption struct{}

EmptyOption does not alter the configuration. It can be embedded in another structure to build custom options.

This API is EXPERIMENTAL.

type Option

type Option interface {
	// contains filtered or unexported methods
}

A Option sets options.

func WithOptionOtlpOptions

func WithOptionOtlpOptions(v ...otlptracegrpc.Option) Option

WithOptionOtlpOptions appends OtlpOptions in option.

func WithOptionOtlpOptionsReplace

func WithOptionOtlpOptionsReplace(v ...otlptracegrpc.Option) Option

WithOptionOtlpOptionsReplace sets OtlpOptions in option.

type OptionFunc

type OptionFunc func(*option)

OptionFunc wraps a function that modifies option into an implementation of the Option interface.

type URLOpener

type URLOpener struct {
	// Options specifies the options to pass to OpenExporter.
	Option option
}

URLOpener opens OTLP Trace gRPC URLs like "http://endpoint:4317?compression=gzip".

func (*URLOpener) OpenExporterURL

func (o *URLOpener) OpenExporterURL(ctx context.Context, u *url.URL) (sdktrace.SpanExporter, error)

OpenExporterURL opens a trace.SpanExporter based on u.

func (*URLOpener) Scheme

func (o *URLOpener) Scheme() string

Scheme returns the scheme supported by this trace exporter.

Jump to

Keyboard shortcuts

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