Skip to content

v5.59.0 proposal #6069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: v5.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f6dadce
perf: improve algorithm for getting callsites in AppSec (#6044)
watson Jul 8, 2025
e5bd36c
Enable recommended rules for eslint-plugin-n (#5216)
watson Jul 8, 2025
522a2ba
chore: update dependencies & dependabot & less cache lookups (#6041)
BridgeAR Jul 8, 2025
4336cd1
ESLint: Require 'use strict' header (#5334)
watson Jul 8, 2025
1aaff69
test: remove get-port usage from inferred proxy test (#6054)
rochdev Jul 8, 2025
5b297d0
test: remove get-port usage in core tests and appsec (#6060)
rochdev Jul 9, 2025
1c8b098
datastreams: safer and faster schema serialization (#6042)
BridgeAR Jul 9, 2025
2bc2283
ESLint: Scope certain files to other Node.js versions than v18.0.0 (#…
watson Jul 9, 2025
087ed2b
[test-optimization] Add logs for Playwright test (#6055)
Mariovido Jul 9, 2025
5733471
test: use dynamic queue name for aws sqs tests (#6050)
rochdev Jul 9, 2025
1446c8c
Use files property in package.json instead of .npmignore (#5320)
watson Jul 9, 2025
68c5e0e
support blocking on fastify multipart (#5980)
IlyasShabi Jul 9, 2025
bcb4d92
instrumentation: add hono support (#6061)
BridgeAR Jul 9, 2025
24ad524
Bump native-appsec package + ASM multi DD config capability (#6049)
CarlesDD Jul 10, 2025
6832c36
[test-optimization] [SDTEST-2267] Remove `getPort` from Test Optimiza…
Mariovido Jul 10, 2025
f9b8e8c
[test-optimization] [SDTEST-2272] Fix `attempt_to_fix` tagging in Pla…
Mariovido Jul 10, 2025
4d0ed96
ESLint: Clean up Node.js built-in ignores (#6059)
watson Jul 10, 2025
dae58ff
move test optimization integration tests to dedicated folder (#6047)
rochdev Jul 10, 2025
e87a8ca
fix sqs test race condition when deleting the queue (#6068)
rochdev Jul 10, 2025
b0c3816
[test-optimization] [SDTEST-2264] Upgrade attempt_to_fix to `v5` (#6074)
Mariovido Jul 11, 2025
c021b31
Update WAF rules to v1.15.0 (#6082)
CarlesDD Jul 11, 2025
643aba7
fix indeterministic request id failing di snapshot test (#6084)
rochdev Jul 11, 2025
0c32ea2
[Code Origin] Take source maps into account in stack traces (#6070)
watson Jul 14, 2025
dc1f6ef
[test-optimization] [SDTEST-2290] Remove Cucumber and Selenium tests …
Mariovido Jul 14, 2025
5f5bec3
chore(llmobs): add internal ability to tag tool id on tool messages (…
sabrenner Jul 14, 2025
27b52ca
ci: exercise more of the guardrails code during testing (#6034)
watson Jul 14, 2025
a42029e
[DI] Add support for loading probes from JSON file (#5941)
watson Jul 14, 2025
a4780da
[test-optimization] [SDTEST-2290] Fix support for Cucumber 12+ (#6087)
Mariovido Jul 14, 2025
095abaa
v5.59.0
watson Jul 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ updates:
- dependency-name: "jest-docblock"
# 30.0.0 onwards only supports Node.js 18.14.x and above
update-types: ["version-update:semver-major"]
# The path-to-regexp version has to be the same as used in express v4.
# Consider vendoring it instead.
- dependency-name: "path-to-regexp"
- dependency-name: "lru-cache"
# 11.0.0 onwards only supports Node.js 20 and above
update-types: ["version-update:semver-major"]
groups:
dev-minor-and-patch-dependencies:
dependency-type: "development"
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/apm-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/plugins/test

hono:
runs-on: ubuntu-latest
env:
PLUGINS: hono
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/plugins/test

http:
strategy:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,16 @@ jobs:
version: ${{ matrix.version }}
- uses: ./.github/actions/install
- run: yarn add --ignore-scripts mocha@10 # Use older mocha to support old Node.js versions
- run: yarn add --ignore-scripts express@4 # Use older express to support old Node.js versions
- run: node node_modules/.bin/mocha --colors --timeout 30000 integration-tests/init.spec.js

integration-guardrails-unsupported:
strategy:
matrix:
version: ['0.8', '0.10', '0.12', '4', '6', '8', '10', '12']
runs-on: ubuntu-latest
env:
DD_TRACE_DEBUG: 'true' # This exercises more of the guardrails code
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/node
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test-optimization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

integration:
strategy:
matrix:
version: [oldest, maintenance, active, latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/node
with:
version: ${{ matrix.version }}
- uses: ./.github/actions/install
- run: yarn test:integration:testopt

integration-playwright:
strategy:
matrix:
Expand Down
22 changes: 0 additions & 22 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dev,sinon,BSD-3-Clause,Copyright 2010-2017 Christian Johansen
dev,sinon-chai,WTFPL and BSD-2-Clause,Copyright 2004 Sam Hocevar 2012–2017 Domenic Denicola
dev,tap,ISC,Copyright 2011-2022 Isaac Z. Schlueter and Contributors
dev,tiktoken,MIT,Copyright (c) 2022 OpenAI, Shantanu Jain
dev,workerpool,Apache license 2.0,Copyright (C) 2014-2024 Jos de Jong wjosdejong@gmail.com
dev,yaml,ISC,Copyright Eemeli Aro <eemeli@gmail.com>
dev,yarn-deduplicate,Apache license 2.0,Copyright [yyyy] [name of copyright owner]
file,aws-lambda-nodejs-runtime-interface-client,Apache 2.0,Copyright 2019 Amazon.com Inc. or its affiliates. All Rights Reserved.
Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/appsec-iast/insecure-bank.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const http = require('http')
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path

Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/appsec/insecure-bank.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const http = require('http')
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path

Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/encoding/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const {
ENCODER_VERSION
} = process.env
Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/gc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const { createHistogram, PerformanceObserver } = require('perf_hooks')
if (createHistogram) {
const StatsD = require('./statsd')
Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/means.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

/* eslint-disable no-console */

const chunks = []
Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/scope/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const {
DD_TRACE_SCOPE,
COUNT
Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/shimmer-runtime/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

/* eslint-disable require-await */

const shimmer = require('../../../packages/datadog-shimmer')
Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/shimmer-startup/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

/* eslint-disable require-await */

const shimmer = require('../../../packages/datadog-shimmer')
Expand Down
2 changes: 2 additions & 0 deletions benchmark/sirun/spans/spans.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const tracer = require('../../..').init()

tracer._tracer._processor.process = function process (span) {
Expand Down
1 change: 1 addition & 0 deletions benchmark/sirun/strip-unwanted-results.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
'use strict'

const fs = require('fs')
const path = require('path')
Expand Down
2 changes: 2 additions & 0 deletions ci/cypress/after-run.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
'use strict'

module.exports = require('../../packages/datadog-plugin-cypress/src/after-run')
2 changes: 2 additions & 0 deletions ci/cypress/after-spec.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
'use strict'

module.exports = require('../../packages/datadog-plugin-cypress/src/after-spec')
2 changes: 2 additions & 0 deletions ci/cypress/plugin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const { NODE_MAJOR } = require('../../version')

// These polyfills are here because cypress@6.7.0, which we still support for v5, runs its plugin code
Expand Down
2 changes: 2 additions & 0 deletions ci/cypress/polyfills.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

if (!Object.hasOwn) {
Object.defineProperty(Object, 'hasOwn', {
// eslint-disable-next-line prefer-object-has-own
Expand Down
2 changes: 2 additions & 0 deletions ci/cypress/support.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
'use strict'

require('../../packages/datadog-plugin-cypress/src/support')
2 changes: 2 additions & 0 deletions ci/init.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

/* eslint-disable no-console */
const tracer = require('../packages/dd-trace')
const { isTrue, isFalse } = require('../packages/dd-trace/src/util')
Expand Down
22 changes: 11 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ services:

# Use this for local development when making new VCR cassettes to persist to the test agent
# Do not use the above testagent service if using this one.
testagent-vcr:
image: ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.24.1
ports:
- "127.0.0.1:9126:9126"
environment:
- LOG_LEVEL=DEBUG
- TRACE_LANGUAGE=javascript
- ENABLED_CHECKS=trace_stall,meta_tracer_version_header,trace_count_header,trace_peer_service
- PORT=9126
volumes:
- ${VCR_CASSETTES_PATH:-/tmp/empty-vcr}:/vcr-cassettes:delegated
# testagent-vcr:
# image: ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.24.1
# ports:
# - "127.0.0.1:9126:9126"
# environment:
# - LOG_LEVEL=DEBUG
# - TRACE_LANGUAGE=javascript
# - ENABLED_CHECKS=trace_stall,meta_tracer_version_header,trace_count_header,trace_peer_service
# - PORT=9126
# volumes:
# - ${VCR_CASSETTES_PATH:-/tmp/empty-vcr}:/vcr-cassettes:delegated
2 changes: 2 additions & 0 deletions docs/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ tracer.use('grpc', { client: { metadata: [] } });
tracer.use('grpc', { server: { metadata: [] } });
tracer.use('hapi');
tracer.use('hapi', httpServerOptions);
tracer.use('hono');
tracer.use('hono', httpServerOptions);
tracer.use('http');
tracer.use('http', {
server: httpServerOptions
Expand Down
Loading
Loading