DataDog as APM for AdonisJS App

Hi,

Is anyone already embed DataDog into their AdonisJS App? I’m interested what kind of approach you did.

Ref: https://docs.datadoghq.com/tracing/setup/nodejs/#integrations

Best,
Carlson

1 Like

I was once saw a project where Adonis and Datadog were used at once.

I think Datadog was in custom middleware in there, but can’t remember exactly, it was about year ago or so…

Part of server.js, I added preLoad(‘start/datadog’)

'use strict'

const tracer = require('dd-trace').init()

tracer.use('mysql', {
  analytics: true
})