Skip to content

Commit 6c6a7ae

Browse files
authored
Merge branch 'master' into ivoanjo/libdatadog14-upgrade
2 parents 930fc88 + 3e73b3b commit 6c6a7ae

File tree

557 files changed

+702
-857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

557 files changed

+702
-857
lines changed

.circleci/config.yml

Lines changed: 79 additions & 295 deletions
Large diffs are not rendered by default.

.github/workflows/check.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
name: Check
22
on:
33
push:
4-
branches: [ '**' ]
5-
pull_request:
6-
# The branches below must be a subset of the branches above
7-
branches: [ '**' ]
4+
85
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: ghcr.io/datadog/images-rb/engines/ruby:3.2
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install dependencies
13+
run: bundle install
14+
- run: bundle exec rake rubocop standard
15+
916
check:
1017
name: Check types
11-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-latest
19+
container:
20+
image: ghcr.io/datadog/images-rb/engines/ruby:3.2
1221
steps:
1322
- uses: actions/checkout@v4
14-
- uses: ruby/setup-ruby@v1
15-
with:
16-
ruby-version: '3.2'
17-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
23+
- name: Install dependencies
24+
run: bundle install
1825
- name: Check for stale signature files
1926
run: bundle exec rake rbs:stale
2027
- name: Check for missing signature files

.github/workflows/test-macos.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@ jobs:
4040
ruby-version: ${{ matrix.ruby }}
4141
rubygems: 3.3.26
4242
bundler: 2.3.26 # needed to fix issue with steep on Ruby 3.0/3.1
43+
- if: ${{ matrix.ruby == '3.3' }}
44+
run: gem update --system 3.5.21
45+
- run: |
46+
ruby -v
47+
gem -v
48+
bundler -v
4349
- run: bundle install
4450
- run: bundle exec rake spec:main

CHANGELOG.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@
22

33
## [Unreleased]
44

5+
## [2.5.0] - 2024-11-05
6+
57
### Added
68

7-
* AppSec: Add Experimental Standalone AppSec Threats billing ([#3965][])
9+
* Performance: Profiling: Add setting to lower heap profiling memory use/latency by cleaning up young objects after Ruby GC ([#4020][])
10+
11+
### Changed
12+
13+
* Core: Replace the `debase-ruby_core_source` gem with the `datadog-ruby_core_source` ([#4014][])
14+
* Core: Upgrade to `libdatadog` 13.1 ([#3997][])
15+
16+
### Fixed
17+
18+
* Fix `undefined method` error for Rails runner ([#3996][])
19+
* Apply version tag only to spans that use the global/default service name ([#4027][])
20+
* Ensure UDS takes precedence over HTTP when both Agent configurations defined ([#4024][])
21+
* Remove duplicate leading slash in resource name for Grape routes ([#4033][])
822

923
## [2.4.0] - 2024-10-11
1024

@@ -2989,7 +3003,8 @@ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1
29893003
Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
29903004
29913005
2992-
[Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v2.4.0...master
3006+
[Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v2.5.0...master
3007+
[2.5.0]: https://github.com/DataDog/dd-trace-rb/compare/v2.4.0...v2.5.0
29933008
[2.4.0]: https://github.com/DataDog/dd-trace-rb/compare/v2.3.0...v2.4.0
29943009
[2.3.0]: https://github.com/DataDog/dd-trace-rb/compare/v2.2.0...v2.3.0
29953010
[2.2.0]: https://github.com/DataDog/dd-trace-rb/compare/v2.1.0...v2.2.0
@@ -4423,6 +4438,13 @@ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
44234438
[#3969]: https://github.com/DataDog/dd-trace-rb/issues/3969
44244439
[#3970]: https://github.com/DataDog/dd-trace-rb/issues/3970
44254440
[#3984]: https://github.com/DataDog/dd-trace-rb/issues/3984
4441+
[#3996]: https://github.com/DataDog/dd-trace-rb/issues/3996
4442+
[#3997]: https://github.com/DataDog/dd-trace-rb/issues/3997
4443+
[#4014]: https://github.com/DataDog/dd-trace-rb/issues/4014
4444+
[#4020]: https://github.com/DataDog/dd-trace-rb/issues/4020
4445+
[#4024]: https://github.com/DataDog/dd-trace-rb/issues/4024
4446+
[#4027]: https://github.com/DataDog/dd-trace-rb/issues/4027
4447+
[#4033]: https://github.com/DataDog/dd-trace-rb/issues/4033
44264448
[@AdrianLC]: https://github.com/AdrianLC
44274449
[@Azure7111]: https://github.com/Azure7111
44284450
[@BabyGroot]: https://github.com/BabyGroot
@@ -4574,4 +4596,4 @@ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
45744596
[@y-yagi]: https://github.com/y-yagi
45754597
[@yujideveloper]: https://github.com/yujideveloper
45764598
[@yukimurasawa]: https://github.com/yukimurasawa
4577-
[@zachmccormick]: https://github.com/zachmccormick
4599+
[@zachmccormick]: https://github.com/zachmccormick

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ namespace :test do
5959
command = if appraisal_group.empty?
6060
"bundle exec rake #{spec_task}"
6161
else
62-
"bundle exec appraisal #{ruby_runtime}-#{appraisal_group} rake #{spec_task}"
62+
gemfile = File.join(File.dirname(__FILE__), 'gemfiles', "#{ruby_runtime}-#{appraisal_group}.gemfile".tr('-', '_'))
63+
"env BUNDLE_GEMFILE=#{gemfile} bundle exec rake #{spec_task}"
6364
end
6465

6566
command += "'[#{spec_arguments}]'" if spec_arguments

appraisal/ruby-3.4.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@
125125
gem 'sneakers', '>= 2.12.0'
126126
gem 'sucker_punch'
127127
gem 'que', '>= 1.0.0'
128+
129+
# When Rack 3+ is used, we need rackup.
130+
gem 'rackup'
128131
end
129132

130133
[

docs/DevelopmentGuide.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,24 @@ TEST_METADATA = {
105105
}
106106
```
107107

108+
**Using appraisal**
109+
110+
`appraisal` command should only be used to update gemfiles in `gemfiles/`
111+
and install dependencies. It should not be used to run tests, since it does not
112+
work in all configurations. To run the tests, use:
113+
114+
```sh
115+
env BUNDLE_GEMFILE=gemfiles/#{ruby_runtime}_#{appraisal_group}.gemfile rake #{spec_task}
116+
```
117+
118+
Note that the file names use underscores while appraisal group and
119+
configuration definitions use dashes. The conversion could be performed as
120+
follows:
121+
122+
```sh
123+
env BUNDLE_GEMFILE=gemfiles/#{ruby_runtime.tr('-', '_')}_#{appraisal_group.tr('-', '_')}.gemfile rake #{spec_task}
124+
```
125+
108126
**Working with appraisal groups**
109127

110128
Checkout [Apppraisal](https://github.com/thoughtbot/appraisal) to learn the basics.

gemfiles/jruby_9.2_activesupport.gemfile.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gemfiles/jruby_9.2_aws.gemfile.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gemfiles/jruby_9.2_contrib.gemfile.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)