1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/exporters/otlp
dependabot[bot] 5a6a854d50
Bump google.golang.org/protobuf from 1.25.0 to 1.26.0 in /exporters/otlp (#1724)
* Bump google.golang.org/protobuf from 1.25.0 to 1.26.0 in /exporters/otlp

Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.25.0...v1.26.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Auto-fix go.sum changes in dependent modules

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: MrAlias <MrAlias@users.noreply.github.com>
2021-03-22 09:26:34 -07:00
..
internal Migrate to using go.opentelemetry.io/proto/otlp (#1713) 2021-03-20 09:25:07 -07:00
otlpgrpc Migrate to using go.opentelemetry.io/proto/otlp (#1713) 2021-03-20 09:25:07 -07:00
otlphttp Migrate to using go.opentelemetry.io/proto/otlp (#1713) 2021-03-20 09:25:07 -07:00
doc.go Update README and documentation to better communicate pre-GA state (#1281) 2020-10-29 09:23:13 -07:00
example_test.go Updating documentation with an working example for creating NewExporter (#1513) 2021-02-24 09:50:17 -08:00
go.mod Bump google.golang.org/protobuf from 1.25.0 to 1.26.0 in /exporters/otlp (#1724) 2021-03-22 09:26:34 -07:00
go.sum Bump google.golang.org/protobuf from 1.25.0 to 1.26.0 in /exporters/otlp (#1724) 2021-03-22 09:26:34 -07:00
options.go Move gRPC driver to a subpackage and add an HTTP driver (#1420) 2021-01-11 22:55:24 -05:00
otlp_metric_test.go Migrate to using go.opentelemetry.io/proto/otlp (#1713) 2021-03-20 09:25:07 -07:00
otlp_span_test.go Migrate to using go.opentelemetry.io/proto/otlp (#1713) 2021-03-20 09:25:07 -07:00
otlp_test.go Migrate to using go.opentelemetry.io/proto/otlp (#1713) 2021-03-20 09:25:07 -07:00
otlp.go Move gRPC driver to a subpackage and add an HTTP driver (#1420) 2021-01-11 22:55:24 -05:00
protocoldriver.go Add a split protocol driver for otlp exporter (#1418) 2020-12-22 09:21:45 -08:00
README.md Updating documentation with an working example for creating NewExporter (#1513) 2021-02-24 09:50:17 -08: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.