gotosocial/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace
Daenney 14ef098099
[feature] Support OTLP HTTP, drop Jaeger (#2184)
* [feature] Add http trace exporter, drop Jaeger

Jaeger supports ingesting traces using the OpenTelemetry gRPC or HTTP
methods. The Jaeger project has deprecated the old jaeger transport.

* Add support for submitting traces over HTTP
* Drop support for the old Jaeger protocol
* Upgrade the trace libraries to v1.17

Fixes: #2176
Fixes: #2179
2023-09-07 13:20:37 +02:00
..
internal/tracetransform [feature] Support OTLP HTTP, drop Jaeger (#2184) 2023-09-07 13:20:37 +02:00
otlptracegrpc [feature] Support OTLP HTTP, drop Jaeger (#2184) 2023-09-07 13:20:37 +02:00
otlptracehttp [feature] Support OTLP HTTP, drop Jaeger (#2184) 2023-09-07 13:20:37 +02:00
clients.go feat: initial tracing support (#1623) 2023-05-09 18:19:48 +01:00
exporter.go [feature] Support OTLP HTTP, drop Jaeger (#2184) 2023-09-07 13:20:37 +02:00
LICENSE feat: initial tracing support (#1623) 2023-05-09 18:19:48 +01:00
README.md [chore] update latest deps, ensure readme up to date (#1873) 2023-06-05 10:15:05 +02:00
version.go [feature] Support OTLP HTTP, drop Jaeger (#2184) 2023-09-07 13:20:37 +02:00

OpenTelemetry-Go OTLP Span Exporter

Go Reference

OpenTelemetry Protocol Exporter implementation.

Installation

go get -u go.opentelemetry.io/otel/exporters/otlp/otlptrace

Examples

otlptrace

The otlptrace package provides an exporter implementing the OTel span exporter interface. This exporter is configured using a client satisfying the otlptrace.Client interface. This client handles the transformation of data into wire format and the transmission of that data to the collector.

otlptracegrpc

The otlptracegrpc package implements a client for the span exporter that sends trace telemetry data to the collector using gRPC with protobuf-encoded payloads.

otlptracehttp

The otlptracehttp package implements a client for the span exporter that sends trace telemetry data to the collector using HTTP with protobuf-encoded payloads.

Configuration

Environment Variables

The following environment variables can be used (instead of options objects) to override the default configuration. For more information about how each of these environment variables is interpreted, see the OpenTelemetry specification.

Environment variable Option Default value
OTEL_EXPORTER_OTLP_ENDPOINT OTEL_EXPORTER_OTLP_TRACES_ENDPOINT WithEndpoint WithInsecure https://localhost:4317 or https://localhost:43181
OTEL_EXPORTER_OTLP_CERTIFICATE OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE WithTLSClientConfig
OTEL_EXPORTER_OTLP_HEADERS OTEL_EXPORTER_OTLP_TRACES_HEADERS WithHeaders
OTEL_EXPORTER_OTLP_COMPRESSION OTEL_EXPORTER_OTLP_TRACES_COMPRESSION WithCompression
OTEL_EXPORTER_OTLP_TIMEOUT OTEL_EXPORTER_OTLP_TRACES_TIMEOUT WithTimeout 10s

Configuration using options have precedence over the environment variables.


  1. The gRPC client defaults to https://localhost:4317 and the HTTP client https://localhost:4318. ↩︎