FileExporter in production #4997
Replies: 0 comments 10 replies
-
Hi @EliyaCohen, Unfortunately we do not have a FileExporter that would much this use-case, but I think it is a very important one. Also our current fileexporter writes json (probably better to write binary to save space and overhead), we do not have file rotation etc. But I would like to see this possible, I see that you filed https://github.com/open-telemetry/opentelemetry-collector/issues/2450, I think we should start by resolving that, then probably add an "encoding/serialization" flag to decide between proto binary vs json, even consider to support jaeger, zipkin, etc in the future. Also you may need a receiver for this as well. Unfortunately @tigrannajaryan was a bit lazy :) and only added some kind of file receiver support for testbed open-telemetry/opentelemetry-collector#2444, and not as a standard receiver. I will support this, but I would like to have an "umbrella issue" that covers all the needs for this to be supported where we document the high-level needs, then individual issues where we track details about those. |
Beta Was this translation helpful? Give feedback.
-
@tigrannajaryan I know for sure that you know about https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver. Is it a possibility to have a simpler version of this which only supports file rotation, tail parsing, etc of files that contain traces/metrics/logs in some standard formats like otlp [binary/json] (initially should be enough)? Is this functionality split into a library that we can reuse? |
Beta Was this translation helpful? Give feedback.
-
My configuration does not allow direct network communication to the collector, only file transfer. I'd like to use the FileExporter to save the data locally, and then transfer the files to the collector.
Unfortunately, the FileExporter readme states:
Do you know of any other solutions that will allow me to save the files locally?
Beta Was this translation helpful? Give feedback.
All reactions