1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/exporters
Tyler Yahn 452256cbf4
Unify trace and metric stdout exporters (#956)
* Consolidate stdout exporter

* Move config to own file and match project standard

* Abstract Exporter into unified struct

* Rename trace part of the exporter

* Update import paths and configuration

* Update tests

* Update InstallNewPipeline to not return traceProvider

It is a registered global, access it that way.

* Update example_test

* Update docs

* Update example to be for whole package

* Update metric output

Closer match the span output.

* Clean up span output

Print as a batch and cleanup marshaling.

* Correct spelling error in doc

* Add Exporters README

* Update Changelog

* Propagate changes to rest of project

* Lint fixes

* Fix example test in metric SDK

* Add disable config options for trace and metric

Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-07-22 12:34:44 -07:00
..
metric Unify trace and metric stdout exporters (#956) 2020-07-22 12:34:44 -07:00
otlp Bump github.com/google/go-cmp from 0.5.0 to 0.5.1 (#957) 2020-07-22 10:03:41 -04:00
stdout Unify trace and metric stdout exporters (#956) 2020-07-22 12:34:44 -07:00
trace Unify trace and metric stdout exporters (#956) 2020-07-22 12:34:44 -07:00
README.md Unify trace and metric stdout exporters (#956) 2020-07-22 12:34:44 -07:00

Exporters

Included in this directory are exporters that export both metric and trace telemetry.

  • stdout: Writes telemetry to a specified local output as structured JSON.
  • otlp: Sends telemetry to an OpenTelemetry collector as OTLP.

Additionally, there are metric and trace only exporters.

Metric Telemetry Only

  • prometheus: Exposes metric telemetry as Prometheus metrics.
  • test: A development tool when testing the telemetry pipeline.

Trace Telemetry Only

  • jaeger: Sends properly transformed trace telemetry to a Jaeger endpoint.
  • zipkin: Sends properly transformed trace telemetry to a Zipkin endpoint.