opentelemetry-collector/exporter/fileexporter
Bogdan Drutu 7f5bff2ff4
Change exporterhelper to accept ExporterCreateSettings instead of just logger (#3569)
In a future PR ExporterCreateSettings will carry Tracer and Meter for custom tracing/metrics.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-07-08 10:57:10 -07:00
..
testdata Add new clean nop components and use them in config tests (#2655) 2021-03-10 10:45:18 -08:00
README.md Update exporter READMEs (#2073) 2020-11-09 16:51:51 -05:00
config.go Change fileexporter to use the new SharedComponents because of the file (#3201) 2021-05-18 12:32:42 -07:00
config_test.go Rename configtest.LoadConfigFile to configtest.LoadConfigAndValidate (#3306) 2021-05-28 11:48:26 -04:00
factory.go Change exporterhelper to accept ExporterCreateSettings instead of just logger (#3569) 2021-07-08 10:57:10 -07:00
factory_test.go Add componenttest.NewNop*CreateSettings to simplify tests (#3375) 2021-06-08 10:49:35 -04:00
file_exporter.go Move internal/otlp to model/otlp (#3508) 2021-06-28 16:02:31 -07:00
file_exporter_test.go Move internal/otlp to model/otlp (#3508) 2021-06-28 16:02:31 -07:00

README.md

File Exporter

This exporter will write pipeline data to a JSON file. The data is written in Protobuf JSON encoding using OpenTelemetry protocol.

Please note that there is no guarantee that exact field names will remain stable. This intended for primarily for debugging Collector without setting up backends.

Supported pipeline types: traces, metrics, logs

Getting Started

The following settings are required:

  • path (no default): where to write information.

Example:

exporters:
  file:
    path: ./filename.json