uptraceexporter

package module
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

README

Uptrace Exporter

This exporter sends trace data to Uptrace.dev.

Configuration

Option Description
dsn Data source name for your Uptrace project. Required.

Example:

exporters:
  uptrace:
    dsn: "https://<key>@api.uptrace.dev/<project_id>"

Also the following optional settings can be used to configure the *http.Client:

Option Default Description
timeout 30s HTTP request time limit. For details see https://golang.org/pkg/net/http/#Client
read_buffer_size 0 ReadBufferSize for HTTP client.
write_buffer_size 512 * 1024 WriteBufferSize for HTTP client.
insecure false When set to true disables verifying the server's certificate chain and host name. The connection is still encrypted but server identity is not verified.
ca_file Path to the CA cert. For a client this verifies the server certificate. Should only be used if insecure is set to false.
cert_file Path to the TLS cert to use for TLS required connections. Should only be used if insecure is set to false.
key_file Path to the TLS key to use for TLS required connections. Should only be used if insecure is set to false.

The full list of settings exposed for this exporter are documented here.

Documentation

Overview

Package uptraceexporter implements an OpenTelemetry Collector exporter that sends trace data to Uptrace.dev

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ExporterFactory

NewFactory creates a factory for Uptrace exporter.

Types

type Config

type Config struct {
	config.ExporterSettings       `mapstructure:",squash"`
	confighttp.HTTPClientSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.
	exporterhelper.QueueSettings  `mapstructure:"sending_queue"`
	exporterhelper.RetrySettings  `mapstructure:"retry_on_failure"`

	// DSN is a data source name for your Uptrace project.
	// Example: https://<key>@api.uptrace.dev/<project_id>
	DSN string `mapstructure:"dsn"`
}

Jump to

Keyboard shortcuts

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