You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks,
I found this error: I have a valid configuration for Datadog; when I send the datadog's log, if the lambda execution is too fast, this log will not be sent.
I tried using the same configuration and adding a sleep instruction, and the log was sent correctly.
Would anyone be able to help me find a solution?
I also tried without success:
Send the flush instructions after each log
to set the option sendImmediate: true on the option transport
to set sendIntervalMs: 1 on the option transport
The text was updated successfully, but these errors were encountered:
So if you have something like pino.info("test") and your lambda ends quickly, there is always that chance that the logs don't get sent out because the log send is sent out-of-band, so the async call to send the log may or may not resolve.
but overall, if you're using pino for this it's prob not a good idea because pino is async out-of-band by design
for your issue to be resolved, src/DataDogTransport.ts would have to be refactored to add the ability to await on the send, and you'd have to use a logging library that is not pino (or create your own) that you can await on
Hi folks,
I found this error: I have a valid configuration for Datadog; when I send the datadog's log, if the lambda execution is too fast, this log will not be sent.
I tried using the same configuration and adding a
sleep
instruction, and the log was sent correctly.Would anyone be able to help me find a solution?
I also tried without success:
sendImmediate: true
on the option transportsendIntervalMs: 1
on the option transportThe text was updated successfully, but these errors were encountered: