trace

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleCloudExporter

func NewGoogleCloudExporter(config GoogleCloudTracing, resource *resource.Resource) (*trace.TracerProvider, error)

NewGoogleCloudExporter returns a new Google Cloud TracerProvider.

func NewOTLPExporter

func NewOTLPExporter(config OpenTelemetryTracing, resource *resource.Resource) (*trace.TracerProvider, error)

NewOTLPExporter returns a new Open Telemetry TracerProvider.

Types

type GoogleCloudTracing

type GoogleCloudTracing struct {
	ProjectID       string `mapstructure:"projectID,omitempty" yaml:"projectID,omitempty"`
	CredentialsFile string `mapstructure:"credentialsFile,omitempty" yaml:"credentialsFile,omitempty"`
}

GoogleCloudTracing is configuration for tracing to Google Cloud Monitoring

type OpenTelemetryTracing

type OpenTelemetryTracing struct {
	Endpoint string `mapstructure:"endpoint,omitempty" yaml:"endpoint,omitempty"`
	TLS      struct {
		Insecure bool `mapstructure:"insecure,omitempty" yaml:"insecure,omitempty"`
	} `mapstructure:"tls,omitempty" yaml:"tls,omitempty"`
}

OpenTelemetryTracing is configuration for tracing to an Open Telemetry Collector

Jump to

Keyboard shortcuts

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