Skip to content

Commit

Permalink
replace bigint with int instead of str
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev committed Jan 30, 2025
1 parent 3d46946 commit 56a79d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dd-trace/test/plugins/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function handleTraceRequest (req, res, sendToTestAgent) {
// handles the received trace request and sends trace to Test Agent if bool enabled.
if (sendToTestAgent) {
const testAgentUrl = process.env.DD_TEST_AGENT_URL || 'http://127.0.0.1:9126'
const replacer = (k, v) => typeof v === 'bigint' ? v.toString() : v
const replacer = (k, v) => typeof v === 'bigint' ? Number(v) : v

// remove incorrect headers
delete req.headers.host
Expand Down

0 comments on commit 56a79d2

Please sign in to comment.