Skip to content
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

[PROF-8944] Upgrade to libdatadog 6 #3455

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Feb 12, 2024

What does this PR do?

This PR upgrades dd-trace-rb to use libdatadog 6. The highlight of this release are memory footprint improvements when using the profiling timeline feature.

There was a small breaking API change -- the addition of the info parameter in ddog_prof_Exporter_Request_build, which will be used in #3357 but for this PR I only passed in a NULL.

Motivation:

Pick up the timeline memory improvements.

Additional Notes:

I'm opening this as a draft PR as libdatadog 6 is not yet available on rubygems.org, and I'll come back to re-trigger CI and mark this as non-draft once it is. Update: Ready!

How to test the change?

Our existing test coverage includes libdatadog testing, so a green CI is good here :)

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

@github-actions github-actions bot added the profiling Involves Datadog profiling label Feb 12, 2024
ivoanjo added a commit to DataDog/libdatadog that referenced this pull request Feb 12, 2024
**What does this PR do?**

This PR bumps the libdatadog version to 6.0.0 in preparation for
release.

We're going from 5.0.0 to 6.0.0 because of a small, yet still
backwards-incompatible change in the profiling APIs (see below).

**Motivation:**

Release libdatadog 6.0.0.

**Additional Notes:**

As far as I could spot, the only backwards incompatible API change is:

* `ProfileExporter::build`/`ddog_prof_Exporter_Request_build` now take
  an extra (optional/can be `NULL`) argument for attaching system
  information [#289](#289)

**How to test the change?**

I've tested the libdatadog 6 release locally using the Ruby profiler,
see DataDog/dd-trace-rb#3455 for my draft PR.
ivoanjo added a commit to DataDog/libdatadog that referenced this pull request Feb 12, 2024
**What does this PR do?**

This PR includes the changes documented in the "Releasing a new version
to rubygems.org" part of the README:
https://github.com/datadog/libdatadog/tree/main/ruby#releasing-a-new-version-to-rubygemsorg

(It's also exactly the same as the
[v5.0.0 release PR](#267)).

**Motivation:**

Enable Ruby to use libdatadog v6.0.0.

**Additional Notes:**

N/A

**How to test the change?**

I've tested this release locally against the changes in
DataDog/dd-trace-rb#3455 .

As a reminder, new libdatadog releases don't get automatically picked up
by dd-trace-rb, so the PR that bumps the Ruby profiler will also test
this release against all supported Ruby versions.
**What does this PR do?**

This PR upgrades dd-trace-rb to use libdatadog 6. The highlight of
this release are memory footprint improvements when using the
profiling timeline feature.

There was a small breaking API change -- the addition of the
`info` parameter in `ddog_prof_Exporter_Request_build`, which will
be used in #3357 but for this PR I only passed in a `NULL`.

**Motivation:**

Pick up the timeline memory improvements.

**Additional Notes:**

N/A

**How to test the change?**

Our existing test coverage includes libdatadog testing, so a green
CI is good here :)
@ivoanjo ivoanjo force-pushed the ivoanjo/prof-8944-libdatadog6-upgrade branch from 1a9c462 to 3cd8494 Compare February 12, 2024 14:19
@ivoanjo ivoanjo marked this pull request as ready for review February 12, 2024 15:07
@ivoanjo ivoanjo requested review from a team as code owners February 12, 2024 15:07
@ivoanjo
Copy link
Member Author

ivoanjo commented Feb 12, 2024

The GitHub macOS test runners seem to be MIA. Since libdatadog upgrades are not known for affecting macOS, I'm going to go ahead and press the merge button.

@ivoanjo ivoanjo merged commit 27d301a into master Feb 12, 2024
219 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/prof-8944-libdatadog6-upgrade branch February 12, 2024 15:56
@github-actions github-actions bot added this to the 1.21.0 milestone Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Involves Datadog profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants