Self hosting

Datadog

Copy page

Add Datadog APM to your Inkeep Agent Framework services

Overview

Learn how to add Datadog APM to your Inkeep Agent Framework services.

Step 1: install Datadog APM

From the root of your workspace, run the following command:

pnpm install dd-trace

Step 2: Setup tracer.ts

In apps/run-api and apps/manage-api create a new file called tracer.ts and add the following code:

import tracer from "dd-trace";
tracer.init(); // initialized in a different file to avoid hoisting.
export default tracer;

In apps/run-api/src/index.ts and apps/manage-api/src/index.ts add the following code to the top of the file before all other imports:

import "./tracer";

Addition Resources

For more information on how to configure your APM you can consult the officiall Datadog Node.js documentation.