Skip to content

OTLP file exporter #2482

@owent

Description

@owent

Is your feature request related to a problem?

According to
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/file-exporter.md#file-storage-requirements .

It we have file exporter, some projects need not depend on openssl, curl, or gRPC anymore.

Describe the solution you'd like

Use OTLP utils to convert data to JSON format, just like it in OTLP HTTP exporter.

Additional context

There are some questions I want to discuss before implementing it.
In practice, we usually have log rotate to control the disk usage, but the specification does not say anything about it.
Can I add some extensions to it?
For example, if we configure the file pattern as %Y-%m-%d/otlp.%N.log and set the rotate size to three, we want to create a directory every day and rotate output file name as otlp.0.log, otlp.1.log and otlp.2.log. And we may also set alias name %Y-%m-%d/otlp.log so the otlp.log will always point to the latest one?

Metadata

Metadata

Assignees

Labels

area:exporter:otlpOpenTelemetry Protocol (OTLP) Exporterdo-not-staletriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions