Possible to write directly to a file with one of the default exporters? #4284
trevor-vaughan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I may be missing something in the docs, but I've been unable to find an inbuilt way to write directly to a file using one of the built-in exporters.
I'm currently just monkey-patching
ConsoleMetricExporter
but that feels like 100% the wrong approach. And yes, I could just write my own file exporter, but I wanted to see if I had overlooked something before doing that.aws-otel has one and I see a placeholder in the docs so I feel like I haven't connected a few dots somewhere.
Why do I want this?
I want to bake Open Telemetry into CLI applications to be able to optionally capture the data and send it to one of many sources. This makes console a non-starter and falling back to a file would be the easiest next step for folks that don't want to (or can't) set up an entire set of services right away.
Beta Was this translation helpful? Give feedback.
All reactions