Skip to content

fix(nodejs): flush configured exporter in parametric client - #7819

Merged
BridgeAR merged 1 commit into
mainfrom
BridgeAR/2026-09-24-otlp-parametric-flush
Sep 25, 2026
Merged

BridgeAR merged 1 commit into
mainfrom
BridgeAR/2026-09-24-otlp-parametric-flush

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

The Node.js parametric client dereferences the Agent writer in /trace/span/flush. OTEL_TRACES_EXPORTER=otlp selects an exporter without that writer, so the route returns HTTP 500 and the system-test job reports no OTLP request.

Call the configured exporter's flush method when it exists. Older OTLP exporters send on span finish and have no flush method. The OTLP test asserts flush success and waits for the request to reach the agent.

OTLP export has no Agent writer, so the Node.js parametric flush route returns HTTP 500. The test can also read the agent before the asynchronous OTLP request arrives.

Call the exporter's flush method when it exists. Older OTLP exporters send on span finish and have no flush method. Assert flush success in the OTLP test and wait for agent receipt.

Test-only; no tracer production code changes.

Refs: https://github.com/DataDog/dd-trace-js/actions/runs/35898571677/job/107308783865
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

tests/parametric/otel_env_vars/test_otel_traces_exporter.py             @DataDog/system-tests-reviewers
utils/build/docker/nodejs/parametric/server.js                          @DataDog/system-tests-reviewers
utils/docker_fixtures/_test_agent.py                                    @DataDog/system-tests-core

@BridgeAR
BridgeAR marked this pull request as ready for review September 24, 2026 19:46
@BridgeAR
BridgeAR requested review from a team as code owners September 24, 2026 19:46
@BridgeAR
BridgeAR merged commit c8ca9f6 into main Sep 25, 2026
450 checks passed
@BridgeAR
BridgeAR deleted the BridgeAR/2026-09-24-otlp-parametric-flush branch September 25, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants