OTLP HTTP Exporter Options (otlptracehttp/options.go)

opentelemetry-go · exporters/otlp/otlptrace/otlptracehttp/options.go · go · Apache-2.0
infra, analytics, lang:go

Provides configuration options for OpenTelemetry HTTP trace exporters, including TLS, compression, retry, and proxy settings. Reuse when setting up telemetry export.

// Source: https://github.com/open-telemetry/opentelemetry-go | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

package otlptracehttp

import (
	"crypto/tls"
	"net/http"
	"net/url"
	"time"

	"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig"
	"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/retry"
)

// Compression describes the compression used for payloads sent to the
// collector.
type Compression otlpconfig.Compression

// Encoding describes the encoding used for payloads sent to the collector.
type Encoding int

// HTTPTransportProxyFunc is 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key