In a future PR ExporterCreateSettings will carry Tracer and Meter for custom tracing/metrics. Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| README.md | ||
| config.go | ||
| config_test.go | ||
| factory.go | ||
| factory_test.go | ||
| file_exporter.go | ||
| file_exporter_test.go | ||
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