Skip to content

feat(data-pipeline)!: add fork safety hooks and cancellation token for trace exporter FFI#2051

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 11 commits into
mainfrom
lloeki/ffi-for-trace-exporter-fork-safety
Jun 4, 2026
Merged

feat(data-pipeline)!: add fork safety hooks and cancellation token for trace exporter FFI#2051
gh-worker-dd-mergequeue-cf854d[bot] merged 11 commits into
mainfrom
lloeki/ffi-for-trace-exporter-fork-safety

Conversation

@lloeki

@lloeki lloeki commented May 28, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Add fork safety and cooperative cancellation support to the trace exporter FFI:

  1. Fork hooks: Expose ddog_trace_exporter_before_fork, _after_fork_in_parent,
    and _after_fork_in_child that delegate to the underlying SharedRuntime. These
    allow C callers to coordinate the tokio runtime lifecycle around process forks.

  2. Cancellation token: Introduce ddog_trace_exporter_cancel_token_new, _cancel,
    and _drop for managing cancellation tokens. Thread the token into
    ddog_trace_exporter_send_trace_chunks via tokio::select! so callers can
    cooperatively abort in-flight HTTP requests.

Motivation

FUP to #1952.

Ruby application servers (Puma, Unicorn, Passenger) fork worker processes. The tokio
runtime does not survive fork() — its threads are not carried over. Without the fork
hooks, the trace exporter is dead in child processes.

