package otlpconfig

Import Path
	go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig (on go.dev)

Dependency Relation
	imports 19 packages, and imported by one package

Involved Source Files envconfig.go Package otlpconfig provides configuration for the otlptrace exporters. optiontypes.go tls.go
Package-Level Type Names (total 8)
/* sort by: | */
Compression describes the compression used for payloads sent to the collector. func WithCompression(compression Compression) GenericOption const GzipCompression const NoCompression
DialOptions []grpc.DialOption GRPCConn *grpc.ClientConn gRPC configurations RetryConfig retry.Config ServiceConfig string Signal specific configurations func ApplyGRPCEnvConfigs(cfg Config) Config func ApplyHTTPEnvConfigs(cfg Config) Config func NewGRPCConfig(opts ...GRPCOption) Config func NewHTTPConfig(opts ...HTTPOption) Config func GenericOption.ApplyGRPCOption(Config) Config func GenericOption.ApplyHTTPOption(Config) Config func GRPCOption.ApplyGRPCOption(Config) Config func HTTPOption.ApplyHTTPOption(Config) Config func ApplyGRPCEnvConfigs(cfg Config) Config func ApplyHTTPEnvConfigs(cfg Config) Config func GenericOption.ApplyGRPCOption(Config) Config func GenericOption.ApplyHTTPOption(Config) Config func GRPCOption.ApplyGRPCOption(Config) Config func HTTPOption.ApplyHTTPOption(Config) Config
GenericOption applies an option to the HTTP or gRPC driver. ( GenericOption) ApplyGRPCOption(Config) Config ( GenericOption) ApplyHTTPOption(Config) Config GenericOption : GRPCOption GenericOption : HTTPOption func WithCompression(compression Compression) GenericOption func WithEndpoint(endpoint string) GenericOption func WithEndpointURL(v string) GenericOption func WithHeaders(headers map[string]string) GenericOption func WithHTTPClient(c *http.Client) GenericOption func WithInsecure() GenericOption func WithProxy(pf HTTPTransportProxyFunc) GenericOption func WithRetry(rc retry.Config) GenericOption func WithSecure() GenericOption func WithTimeout(duration time.Duration) GenericOption func WithTLSClientConfig(tlsCfg *tls.Config) GenericOption func WithURLPath(urlPath string) GenericOption
GRPCOption applies an option to the gRPC driver. ( GRPCOption) ApplyGRPCOption(Config) Config GenericOption (interface) func NewGRPCOption(fn func(cfg Config) Config) GRPCOption func NewGRPCConfig(opts ...GRPCOption) Config
HTTPOption applies an option to the HTTP driver. ( HTTPOption) ApplyHTTPOption(Config) Config GenericOption (interface) func NewHTTPOption(fn func(cfg Config) Config) HTTPOption func NewHTTPConfig(opts ...HTTPOption) Config
HTTPTransportProxyFunc is a function that resolves which URL to use as proxy for a given request. This type is compatible with `http.Transport.Proxy` and can be used to set a custom proxy function to the OTLP HTTP client. func WithProxy(pf HTTPTransportProxyFunc) GenericOption
Marshaler describes the kind of message format sent to the collector. const MarshalJSON const MarshalProto
Package-Level Functions (total 20)
ApplyGRPCEnvConfigs applies the env configurations for gRPC.
ApplyHTTPEnvConfigs applies the env configurations for HTTP.
CreateTLSConfig creates a tls.Config from a raw certificate bytes to verify a server certificate.
NewGRPCConfig returns a new Config with all settings applied from opts and any unset setting using the default gRPC config values.
NewHTTPConfig returns a new Config with all settings applied from opts and any unset setting using the default HTTP config values.
WithEndpoint configures the trace host and port only; endpoint should resemble "example.com" or "localhost:4317". To configure the scheme and path, use WithEndpointURL.
WithEndpointURL configures the trace scheme, host, port, and path; the provided value should resemble "https://example.com:4318/v1/traces".
WithEnvCompression retrieves the specified config and passes it to ConfigFn as a Compression.
Package-Level Variables (only one)
DefaultEnvOptionsReader is the default environments reader.
Package-Level Constants (total 9)
DefaultCollectorGRPCPort is the default gRPC port of the collector.
DefaultCollectorHost is the host address the Exporter will attempt connect to if no collector address is provided.
DefaultCollectorHTTPPort is the default HTTP port of the collector.
DefaultTimeout is a default max waiting time for the backend to process each span batch.
DefaultTracesPath is a default URL path for endpoint that receives spans.
GzipCompression tells the driver to send payloads after compressing them with gzip.
MarshalJSON tells the driver to send using json format.
MarshalProto tells the driver to send using the protobuf binary format.
NoCompression tells the driver to send payloads without compression.