Skip to content

v0.18.0#180

Merged
bengl merged 2 commits into
v0.xfrom
bengl/v0.17.0-release-fix
Jul 17, 2026
Merged

v0.18.0#180
bengl merged 2 commits into
v0.xfrom
bengl/v0.17.0-release-fix

Conversation

@bengl

@bengl bengl commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • release @datadog/libdatadog@0.18.0
  • keep the v0.17 release fix that refreshes change-buffer views after WASM memory grows during string interning
  • bump the pipeline/capabilities libdatadog rev to fix(trace-exporter): mark OTLP client-computed stats libdatadog#2245 commit 6356aee4c69b51f27e7e82e43b1797f60b74905a
  • cover OTLP clientComputedStats exports carrying both datadog-client-computed-stats: yes and Resource _dd.stats_computed=true

Context

dd-trace-js computes OTLP span metrics in JS. The native OTLP trace export path needs the client-computed stats marker from libdatadog so the Agent does not recompute the same stats. DataDog/libdatadog#2245 adds that marker when tracer metadata says client stats are computed.

This PR also keeps the existing release-workflow fix from the previous branch state: queueOp() must refresh WASM memory views after getStringId() because string interning can grow memory and detach the old DataView.

Verification

  • RED: before rebuilding the pipeline artifact from the new libdatadog rev, the new OTLP assertion failed with undefined !== 'yes' for datadog-client-computed-stats
  • GREEN: cargo build -p pipeline --target wasm32-unknown-unknown
  • GREEN: /Users/bryan.english/.nvm/versions/node/v26.5.0/bin/node scripts/build-wasm.js pipeline && /Users/bryan.english/.nvm/versions/node/v26.5.0/bin/node --test-force-exit test/pipeline.js passed 52/52
  • GREEN: PATH="/Users/bryan.english/.nvm/versions/node/v26.5.0/bin:$PATH" yarn -s lint

String interning can grow WASM memory and detach existing DataViews while queueOp is assembling an operation. Refresh the change-buffer views after interning before writing the string id.
@bengl
bengl marked this pull request as ready for review July 16, 2026 14:28
@bengl
bengl requested review from a team as code owners July 16, 2026 14:28
@github-actions

Copy link
Copy Markdown

Overall package size

Self size: 30.17 MB
Deduped: 30.17 MB
No deduping: 30.17 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------|

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@bengl
bengl requested a review from ekump July 16, 2026 14:38
@bengl bengl changed the title fix(pipeline): refresh views after string interning grows memory v0.18.0 Jul 16, 2026
@bengl
bengl force-pushed the bengl/v0.17.0-release-fix branch 2 times, most recently from 7a3c09c to 5c71852 Compare July 16, 2026 16:02
@bengl
bengl force-pushed the bengl/v0.17.0-release-fix branch from 5c71852 to 42d3474 Compare July 16, 2026 16:40
@bengl
bengl merged commit f72ebd1 into v0.x Jul 17, 2026
46 checks passed
@bengl
bengl deleted the bengl/v0.17.0-release-fix branch July 17, 2026 17:34
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