shelfio / winston-datadog-logs-transport Goto Github PK
View Code? Open in Web Editor NEWWinston transport for Datadog Logs (not events)
License: MIT License
Winston transport for Datadog Logs (not events)
License: MIT License
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Cannot find preset's package (github>shelfio/renovate-config)
for typescript support, miss config datadog target server for more felxible configuration
Hey @shelfio, huge thanks for this library! This made it really easy to connect up to datadog in some of our low-usage servers without hassle.
I have a question related to how you send the messages in https://github.com/shelfio/winston-datadog-logs-transport/blob/master/index.js#L36 , however. Basically: in your experience, does it cause any significant performance impact to connect the socket each time? I'm worried that if I set this up on one of my higher traffic servers that connecting a socket each time might hit some limits on the box we're running on and/or cause excess memory/CPU usage. Any thoughts or empirical evidence on this question would be great, if you have it.
https://medium.com/expedia-group-tech/under-the-hood-of-http-requests-in-node-69e27e2cd528 gives me some expectation that creating a new socket per message isn't ideal; storing an instance of http.Agent
with maxSockets of 5 or similar and doing a https://nodejs.org/api/http.html#http_agent_createconnection_options_callback call per message (which returns a stream.Duplex, may be compatible with how you're using the TLSSocket) may be the way to go. This theory is certainly untested however...
Thanks again!
Wondering if you have experience trying to send logs to datadog with a message that is json rather than a string? I'd like to do this because I want to be able to search on all of the message fields rather than sending the JSON as metadata and then creating a facet.
any help is appreciated, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.