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
Click to show internal directories.
Click to hide internal directories.