Skip to content

Commit 42f29cd

Browse files
authored
Merge branch 'main' into auto-instrumentation
2 parents 5c032ca + 494a861 commit 42f29cd

File tree

444 files changed

+12303
-1910
lines changed

Some content is hidden

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

444 files changed

+12303
-1910
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ what happened and what you expected with a link to the relevant portion of the s
2626

2727
Operating system details: Linux, Ubuntu 20.04 LTS
2828
RUBY_ENGINE: "ruby"
29-
RUBY_VERSION: "3.1.1"
30-
RUBY_DESCRIPTION: "ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [arm64-darwin21]"
29+
RUBY_VERSION: "3.4"
30+
RUBY_DESCRIPTION: "ruby 3.4.1 (2024-12-25 revision 48d4efcb85) arm64-darwin21]"
3131

3232
**Share a simplified reproduction if possible**
3333

@@ -76,4 +76,4 @@ end
7676
OpenTelemetry.tracer_provider.shutdown
7777
```
7878

79-
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
79+
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [in our end user docs](https://opentelemetry.io/community/end-user/issue-participation/).</sub>

.github/actions/test_gem/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ runs:
8484
# ...but not for appraisals, sadly.
8585
- name: Install Ruby ${{ inputs.ruby }} with dependencies
8686
if: "${{ steps.setup.outputs.appraisals == 'false' }}"
87-
uses: ruby/setup-ruby@v1.254.0
87+
uses: ruby/setup-ruby@v1.258.0
8888
with:
8989
ruby-version: "${{ inputs.ruby }}"
9090
working-directory: "${{ steps.setup.outputs.gem_dir }}"
@@ -95,7 +95,7 @@ runs:
9595
# If we're using appraisals, do it all manually.
9696
- name: Install Ruby ${{ inputs.ruby }} without dependencies
9797
if: "${{ steps.setup.outputs.appraisals == 'true' }}"
98-
uses: ruby/setup-ruby@v1.254.0
98+
uses: ruby/setup-ruby@v1.258.0
9999
with:
100100
ruby-version: "${{ inputs.ruby }}"
101101
bundler: "latest"

.github/dependabot.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,25 @@ updates:
55
directory: "/"
66
schedule:
77
interval: daily
8+
# Update all dependencies - processes from root to handle path dependencies correctly
89
- package-ecosystem: bundler
910
directory: "/"
1011
schedule:
1112
interval: weekly
13+
ignore:
14+
# Ignore internal instrumentation interdependencies managed via local paths in Gemfiles
15+
- dependency-name: "opentelemetry-instrumentation-*"
16+
- dependency-name: "opentelemetry-helpers-*"
17+
- dependency-name: "opentelemetry-processor-*"
18+
- dependency-name: "opentelemetry-propagator-*"
19+
- dependency-name: "opentelemetry-sampler-*"
20+
- dependency-name: "opentelemetry-resource-detector-*"
1221
groups:
13-
all-gems:
22+
production-dependencies:
23+
dependency-type: "production"
1424
patterns:
15-
- "**/Gemfile"
25+
- "*"
26+
development-dependencies:
27+
dependency-type: "development"
28+
patterns:
29+
- "*"

.github/workflows/check-spelling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: SPELLING check
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- uses: streetsidesoftware/cspell-action@v7
1616
with:
1717
# Files should be consistent with check:spelling files

.github/workflows/ci-contrib.yml

Lines changed: 11 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- sql
2828
- mysql
2929
- sql-obfuscation
30+
- sql-processor
3031
os:
3132
- ubuntu-latest
3233
name: "helpers-${{ matrix.gem }} / ${{ matrix.os }}"
3334
runs-on: ${{ matrix.os }}
3435
steps:
35-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v5
3637
- name: "Test Ruby 3.4"
3738
uses: ./.github/actions/test_gem
3839
with:
@@ -48,11 +49,6 @@ jobs:
4849
with:
4950
gem: "opentelemetry-helpers-${{ matrix.gem }}"
5051
ruby: "3.2"
51-
- name: "Test Ruby 3.1"
52-
uses: ./.github/actions/test_gem
53-
with:
54-
gem: "opentelemetry-helpers-${{ matrix.gem }}"
55-
ruby: "3.1"
5652
yard: true
5753
rubocop: true
5854
coverage: true
@@ -62,7 +58,7 @@ jobs:
6258
uses: ./.github/actions/test_gem
6359
with:
6460
gem: "opentelemetry-helpers-${{ matrix.gem }}"
65-
ruby: "jruby-9.4.12.0"
61+
ruby: "jruby-10.0.2.0"
6662

6763
propagators:
6864
strategy:
@@ -78,7 +74,7 @@ jobs:
7874
name: "propagator-${{ matrix.gem }} / ${{ matrix.os }}"
7975
runs-on: ${{ matrix.os }}
8076
steps:
81-
- uses: actions/checkout@v4
77+
- uses: actions/checkout@v5
8278
- name: "Test Ruby 3.4"
8379
uses: ./.github/actions/test_gem
8480
with:
@@ -94,11 +90,6 @@ jobs:
9490
with:
9591
gem: "opentelemetry-propagator-${{ matrix.gem }}"
9692
ruby: "3.2"
97-
- name: "Test Ruby 3.1"
98-
uses: ./.github/actions/test_gem
99-
with:
100-
gem: "opentelemetry-propagator-${{ matrix.gem }}"
101-
ruby: "3.1"
10293
yard: true
10394
rubocop: true
10495
build: true
@@ -107,7 +98,7 @@ jobs:
10798
uses: ./.github/actions/test_gem
10899
with:
109100
gem: "opentelemetry-propagator-${{ matrix.gem }}"
110-
ruby: "jruby-9.4.12.0"
101+
ruby: "jruby-10.0.2.0"
111102

112103
resource-detectors:
113104
strategy:
@@ -123,7 +114,7 @@ jobs:
123114
name: "opentelemetry-${{ matrix.gem }} / ${{ matrix.os }}"
124115
runs-on: ${{ matrix.os }}
125116
steps:
126-
- uses: actions/checkout@v4
117+
- uses: actions/checkout@v5
127118
- name: "Test Ruby 3.4"
128119
uses: ./.github/actions/test_gem
129120
with:
@@ -139,11 +130,6 @@ jobs:
139130
with:
140131
gem: "opentelemetry-${{ matrix.gem }}"
141132
ruby: "3.2"
142-
- name: "Test Ruby 3.1"
143-
uses: ./.github/actions/test_gem
144-
with:
145-
gem: "opentelemetry-${{ matrix.gem }}"
146-
ruby: "3.1"
147133
yard: true
148134
rubocop: true
149135
coverage: true
@@ -153,7 +139,7 @@ jobs:
153139
uses: ./.github/actions/test_gem
154140
with:
155141
gem: "opentelemetry-${{ matrix.gem }}"
156-
ruby: "jruby-9.4.12.0"
142+
ruby: "jruby-10.0.2.0"
157143

158144
processors:
159145
strategy:
@@ -166,7 +152,7 @@ jobs:
166152
name: "processors-${{ matrix.gem }} / ${{ matrix.os }}"
167153
runs-on: ${{ matrix.os }}
168154
steps:
169-
- uses: actions/checkout@v4
155+
- uses: actions/checkout@v5
170156
- name: "Test Ruby 3.4"
171157
uses: ./.github/actions/test_gem
172158
with:
@@ -182,11 +168,6 @@ jobs:
182168
with:
183169
gem: "opentelemetry-processor-${{ matrix.gem }}"
184170
ruby: "3.2"
185-
- name: "Test Ruby 3.1"
186-
uses: ./.github/actions/test_gem
187-
with:
188-
gem: "opentelemetry-processor-${{ matrix.gem }}"
189-
ruby: "3.1"
190171
yard: true
191172
rubocop: true
192173
coverage: true
@@ -196,7 +177,7 @@ jobs:
196177
uses: ./.github/actions/test_gem
197178
with:
198179
gem: "opentelemetry-processor-${{ matrix.gem }}"
199-
ruby: "jruby-9.4.12.0"
180+
ruby: "jruby-10.0.2.0"
200181

201182
samplers:
202183
strategy:
@@ -209,7 +190,7 @@ jobs:
209190
name: "samplers-${{ matrix.gem }} / ${{ matrix.os }}"
210191
runs-on: ${{ matrix.os }}
211192
steps:
212-
- uses: actions/checkout@v4
193+
- uses: actions/checkout@v5
213194
- name: "Test Ruby 3.4"
214195
uses: ./.github/actions/test_gem
215196
with:
@@ -225,11 +206,6 @@ jobs:
225206
with:
226207
gem: "opentelemetry-sampler-${{ matrix.gem }}"
227208
ruby: "3.2"
228-
- name: "Test Ruby 3.1"
229-
uses: ./.github/actions/test_gem
230-
with:
231-
gem: "opentelemetry-sampler-${{ matrix.gem }}"
232-
ruby: "3.1"
233209
yard: true
234210
rubocop: true
235211
coverage: true
@@ -239,70 +215,4 @@ jobs:
239215
uses: ./.github/actions/test_gem
240216
with:
241217
gem: "opentelemetry-sampler-${{ matrix.gem }}"
242-
ruby: "jruby-9.4.12.0"
243-
244-
auto-instrumentation:
245-
name: "auto-instrumentation / ubuntu-latest"
246-
runs-on: ubuntu-latest
247-
steps:
248-
- uses: actions/checkout@v4
249-
- name: "Test Ruby 3.4"
250-
uses: ruby/[email protected]
251-
with:
252-
ruby-version: "3.4"
253-
- name: Test Gem
254-
shell: bash
255-
run: |
256-
bundle install --quiet --jobs=3 --retry=4
257-
bundle exec rake test
258-
rm -f Gemfile.lock
259-
working-directory: './opentelemetry-auto-instrumentation'
260-
- name: "Test Ruby 3.3"
261-
uses: ruby/[email protected]
262-
with:
263-
ruby-version: "3.3"
264-
- name: Test Gem
265-
shell: bash
266-
run: |
267-
bundle install --quiet --jobs=3 --retry=4
268-
bundle exec rake test
269-
rm -f Gemfile.lock
270-
working-directory: './opentelemetry-auto-instrumentation'
271-
- name: "Test Ruby 3.2"
272-
uses: ruby/[email protected]
273-
with:
274-
ruby-version: "3.2"
275-
- name: Test Gem
276-
shell: bash
277-
run: |
278-
bundle install --quiet --jobs=3 --retry=4
279-
bundle exec rake test
280-
rm -f Gemfile.lock
281-
working-directory: './opentelemetry-auto-instrumentation'
282-
283-
- name: YARD
284-
shell: bash
285-
run: |
286-
# 📄 Yard Docs 📄
287-
bundle exec rake yard
288-
working-directory: './opentelemetry-auto-instrumentation'
289-
290-
- name: Rubocop
291-
shell: bash
292-
run: |
293-
# 🤖 Rubocop 🤖
294-
bundle exec rake rubocop
295-
working-directory: './opentelemetry-auto-instrumentation'
296-
297-
- name: Coverage
298-
shell: bash
299-
run: |
300-
bundle exec ruby -e 'require "simplecov"; SimpleCov.minimum_coverage(85)'
301-
working-directory: './opentelemetry-auto-instrumentation'
302-
303-
- name: Build Gem
304-
shell: bash
305-
run: |
306-
# 📦 Build Gem 📦
307-
gem build opentelemetry-auto-instrumentation.gemspec
308-
working-directory: './opentelemetry-auto-instrumentation'
218+
ruby: "jruby-10.0.2.0"

0 commit comments

Comments
 (0)