The existing RUBY_UBF_IO unblock function on the dd-trace-rb side sends a signal
that cannot actually cancel an in-flight Rust HTTP request. The cancellation token
enables cooperative abort: when Ruby interrupts a thread (shutdown, Thread#kill),
the UBF cancels the token, which causes tokio::select! to abort the send and return
promptly.

Additional Notes

  • Added a pub fn shared_runtime() accessor to TraceExporter since the field was private.
  • The cancellation token uses Handle<CancellationToken> from libdd-common-ffi, same
    pattern as profiling-ffi, with a ddog_TraceExporterCancelToken cbindgen rename to
    avoid symbol conflicts.
  • The cancel parameter on send_trace_chunks is nullable; passing NULL preserves
    existing behavior.

AI was used to accelerate implementation; all code was reviewed and understood.

How to test the change?

cargo test -p libdd-data-pipeline-ffi --lib

46 tests pass (40 existing + 6 new for fork hooks and cancellation token).

@datadog-official

datadog-official Bot commented May 28, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 36.36%
Overall Coverage: 73.58% (-0.09%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7d62c8a | Docs | Datadog PR Page | Give us feedback!

@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Clippy Allow Annotation Report

Comparing clippy allow annotations between branches:

  • Base Branch: origin/main
  • PR Branch: origin/lloeki/ffi-for-trace-exporter-fork-safety

Summary by Rule

Rule Base Branch PR Branch Change
unwrap_used 2 2 No change (0%)
Total 2 2 No change (0%)

Annotation Counts by File

File Base Branch PR Branch Change
libdd-data-pipeline/src/trace_exporter/mod.rs 2 2 No change (0%)

Annotation Stats by Crate

Crate Base Branch PR Branch Change
clippy-annotation-reporter 5 5 No change (0%)
datadog-ffe-ffi 1 1 No change (0%)
datadog-ipc 21 21 No change (0%)
datadog-live-debugger 6 6 No change (0%)
datadog-live-debugger-ffi 10 10 No change (0%)
datadog-profiling-replayer 4 4 No change (0%)
datadog-remote-config 4 4 No change (0%)
datadog-sidecar 58 58 No change (0%)
libdd-common 13 13 No change (0%)
libdd-common-ffi 12 12 No change (0%)
libdd-data-pipeline 5 5 No change (0%)
libdd-ddsketch 2 2 No change (0%)
libdd-dogstatsd-client 1 1 No change (0%)
libdd-profiling 13 13 No change (0%)
libdd-telemetry 20 20 No change (0%)
libdd-tinybytes 4 4 No change (0%)
libdd-trace-normalization 2 2 No change (0%)
libdd-trace-obfuscation 3 3 No change (0%)
libdd-trace-stats 1 1 No change (0%)
libdd-trace-utils 13 13 No change (0%)
Total 198 198 No change (0%)

About This Report

This report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality.

@codecov-commenter

codecov-commenter commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 36.36364% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.57%. Comparing base (401e623) to head (7d62c8a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2051      +/-   ##
==========================================
- Coverage   73.67%   73.57%   -0.10%     
==========================================
  Files         472      472              
  Lines       78697    78737      +40     
==========================================
- Hits        57978    57933      -45     
- Misses      20719    20804      +85     
Components Coverage Δ
libdd-crashtracker 65.47% <ø> (-0.02%) ⬇️
libdd-crashtracker-ffi 37.68% <ø> (ø)
libdd-agent-client 83.79% <ø> (ø)
libdd-alloc 98.77% <ø> (ø)
libdd-data-pipeline 86.08% <37.20%> (-1.06%) ⬇️
libdd-data-pipeline-ffi 73.02% <51.61%> (-4.02%) ⬇️
libdd-common 79.93% <ø> (ø)
libdd-common-ffi 74.41% <ø> (ø)
libdd-telemetry 73.34% <ø> (-0.03%) ⬇️
libdd-telemetry-ffi 31.36% <ø> (ø)
libdd-dogstatsd-client 82.64% <ø> (ø)
datadog-ipc 76.36% <ø> (ø)
libdd-profiling 81.69% <ø> (-0.02%) ⬇️
libdd-profiling-ffi 64.79% <ø> (ø)
libdd-sampling 97.41% <ø> (ø)
datadog-sidecar 36.24% <ø> (ø)
datdog-sidecar-ffi 10.33% <ø> (ø)
spawn-worker 48.86% <ø> (ø)
libdd-tinybytes 93.80% <ø> (ø)
libdd-trace-normalization 81.71% <ø> (ø)
libdd-trace-obfuscation 87.30% <ø> (ø)
libdd-trace-protobuf 68.25% <ø> (ø)
libdd-trace-utils 89.38% <ø> (+0.09%) ⬆️
libdd-tracer-flare 86.57% <ø> (ø)
libdd-log 74.83% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lloeki lloeki marked this pull request as ready for review May 28, 2026 14:40
@lloeki lloeki requested a review from a team as a code owner May 28, 2026 14:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22e92370e5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread libdd-data-pipeline-ffi/Cargo.toml Outdated
Comment on lines +39 to +40
tokio = { version = "1.23", features = ["macros"] }
tokio-util = "0.7.11"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Regenerate Cargo.lock for the new dependencies

Adding tokio/tokio-util to this crate without committing the corresponding root Cargo.lock update breaks locked builds: I checked cargo check -p libdd-data-pipeline-ffi --locked, and Cargo exits with the lock file /workspace/libdatadog/Cargo.lock needs to be updated. Any CI or consumer build using the repository lockfile will fail before compiling this crate until the lock entry for libdd-data-pipeline-ffi includes these new dependencies.

Useful? React with 👍 / 👎.

@marcotc marcotc May 28, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit: I think I was wrong, looks like a legit failure: https://github.com/DataDog/libdatadog/actions/runs/26578731968/job/78305509370?pr=2051

original comment:
This feels like a case of "AI doesn't know how "libdd-data-pipeline-ffi" is used.
This might information be worth writing down (maybe in https://github.com/DataDog/libdatadog/blob/22e92370e5d66c0efd6ac5fe949bd8b6514fd902/libdd-data-pipeline-ffi/README.md, or other place if this is common across multiple libdatadog/* crates).

Comment thread libdd-data-pipeline-ffi/cbindgen.toml Outdated
"TracerSpan" = "ddog_TracerSpan"
"TracerSpanFields" = "ddog_TracerSpanFields"
"TracerTraceChunks" = "ddog_TracerTraceChunks"
"Handle_TokioCancellationToken" = "ddog_TraceExporterCancelToken"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Declare the opaque cancellation token type in cbindgen

With only the handle rename here, cbindgen emits typedef ddog_CancellationToken ddog_TokioCancellationToken; in data-pipeline.h, but this header only includes common.h, which does not define ddog_CancellationToken; I regenerated the header and cc -fsyntax-only reports unknown type name 'ddog_CancellationToken'. C/C++ consumers that include the generated data-pipeline header will not compile when this new token type is present, so this needs the same opaque token rename/forward declaration pattern used by the profiling FFI header.

Useful? React with 👍 / 👎.

Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated
///
/// All clones of the same token observe the cancellation. If the token is
/// currently passed to [`ddog_trace_exporter_send_trace_chunks`], the
/// in-flight HTTP request will be aborted cooperatively.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does cooperatively mean here?

Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated
/// Cancel a cancellation token.
///
/// All clones of the same token observe the cancellation. If the token is
/// currently passed to [`ddog_trace_exporter_send_trace_chunks`], the

@marcotc marcotc May 28, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// currently passed to [`ddog_trace_exporter_send_trace_chunks`], the
/// currently help by [`ddog_trace_exporter_send_trace_chunks`], the

Wouldn't "currently held" be more accurate than "currently passed" here, since "ddog_trace_exporter_send_trace_chunks" might have finished its work already, thus not holding the token anymore?

Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated

/// Cancel a cancellation token.
///
/// All clones of the same token observe the cancellation. If the token is

@marcotc marcotc May 28, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the token was not passed to ddog_trace_exporter_send_trace_chunks, but will soon, is a cancellation: scheduled to happen; ddog_trace_exporter_send_trace_chunks won't start because it's already cancelled; nothing?
It's good to document what happens when the token is not held yet.
And also, if the token is no longer held (aka ddog_trace_exporter_send_trace_chunks is done), which I assume means nothing happens on ddog_trace_exporter_cancel_token_cancel.

Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated
Comment on lines +315 to +318
/// # Safety
///
/// * `token` must point to a valid [`Handle`] returned by
/// [`ddog_trace_exporter_cancel_token_new`].

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// # Safety
///
/// * `token` must point to a valid [`Handle`] returned by
/// [`ddog_trace_exporter_cancel_token_new`].
/// * `token` is the return of [`ddog_trace_exporter_cancel_token_new`].

I don't think we need to say that we should give this function a "valid" input.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same applies to ddog_trace_exporter_cancel_token_drop.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's more of these Safety comment blocks in down this file. All the ones in a similar "type-checked argument must be type-valid" is likely not needed.

Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated

/// Free a cancellation token handle.
///
/// After this call the pointer is invalid and must not be reused.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is useful additional information "After this call the pointer is invalid and must not be reused.".

Freed resources cannot be used and are likely invalid.

If we want to provide additional context here, the only thing I can think of is: what happens if you free it while ddog_trace_exporter_send_trace_chunks still owns it. But I feel like that's kind of a natural contract in Rust/native: freeing things in use == bad.
Not sure if we need an extra comment here.

Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated
/// * `chunks` is consumed and must not be used after this call.
/// * If `response_out` is non-null it must point to valid writable memory for a
/// `Box<ExporterResponse>`.
/// * If `cancel` is non-null it must point to a valid cancellation token handle.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar comment to those in ddog_trace_exporter_cancel_token_cancel: is it even possible to pass an invalid cancellation token since the argument is typed *mut Handle<TokioCancellationToken>?

@marcotc marcotc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite my other comments, the implementation looks good 👍

Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated
Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated
Comment thread libdd-data-pipeline/src/trace_exporter/mod.rs Outdated
Comment thread libdd-data-pipeline-ffi/src/tracer.rs Outdated
lloeki added 2 commits May 29, 2026 13:40
Add `ddog_trace_exporter_before_fork`, `_after_fork_in_parent`, and
`_after_fork_in_child` that delegate to the underlying SharedRuntime.
These allow C callers to coordinate the tokio runtime lifecycle around
process forks.
Introduce `ddog_trace_exporter_cancel_token_new`, `_cancel`, and
`_drop` for managing cancellation tokens. Thread the token into
`ddog_trace_exporter_send_trace_chunks` via `tokio::select!` so
callers can cooperatively abort in-flight HTTP requests.
@lloeki lloeki force-pushed the lloeki/ffi-for-trace-exporter-fork-safety branch from 22e9237 to c5c339a Compare May 29, 2026 11:42
@dd-octo-sts

dd-octo-sts Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Artifact Size Benchmark Report

aarch64-alpine-linux-musl
Artifact Baseline Commit Change
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.a 82.85 MB 83.48 MB +.76% (+647.04 KB) 🔍
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so 7.63 MB 7.70 MB +.82% (+64.58 KB) 🔍
aarch64-unknown-linux-gnu
Artifact Baseline Commit Change
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.25 MB 10.34 MB +.84% (+88.24 KB) 🔍
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.a 93.93 MB 94.58 MB +.69% (+670.23 KB) 🔍
libdatadog-x64-windows
Artifact Baseline Commit Change
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.dll 24.53 MB 24.73 MB +.83% (+209.50 KB) 🔍
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.lib 83.96 KB 86.89 KB +3.48% (+2.92 KB) ⚠️
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.pdb 179.05 MB 179.90 MB +.47% (+864.00 KB) 🔍
/libdatadog-x64-windows/debug/static/datadog_profiling_ffi.lib 919.85 MB 923.17 MB +.36% (+3.32 MB) 🔍
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.dll 8.02 MB 8.09 MB +.91% (+75.50 KB) 🔍
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.lib 83.96 KB 86.89 KB +3.48% (+2.92 KB) ⚠️
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.pdb 23.75 MB 23.91 MB +.65% (+160.00 KB) 🔍
/libdatadog-x64-windows/release/static/datadog_profiling_ffi.lib 47.38 MB 47.72 MB +.72% (+349.96 KB) 🔍
libdatadog-x86-windows
Artifact Baseline Commit Change
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.dll 21.25 MB 21.43 MB +.85% (+185.00 KB) 🔍
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.lib 85.29 KB 88.26 KB +3.49% (+2.97 KB) ⚠️
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.pdb 182.98 MB 183.87 MB +.49% (+920.00 KB) 🔍
/libdatadog-x86-windows/debug/static/datadog_profiling_ffi.lib 912.59 MB 915.93 MB +.36% (+3.34 MB) 🔍
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.dll 6.19 MB 6.25 MB +.86% (+55.00 KB) 🔍
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.lib 85.29 KB 88.26 KB +3.49% (+2.97 KB) ⚠️
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.pdb 25.45 MB 25.62 MB +.67% (+176.00 KB) 🔍
/libdatadog-x86-windows/release/static/datadog_profiling_ffi.lib 45.04 MB 45.35 MB +.70% (+323.68 KB) 🔍
x86_64-alpine-linux-musl
Artifact Baseline Commit Change
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.a 73.87 MB 74.45 MB +.77% (+589.89 KB) 🔍
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so 8.52 MB 8.58 MB +.60% (+52.56 KB) 🔍
x86_64-unknown-linux-gnu
Artifact Baseline Commit Change
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.a 89.28 MB 89.86 MB +.65% (+602.58 KB) 🔍
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.35 MB 10.43 MB +.74% (+78.65 KB) 🔍

lloeki added 6 commits June 3, 2026 16:41
Add an optional cancellation token to the synchronous send_trace_chunks
path. When the token is cancelled while a request is in flight, the send
is aborted and an interrupted IO error is returned. This moves the
cancellation logic into the exporter itself instead of relying on the
experimental async send path, keeping the FFI layer a thin wrapper.
Replace the `Handle<CancellationToken>` cancel parameter and token
functions with a plain `Option<&CancellationToken>`/`Box` ownership
model. A null pointer now maps to `None` via the nullable-pointer
optimization, with no conversion. The cbindgen config is updated to emit
the token as an opaque `ddog_TraceExporterCancelToken`, which also
removes the previously undefined `ddog_CancellationToken` reference from
the generated header.
Remove the public `shared_runtime()` accessor and the trace-exporter
fork hooks. Fork safety is now driven through the `SharedRuntime` the
caller constructs (via libdd-shared-runtime-ffi) and injects into the
builder, calling that runtime's own fork lifecycle functions directly.
This keeps the runtime an implementation detail of the exporter and
avoids duplicating the fork hooks across FFI surfaces.
Commit the Cargo.lock entry for the tokio-util dependency that backs the
cancellation token type, drop the now-unused tokio dependency (the
select-based cancellation moved into libdd-data-pipeline), and document
in the README why tokio-util is a dependency.
Describe how cancellation cooperatively aborts an in-flight send, what
happens when the token is not currently used by a send and when the send
has already finished, and warn that cancelling may drop the trace chunks
being sent. Drop the redundant Safety notes that restated guarantees
already enforced by the type-checked arguments.
The trace-exporter redesign on this branch drives fork safety through the
generic shared-runtime FFI (ddog_shared_runtime_new / _free / _before_fork /
_after_fork_parent / _after_fork_child), but those symbols aren't shipped
today: the builder compiles one aggregate cdylib from libdd-profiling-ffi's
dependency graph, which doesn't include libdd-shared-runtime-ffi.

Shipping it as a SEPARATE library was tried and fails at runtime with a
SIGSEGV, because each library statically embeds its own copy of
libdd_shared_runtime and a SharedRuntime handle created in one library cannot
be driven from the other. Evidence and analysis:
DataDog/libdatadog-rb#52 (comment)

Co-locate the FFI in the single profiling library so there is exactly one copy
of the libdd_shared_runtime crate at runtime. cargo unifies it with the copy
already pulled in via data-pipeline. The change is additive and opt-in behind a
new `shared-runtime` feature, so other consumers are unaffected unless enabled.

- libdd-profiling-ffi: add optional libdd-shared-runtime-ffi dependency behind a
  `shared-runtime` feature, re-export its symbols, and propagate cbindgen.
- builder: add a `shared-runtime` feature (enabled by default), push the
  corresponding libdd-profiling-ffi feature in release.rs, and add
  shared-runtime.h to the header dedup/copy in profiling.rs.
@lloeki lloeki requested review from a team as code owners June 3, 2026 18:44
@lloeki lloeki requested a review from a team as a code owner June 3, 2026 18:44

@VianneyRuhlmann VianneyRuhlmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread libdd-profiling-ffi/Cargo.toml Outdated
lloeki and others added 2 commits June 4, 2026 16:06
@VianneyRuhlmann VianneyRuhlmann changed the title Add fork safety hooks and cancellation token for trace exporter FFI feat!(data-pipeline): add fork safety hooks and cancellation token for trace exporter FFI Jun 4, 2026
@VianneyRuhlmann VianneyRuhlmann changed the title feat!(data-pipeline): add fork safety hooks and cancellation token for trace exporter FFI feat(data-pipeline)!: add fork safety hooks and cancellation token for trace exporter FFI Jun 4, 2026
@VianneyRuhlmann VianneyRuhlmann added the commit-rustfmt-changes allow the rustfmt action to commit changes to your PR label Jun 4, 2026
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 2a6c295 into main Jun 4, 2026
110 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the lloeki/ffi-for-trace-exporter-fork-safety branch June 4, 2026 18:01
iunanua added a commit that referenced this pull request Jun 8, 2026
# Release proposal for libdd-data-pipeline and its dependencies

This PR contains version bumps based on public API changes and commits
since last release.

## libdd-trace-utils
**Next version:** `8.0.0`
**Semver bump:** `major`
**Tag:** `libdd-trace-utils-v8.0.0`

### Commits

- refactor(vecmap)!: avoid Clone bound from dedup (#2069)

## libdd-telemetry
**Next version:** `5.0.1`
**Semver bump:** `patch`
**Tag:** `libdd-telemetry-v5.0.1`

### Commits

- fix(libdd-telemetry): serialize Method::Other as "*" per OpenAPI spec
(#1998)

## libdd-trace-obfuscation
**Next version:** `4.0.0`
**Semver bump:** `major`
**Tag:** `libdd-trace-obfuscation-v4.0.0`

### ⚠️ major bump forced due to:

- `libdd-trace-utils`: ^5.0.0 → ^7.0.0

### Commits

- ci: bump msrv to 1.87.0 (#2017)

## libdd-trace-stats
**Next version:** `5.0.0`
**Semver bump:** `major`
**Tag:** `libdd-trace-stats-v5.0.0`

### ⚠️ major bump forced due to:

- `libdd-trace-utils`: ^5.0.0 → ^7.0.0

### Commits

- revert!: add from_string to span text (#2011) (#2073)
- fix(send_with_retry): follow max retries of the strategy (#2047)
- ci: bump msrv to 1.87.0 (#2017)

## libdd-data-pipeline
**Next version:** `6.0.0`
**Semver bump:** `major`
**Tag:** `libdd-data-pipeline-v6.0.0`

### ⚠️ major bump forced due to:

- `libdd-trace-utils`: ^5.0.0 → ^7.0.0

### Commits

- feat(data-pipeline)!: add fork safety hooks and cancellation token for
trace exporter FFI (#2051)
- revert!: add from_string to span text (#2011) (#2073)
- feat(data-pipeline): move the async boundary up (#2064)
- feat(trace-exporter): add fail-closed fallback to v04 (#2037)
- fix(send_with_retry): follow max retries of the strategy (#2047)
- refactor(trace-utils): replace use_v05_format bool and remove
infallible expect (#1946)
- ci: bump msrv to 1.87.0 (#2017)

## libdd-sampling (manually bumped as it wasn't included in the
proposal)
**Next version:** `4.0.0`
**Semver bump:** `major`
**Tag:** `libdd-sampling-v4.0.0`

### ⚠️ major bump forced due to:

- `libdd-trace-utils`: ^7.0.0 → ^8.0.0

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: iunanua <18325288+iunanua@users.noreply.github.com>
Co-authored-by: iunanua <igor.unanua@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit-rustfmt-changes allow the rustfmt action to commit changes to your PR data-pipeline mergequeue-status: done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants