mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-03-03 14:52:56 +02:00
This was heavily inspired by the retry policy from the https://github.com/open-telemetry/opentelemetry-collector code. Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
16 lines
487 B
Markdown
16 lines
487 B
Markdown
# OpenTelemetry Collector Go Exporter
|
|
|
|
[](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp)
|
|
|
|
This exporter exports OpenTelemetry spans and metrics to the OpenTelemetry Collector.
|
|
|
|
## Installation and Setup
|
|
|
|
The exporter can be installed using standard `go` functionality.
|
|
|
|
```bash
|
|
go get -u go.opentelemetry.io/otel/exporters/otlp
|
|
```
|
|
|
|
A new exporter can be created using the `NewExporter` function.
|