-
Notifications
You must be signed in to change notification settings - Fork 777
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
[feature request] Official file exporter #5920
Comments
Once open-telemetry/opentelemetry-specification#4183 lands, this is doable. |
The relevant one is this: open-telemetry/opentelemetry-specification#3817 Whether that will become a thing is a different question. From I suppose we'll see whether this becomes a requirement, but until then, there are other ways this can be achieved and therefore I don't think we should leave this open. |
@martinjt What do you mean by "there are other ways this can be achieved"? (And therefore this issue should be closed.) Regardless of whether it's possible to create an output file by doing things like |
This isn't something that we'd build as part of the core of OpenTelemetry-dotnet since the recommended approach is to use OTLP. What you would need to do for this is propose a contrib component and find a maintainer for it. Alternatively, it would be petitioning the OpenTelemetry Specification committee's to add this as a requirement to all languages. There have been discussions and the general consensus was that stdout redirection is sufficient for the edge cases where this is to be used over using OTLP and potentially a collector. Unfortunately, the project can't maintain lots of different components, and where there is a Specification precedence, we follow that. I can understand that this is functionality that other frameworks have provided over the years as well, however, we're trying to set an example of modern telemetry, and that should involve OTLP at it's core. |
Package
None
Is your feature request related to a problem?
No response
What is the expected behavior?
It would be nice if there were an "official" filesystem exporter for traces/logs/metrics in .NET. I find it useful for local debugging, as well as job-based workloads where the logs could be exported or further processed.
Which alternative solutions or features have you considered?
I've copy/pasted the implementation of the ConsoleExporter(s) and simply updated the
WriteLine()
method in the base class to write to a FileStream instead of the console.This is fine for most cases, (aside from the annoyance of having to copy/paste/adapt), but it's obviously in a very human-readable format. It'd be nice if there were perhaps 2 official implementations or modes: One to output in a similar human-readable format, and one that's serialized for a more machine-readable format.
Additional context
#5231
The text was updated successfully, but these errors were encountered: