datadog-log-and-trace
Description
Nodejs library for easy logging to Datadog http intake and tracing to a datadog agent
Uses dd-trace
and datadog-winston
under the hood
Usage example
// Load the npm packagelet datadogLogAndTrace = // Initialize the module with your configuration parametersdatadogLogAndTrace // The logger and tracer are now available for uselet log = datadogLogAndTraceloggerlet tracer = datadogLogAndTracetracer // Use the logger as you would with datadog-winstonlog // Use the tracer as you would with dd-tracelet span = tracer * some code goes here *span
See also example app in /example