Skip to content
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: can we use asynchronous transporters? #229

Open
jeanhdev opened this issue Apr 6, 2023 · 2 comments
Open

Feature Request: can we use asynchronous transporters? #229

jeanhdev opened this issue Apr 6, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@jeanhdev
Copy link

jeanhdev commented Apr 6, 2023

I'm using Axiom and would love to know if it's possible to use tslog with an asynchronous Transporter.

In winston - it's not possible somehow, very weird.

@jeanhdev jeanhdev added the enhancement New feature or request label Apr 6, 2023
@terehov
Copy link
Contributor

terehov commented Apr 12, 2023

I am not familiar with Axiom and don't quite understand the use case. Can you please provide some more context and ideally an example how you would like to use it?
But I believe from what I understand it should be possible already.

@CanRau
Copy link

CanRau commented Oct 24, 2023

I imagine there's no async as you don't want your system to wait for logging so instead you'd use streaming

here's a tslog example https://tslog.js.org/#/?id=storing-logs-in-a-file-system-with-rotating-files and axioms API also accepts streaming data, here's an example on how to ingest a raw buffer into axiom, here you can see that you should be able to pass in a readable stream to ingestRaw and maybe the winston implementation for axiom can help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants