trace

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package trace provides trace providers for various backends

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"`
	SamplingRate    *float64 `mapstructure:"samplingRate,omitempty" yaml:"samplingRate,omitempty"`
}

GoogleCloudTracing is configuration for tracing to Google Cloud Monitoring

type OpenTelemetryTracing

type OpenTelemetryTracing struct {
	Endpoint     string   `mapstructure:"endpoint,omitempty" yaml:"endpoint,omitempty"`
	SamplingRate *float64 `mapstructure:"samplingRate,omitempty" yaml:"samplingRate,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