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

[FND-3427] Sync upstream #2

Open
wants to merge 100 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
653b06f
Drop `Gem::Specification`'s usage so it doesn't break bundler standal…
st0012 Jul 2, 2024
97a8554
Prepare changelog for 5.18.1 (#2336)
sl0thentr0py Jul 2, 2024
9a2b5ba
release: 5.18.1
getsentry-bot Jul 2, 2024
8e62859
Merge branch 'release/5.18.1'
Jul 2, 2024
142ec2f
Use Concurrent.usable_processor_count when it is available (#2339)
st0012 Jul 9, 2024
a1b61bb
Show contributors on README.md (#2326)
stephanie-anderson Jul 10, 2024
90edcb8
Fix typos (#2332)
ohbarye Jul 10, 2024
36866c5
Make links more specific in gemspecs (#2311)
AlexWayfer Jul 10, 2024
89f371f
Suppress the unnecessary “unsupported options notice” (#2349)
moznion Jul 23, 2024
18029e3
`teardown_sentry_test` helper should clear global even processors too…
st0012 Jul 23, 2024
c16a0f2
Don't overwrite ip_address if already set on user (#2350)
sl0thentr0py Jul 23, 2024
c785d04
Add client reports for span drop counts (#2346)
sl0thentr0py Jul 23, 2024
7bcf2d9
meta: Changelog for 5.18.2 (#2353)
sl0thentr0py Jul 23, 2024
cdf8a4a
release: 5.18.2
getsentry-bot Jul 23, 2024
94a8063
Merge branch 'release/5.18.2'
Jul 23, 2024
09f348e
Support for tracing Faraday requests (#2345)
solnic Jul 26, 2024
ef1eeb3
Unify Net::HTTP and Faraday implementations (#2360)
solnic Aug 5, 2024
e4571d9
Remove upper limit on graphql gem version (#2362)
st0012 Aug 6, 2024
47c4458
Include transaction data in the trace context (#2365)
solnic Aug 8, 2024
278316c
Fix skipping 'connect' spans (#2364)
solnic Aug 8, 2024
837577a
File/attachment uploads (#2357)
solnic Aug 8, 2024
3fb9b67
Update CHANGELOG.md (#2366)
sl0thentr0py Aug 8, 2024
8c1c259
Use `Concurrent.available_processor_count` instead of `Concurrent.usa…
heka1024 Aug 11, 2024
a09da50
Include Sentry meta tag in the layout automatically (#2369)
solnic Aug 13, 2024
3ac5b80
Changelog for 5.19.0 (#2370)
sl0thentr0py Aug 13, 2024
43c5cc2
release: 5.19.0
getsentry-bot Aug 13, 2024
0ff4151
Merge branch 'release/5.19.0'
Aug 13, 2024
fa0973a
Add Faraday instruction to changelog (#2371)
sl0thentr0py Aug 14, 2024
ec70677
rubocop -a --only Style/StringLiterals (#2373)
solnic Aug 16, 2024
5c26b9e
Fix rubocop setup (for some envs) (#2377)
solnic Aug 16, 2024
22f2a3a
feat: Add support for $SENTRY_DEBUG and $SENTRY_SPOTLIGHT (#2374)
BYK Aug 16, 2024
6181b7b
Support Rails 7.2 on CI (#2382)
st0012 Aug 19, 2024
9d23b6f
Add a generic way for skipping specs (#2385)
solnic Aug 22, 2024
51299fa
Improve CI (#2388)
solnic Aug 26, 2024
adf38eb
Fix a typo of the issue number in CHANGELOG (#2375)
y-yagi Aug 27, 2024
7b69425
all-repos: update actions/upload-artifact to v4 (#2359)
joshuarli Aug 27, 2024
4db5f74
Improve sidekiq-cron patch (#2387)
adamzapasnik Aug 27, 2024
5980531
Set default app dirs pattern (#2390)
st0012 Sep 1, 2024
c3bcfa0
Minor refactors (#2392)
st0012 Sep 2, 2024
0c56e1c
Verifies that client is available before sending breadcrumbs (#2394)
lomefin Sep 16, 2024
05c4675
Fix error events missing a DSC when there's an active span (#2408)
sl0thentr0py Sep 19, 2024
ab8361f
Add new `strip_backtrace_load_path` boolean config (default true) to …
sl0thentr0py Sep 20, 2024
04e030f
Add 5 min timeout to sentry_ruby_test workflow (#2410)
solnic Sep 20, 2024
23fe6f5
changelog for 5.20.0 (#2412)
sl0thentr0py Sep 23, 2024
246e926
Change timeout to 10 min since 5 is not enough (#2414)
sl0thentr0py Sep 23, 2024
0c875e4
Skip concurrent threaded test on jruby (#2415)
sl0thentr0py Sep 23, 2024
399c97d
fix changelog (#2416)
sl0thentr0py Sep 24, 2024
152eb5e
fix: Unable to use sentry when URI contains non-ascii symbols on Net:…
rascencio-kraft Sep 27, 2024
af8fcdd
Prevent Hub from having nil scope and client (#2402)
st0012 Sep 27, 2024
34ba320
release: 5.20.0
getsentry-bot Sep 27, 2024
d0afbe4
Merge branch 'release/5.20.0'
Sep 27, 2024
d96e8e1
Ignore rubocop file in spec files (#2420)
sl0thentr0py Sep 27, 2024
84bf2cf
release: 5.20.1
getsentry-bot Sep 27, 2024
e6028ab
Merge branch 'release/5.20.1'
Sep 27, 2024
a070e08
Generalize size limits based on envelope item type (#2421)
solnic Sep 30, 2024
8dc3d2d
Experimental support for multi-threaded profiling using Vernier (#2372)
solnic Oct 4, 2024
5b1b558
Consistent string freezing (#2422)
st0012 Oct 7, 2024
46a5395
Changelog for 5.21.0 (#2423)
sl0thentr0py Oct 7, 2024
d56c2bb
release: 5.21.0
getsentry-bot Oct 7, 2024
9d3a7be
Merge branch 'release/5.21.0'
Oct 7, 2024
499cbac
RSpec matchers (#2424)
solnic Oct 10, 2024
f3ed31e
Fix issues with stopping Vernier (#2429)
solnic Oct 11, 2024
d134d9e
Fix bundle cache on CI (#2432)
solnic Oct 16, 2024
76ede87
Upload coverage from all test runs (#2430)
solnic Oct 17, 2024
03293ef
[rails] disable eager loading in make_basic_app (#2434)
solnic Oct 17, 2024
2ff68a7
Fix ignoring spec files in codecov (#2437)
solnic Oct 18, 2024
ee37a4a
Add ActiveSupport for cache module (#2380)
frederikspang Oct 18, 2024
b4bbed2
Enforce latest rubygems on CI (#2439)
solnic Oct 20, 2024
957c8d6
Make Sentry.{close,get_main_hub} thread-safe (#2436)
solnic Oct 20, 2024
1c431f0
Revert "Enforce latest rubygems on CI (#2439)" (#2441)
solnic Oct 22, 2024
9bba2ef
Fix send_default_pii handling in rails controller spans (#2443)
sl0thentr0py Oct 22, 2024
e384446
Test sentry-rails against Rails 8.0.0 (#2444)
st0012 Oct 28, 2024
27d7384
RescuedExceptionInterceptor: Handle empty configuration (#2428)
MrSerth Oct 28, 2024
9446a30
Add child_spans for Sidekiq Queue instrumentation (#2403)
frederikspang Oct 29, 2024
ceba0da
Reset trace and transaction for sidekiq-cron
frederikspang Nov 5, 2024
5de4ebc
Fix the build (#2463)
solnic Nov 14, 2024
b31f0f3
[rails] support string errors in error reporter (#2464)
solnic Nov 16, 2024
a9b3687
Add Excon instrumentation (#2383)
frederikspang Nov 19, 2024
f225138
Add mutex sync to SessionFlusher aggregates (#2469)
sl0thentr0py Nov 28, 2024
0f0666c
Fix sentry-rails' backtrace cleaner issues (#2475)
st0012 Dec 2, 2024
e8566fb
Fix missing OpenStruct in raven CI (#2480)
sl0thentr0py Dec 2, 2024
0f89aa8
Test against official Rails 8.0 release (#2479)
st0012 Dec 3, 2024
4eb1dff
Pin jar-dependencies for jruby CI (#2482)
sl0thentr0py Dec 3, 2024
95a1b72
changelog for 5.22.0 (#2483)
sl0thentr0py Dec 4, 2024
2932e83
release: 5.22.0
getsentry-bot Dec 4, 2024
48f45e8
Merge branch 'release/5.22.0'
Dec 4, 2024
3d2e5e6
fix: Safe-navigate to session flusher (#2396)
ixti Dec 5, 2024
1eb011b
Update CHANGELOG.md (#2484)
solnic Dec 5, 2024
9d37d28
Fix latency related nil error for Sidekiq Queues module span data (#2…
sl0thentr0py Dec 10, 2024
d8c1066
chore(meta): update issue templates to use issue types (#2488)
stephanie-anderson Dec 10, 2024
a75819a
[ci] remove jruby-head until we can address #2490 (#2494)
solnic Dec 13, 2024
6a46d9f
Update CHANGELOG for 5.22.1 (#2496)
solnic Dec 13, 2024
3cf4616
release: 5.22.1
getsentry-bot Dec 16, 2024
67a0489
Merge branch 'release/5.22.1'
Dec 16, 2024
d21c500
Replace release bot with GH app (#2491)
Jeffreyhung Dec 16, 2024
bb9ce72
Improve the accuracy of duration calculations in cron jobs monitoring…
krzysztofjablonski Dec 19, 2024
98b30d2
Default to internal_error rather than unknown_error (#2473)
cyberdelia Dec 19, 2024
e232255
Update CHANGELOG.md (#2502)
solnic Dec 19, 2024
ad535cc
Add Metrics.duration_(start,end) (#2501)
solnic Dec 19, 2024
bf8d8c5
Add multi-root workspace configuration file (#2505)
st0012 Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
name: Feature Request
about: Propose a new feature of the Ruby SDK
title: ''
labels: enhancement
assignees:

name: 💡 Feature Request
about: Propose new functionality for the SDK
type: Feature
---

**Describe the idea**
Expand Down
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/02-improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: 💡 Improvement
about: Propose an improvement for existing functionality of the SDK
type: Improvement
---

**Describe the idea**

**Why do you think it's beneficial to most of the users**

**Possible implementation**
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/03-bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 🐞 Bug Report
description: "Report an unexpected problem or behavior of this SDK"
type: Bug
body:
- type: textarea
attributes:
label: Issue Description
validations:
required: true
- type: textarea
attributes:
label: Reproduction Steps
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
validations:
required: true
- type: textarea
attributes:
label: Actual Behavior
validations:
required: true
- type: input
attributes:
label: Ruby Version
validations:
required: true
- type: input
attributes:
label: SDK Version
validations:
required: true
- type: input
attributes:
label: Integration and Its Version
description: e.g. Rails/Sidekiq/Rake/DelayedJob...etc.
validations:
required: false
- type: textarea
attributes:
label: Sentry Config
validations:
required: false
46 changes: 0 additions & 46 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build_batch_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3
- name: Build gem source
run: ruby .scripts/batch_build.rb
- name: Archive Artifacts
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: sentry*/*.gem
2 changes: 1 addition & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
working-directory: ${{env.sdk-directory}}
run: make build
- name: Archive Artifacts
uses: actions/upload-artifact@v3.1.1
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: ${{env.sdk-directory}}/*.gem
10 changes: 8 additions & 2 deletions .github/workflows/prepare_batch_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ jobs:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- name: Get auth token
id: token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_RELEASE_PAT }}
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
10 changes: 8 additions & 2 deletions .github/workflows/prepare_raven_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ jobs:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- name: Get auth token
id: token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_RELEASE_PAT }}
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
path: sentry-raven
version: ${{ github.event.inputs.version }}
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/sentry_delayed_job_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ jobs:
working-directory: sentry-delayed_job
name: Ruby ${{ matrix.ruby_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ubuntu-latest
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-delayed_job/Gemfile
BUNDLE_WITHOUT: rubocop
strategy:
fail-fast: false
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
include:
Expand All @@ -42,6 +47,7 @@ jobs:
# LoadError:
# cannot load such file -- mutex_m
- { ruby_version: "head" }
- { ruby_version: 'jruby-head' }
steps:
- uses: actions/checkout@v1
- name: Install sqlite
Expand All @@ -55,13 +61,10 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true

- name: Run specs
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
run: bundle exec rake

- name: Upload Coverage
if: ${{ matrix.options.codecov }}
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/sentry_opentelemetry_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ jobs:
working-directory: sentry-opentelemetry
name: Ruby ${{ matrix.ruby_version }} & OpenTelemetry ${{ matrix.opentelemetry_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ubuntu-latest
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-opentelemetry/Gemfile
BUNDLE_WITHOUT: rubocop
OPENTELEMETRY_VERSION: ${{ matrix.opentelemetry_version }}
strategy:
fail-fast: false
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
# opentelemetry_version: [1.2.0]
Expand All @@ -37,7 +43,8 @@ jobs:
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal",
},
}
- { ruby_version: 3.2, options: { codecov: 1 } }
exclude:
- { ruby_version: 'jruby-head' }
steps:
- uses: actions/checkout@v1

Expand All @@ -48,15 +55,9 @@ jobs:
bundler-cache: true

- name: Run specs
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
OPENTELEMETRY_VERSION: ${{ matrix.opentelemetry_version }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
run: bundle exec rake

- name: Upload Coverage
if: ${{ matrix.options.codecov }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
21 changes: 12 additions & 9 deletions .github/workflows/sentry_rails_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
working-directory: sentry-rails
name: Ruby ${{ matrix.ruby_version }} & Rails ${{ matrix.rails_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ubuntu-latest
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-rails/Gemfile
BUNDLE_WITHOUT: rubocop
RAILS_VERSION: ${{ matrix.rails_version }}
strategy:
fail-fast: false
matrix:
Expand All @@ -43,6 +48,11 @@ jobs:
- { ruby_version: "2.7", rails_version: 5.2.0 }
- { ruby_version: "2.7", rails_version: 6.0.0 }
- { ruby_version: "2.7", rails_version: 6.1.0 }
- { ruby_version: "3.1", rails_version: 7.2.0 }
- { ruby_version: "3.2", rails_version: 7.2.0 }
- { ruby_version: "3.3", rails_version: 7.2.0 }
- { ruby_version: "3.2", rails_version: "8.0.0" }
- { ruby_version: "3.3", rails_version: "8.0.0" }
- { ruby_version: "jruby", rails_version: 6.1.0 }
- {
ruby_version: "3.2",
Expand All @@ -54,8 +64,7 @@ jobs:
}
- {
ruby_version: "3.2",
rails_version: 7.1.0,
options: { codecov: 1 },
rails_version: 7.1.0
}
steps:
- uses: actions/checkout@v1
Expand All @@ -72,15 +81,9 @@ jobs:
bundler-cache: true

- name: Build with Rails ${{ matrix.rails_version }}
env:
RAILS_VERSION: ${{ matrix.rails_version }}
RUBYOPT: ${{ matrix.options.rubyopt }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
run: bundle exec rake

- name: Upload Coverage
if: ${{ matrix.options.codecov }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/sentry_resque_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ jobs:
working-directory: sentry-resque
name: Ruby ${{ matrix.ruby_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ubuntu-latest
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-resque/Gemfile
BUNDLE_WITHOUT: rubocop
strategy:
fail-fast: false
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
include:
Expand All @@ -36,7 +41,8 @@ jobs:
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal",
},
}
- { ruby_version: "3.2", options: { codecov: 1 } }
exclude:
- { ruby_version: 'jruby-head' }
steps:
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby_version }}
Expand All @@ -50,23 +56,17 @@ jobs:
with:
redis-version: 5

- name: Run specs
- name: Run specs without Rails
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
run: BUNDLE_WITHOUT="rubocop rails" bundle exec rake

- name: Run specs with Rails
env:
BUNDLE_GEMFILE: Gemfile_with_rails.rb
RUBYOPT: ${{ matrix.options.rubyopt }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
run: bundle exec rake

- name: Upload Coverage
if: ${{ matrix.options.codecov }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Loading