Intro
This package contains CodeSee's instrumentation of Express. It extracts all of the routes in an Express application and sends them in traces to Datadog.
This is part of the CodeSee Service Maps instrumentation. The traces are consumed by CodeSee's other components.
Installation
This package requires the datadog trace library dd-trace
.
npm install dd-trace
Install this package
npm install @codesee/instrument-express
Configuration
To successfully send traces with this library, dd-trace
must be configured for your environment. To understand how to do that, please see the Datadog documentation.
To use this library after configuring Datadog, simply import it before you construct your Express application in code. The entry point of your application is a good place to put the import.
import "@codesee/instrument-express";
Once you call listen()
on your Express application, all of the routes will be sent via Datadog traces.