We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c151bf commit 2a47dc9Copy full SHA for 2a47dc9
packages/dd-trace/test/plugins/agent.js
@@ -279,8 +279,8 @@ module.exports = {
279
async load (pluginName, config, tracerConfig = {}) {
280
tracer = require('../..')
281
agent = express()
282
- agent.assertSomeTraces(bodyParser.raw({ limit: Infinity, type: 'application/msgpack' }))
283
- agent.assertSomeTraces((req, res, next) => {
+ agent.use(bodyParser.raw({ limit: Infinity, type: 'application/msgpack' }))
+ agent.use((req, res, next) => {
284
if (req.is('application/msgpack')) {
285
if (!req.body.length) return res.status(200).send()
286
req.body = msgpack.decode(req.body, { useBigInt64: true })
0 commit comments