question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support batch mode in HTTP Transport

See original GitHub issue

What’s the feature?

For performance reason, a batch mode should be available on http transport to break the 1 log = 1 request and send http request by configurable batches.

What problem is the feature intended to solve?

When using http transport, a request is sent to the http server for every log call. So 100 logs, 100 http requests.

Is the absence of this feature blocking you or your team? If so, how?

Not blocking but it has a bad user experience impact on our web application. We’re using winston http transport to collect all our client logs in our backend log file. During page loading, our web application is a little bit verbose in “info” level. We’ve seen that the http log requests has a direct impact on the load page time (ie disabling http logs made load pagefaster).

Is this feature similar to an existing feature in another tool?

Yes, take a look at winston-splunk-http-transport

Is this a feature you’re prepared to implement, with support from us?

That’s possible… 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
DABHcommented, Jan 15, 2022

Yep, we have some other maintainers now, so a release should happen in the near future. Ideally we can fix the child logger / metadata issues that @Maverick1872 is taking the lead on, and then we will cut a new release that includes your PR.

1reaction
DABHcommented, Dec 15, 2021

I think the maintainers are unlikely to have time to implement this ourselves, but we’d welcome a PR that adds this type of functionality in a clean way. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using HTTP and Poller Transports - Service Bus
This chapter provides an overview of the HTTP(S) and poller transports (Email, File, FTP, and SFTP) and describes how to use and configure...
Read more >
Having some difficulties starting workflow in batch mode
Trying to run workflow in batch mode (in previos installation it works) knime ... HTTPTransportFactory, org.apache.cxf.transport.http.
Read more >
Batch library | Microsoft Learn
Use the functions in the Batch library to package multiple HTTP requests into a single request using a Transport object.
Read more >
Send Batch Requests | Google Play EMM API
The Google Play EMM API supports batching, to allow your client to put several API calls into a single request. Here are some...
Read more >
Batch Processing | MuleSoft Documentation
Within a Mule application, batch processing provides a construct for asynchronously ... xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found