ceph-csi/vendor/go.opentelemetry.io/otel/exporters/otlp
Madhu Rajanna 51a5bde97f ci: update golang dependencies to 1.17.5 release
updating the depencendices to golang 1.17.5
release

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2021-12-13 07:32:54 +00:00
..
internal rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
otlpgrpc rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
doc.go rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
LICENSE rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
options.go rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
optiontypes.go rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
otlp.go rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
protocoldriver.go rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00
README.md rebase: update kubernetes and libraries to v1.22.0 version 2021-08-12 09:55:50 +00:00

OpenTelemetry Collector Go Exporter

PkgGoDev

This exporter exports OpenTelemetry spans and metrics to the OpenTelemetry Collector.

Installation and Setup

The exporter can be installed using standard go functionality.

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

A new exporter can be created using the NewExporter function.

Retries

The exporter will not, by default, retry failed requests to the collector. However, it is configured in a way that it can be easily enabled.

To enable retries, the GRPC_GO_RETRY environment variable needs to be set to on. For example,

GRPC_GO_RETRY=on go run .

The default service config used by default is defined to retry failed requests with exponential backoff (0.3seconds * (2)^retry) with a max of 5 retries).

These retries are only attempted for reponses that are deemed "retry-able" by the collector.