otlpenv

package
v0.0.0-...-556319c Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package otlpenv exports getters to read OpenTelemetry protocol configuration options based on the official spec: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEndpoint

func GetEndpoint() string

GetEndpoint returns the root collector endpoint, NOT per-signal endpoints. We do not yet support per-signal endpoints.

See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options

func IsInsecure

func IsInsecure(endpoint string) bool

Types

type Protocol

type Protocol string
const (
	// ProtocolGRPC is protobuf-encoded data using gRPC wire format over HTTP/2 connection
	ProtocolGRPC Protocol = "grpc"
	// ProtocolHTTPProto is protobuf-encoded data over HTTP connection
	ProtocolHTTPProto Protocol = "http/proto"
	// ProtocolHTTPJSON is JSON-encoded data over HTTP connection
	ProtocolHTTPJSON Protocol = "http/json"
)

func GetProtocol

func GetProtocol() Protocol

GetProtocol returns the configured protocol for the root collector endpoint, NOT per-signal endpoints. We do not yet support per-signal endpoints.

See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#specify-protocol

Jump to

Keyboard shortcuts

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