-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fileexporter: recreate files if they are deleted from outside otelcol #33987
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
You might want to use logrotate instead of deleting files outright. |
Component(s)
exporter/file
What happened?
Description
If a currently open file from
fileexporter
is deleted, no new file with the same name will be created and all future entries will be silently discarded.Some Background why this is needed:
We are running
otelcol
in an offline environment (simulating a satellite, on which our service will run eventually), to write incoming traces and logs to ajsonl
file.This file is in a special folder, which will be downloaded ("downlinked" in terms of satellites) to another machine regularly, and afterwards deleted.
From there, we can ingest the traces/logs into a tracing platform such as jaeger.
The actual download/downlink behaviour is outside of our control, we just have access to a folder that we can write files to that will be downlinked. Also this downlink happens at pretty much random times.
Steps to Reproduce
Now, delete
logs.jsonl
andtraces.jsonl
downlink
folders will be empty, no newjsonl
file is ever created (and also no warnings are printed by the otelcol binary that something is discarded)Expected Result
Once a currently active exported file is deleted, and new entries were to be added, I expected
otelcol
to re-create the file and start adding the new entries to it.Actual Result
No new file is ever created, and instead all newly received entries are silently discarded.
Collector version
v0.104.0
Environment information
Environment
Running on: https://developer.nvidia.com/embedded/jetson-tx2-nx
(ubuntu ARM based OS "Jetson Linux")
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: