forked from ictsc/ictsc-score-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Update sentry-ruby monorepo to v5.28.1 #95
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
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/sentry-ruby-monorepo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4af8927 to
9194be5
Compare
9194be5 to
e3178ea
Compare
e3178ea to
9d230a1
Compare
9d230a1 to
ad9f7c5
Compare
ad9f7c5 to
e3020c5
Compare
e3020c5 to
e1ed3ca
Compare
e1ed3ca to
8be325c
Compare
8be325c to
439e057
Compare
439e057 to
bd6e681
Compare
bd6e681 to
a383ab5
Compare
a383ab5 to
9a20418
Compare
9a20418 to
d8074f7
Compare
d8074f7 to
c86102a
Compare
c86102a to
cb4815d
Compare
cb4815d to
40bcc49
Compare
40bcc49 to
284d0fa
Compare
284d0fa to
5600623
Compare
5600623 to
580316a
Compare
580316a to
a774edc
Compare
a774edc to
c8fd9b8
Compare
c8fd9b8 to
1eee923
Compare
1eee923 to
cdacaa7
Compare
cdacaa7 to
77f2094
Compare
91b41f4 to
846f40b
Compare
846f40b to
42e119c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.15.2->5.28.15.15.2->5.28.1Release Notes
getsentry/sentry-ruby (sentry-rails)
v5.28.1Compare Source
Bug Fixes
sentry.originlog event attribute is now correctly prefixed withauto.log(#2749)v5.28.0Compare Source
Features
enable_logsis true (#2721)Miscellaneous
Deprecate all Metrics related APIs #2726
Sentry no longer has the Metrics Beta offering so
all the following APIs linked to Metrics have been deprecated and will be removed in the next major.
...
Internal
config.loggercall ingraphqlpatch (#2722Configuration.beforeandConfiguration.afterto run hooks before and after given event (#2724)v5.27.1Compare Source
Features
:originattribute in log events (#2712)Bug Fixes
sentry.message.templatein the log event attributes if there are no interpolation parameters provided (#2700)log_levelwhen logging via:std_lib_loggerpatch (#2709)sentry.originattribute to log events (#2712)v5.27.0Compare Source
Feature
Propagated sampling rates as specified in Traces docs (#2671)
Support for Rails ActiveSupport log subscribers (#2690)
Support for defining custom Rails log subscribers that work with Sentry Structured Logging (#2689)
Rails applications can now define custom log subscribers that integrate with Sentry's structured logging system. The feature includes built-in subscribers for ActionController, ActiveRecord, ActiveJob, and ActionMailer events, with automatic parameter filtering that respects Rails'
config.filter_parametersconfiguration.To enable structured logging with Rails log subscribers:
... your setup ...
Make sure structured logging is enabled
Enable default Rails log subscribers (ActionController and ActiveRecord)
end
You can also define custom log subscribers by extending the base class:
structured_loggingconfig namespace (#2692)Bug Fixes
_performmethod redefinition warning (#2682)attr_reader(#2673)Internal
Sentry::DebugTransportthat captures events and stores them as JSON for debugging purposes (#2664)Sentry::DebugStructuredLoggerthat caputres log events and stores them as JSON to a file for debugging purposes (#2693)v5.26.0Compare Source
Feature
Support for
:loggerpatch which enables sending logs to Sentry whenenabled_logsis set to true (#2657)Here's a sample config:
... your setup ...
end
v5.25.0Compare Source
Features
before_send_log(#2634)Bug Fixes
v5.24.0Compare Source
Features
Add new sidekiq config
report_only_dead_jobs(#2581)Add
max_nestingof 10 to breadcrumbs data serialization (#2583)Add sidekiq config
propagate_tracesto control trace header injection (#2588)If you use schedulers you can get one large trace with all your jobs which is undesirable.
We recommend using the following to propagate traces only from the Rails server and not elsewhere.
Only expose
active_storagekeys on span data ifsend_default_piiis on (#2589)Add new
Sentry.loggerfor Structured Logging feature (#2620).To enable structured logging you need to turn on the
enable_logsconfiguration option:... your setup ...
end
You can also use message templates with positional or hash parameters:
Any other arbitrary attributes will be sent as part of the log event payload:
enable_logsistrue, previousSentry.loggershould no longer be used for internal SDKlogging - it was replaced by
Sentry.configuration.sdk_loggerand should be used only by the SDKitself and its extensions.
active_job_report_on_retry_errorwhich enables reporting errors on each retry error (#2617)Bug Fixes
Internal
user_segmentfrom DSC (#2586)loggerwithsdk_logger(#2621)Sentry.loggeris now deprecated whenenable_logsis turned off. It's original behavior was ported toSentry.configuration.sdk_logger. Please notice that this logger is internal and should only be used for SDK-specific logging needs. (#2621)v5.23.0Compare Source
Features
Bug Fixes
Internal
File.openinLineCache(#2566)Miscellaneous
enable_tracingin favor oftraces_sample_rate = 1.0#2535v5.22.4Compare Source
Bug Fixes
stackprofwhen Vernier is configured as the profiler (#2537)Internal
Configuration#validateto validate configuration inSentry.initblock (#2538)Sentry.dependency_installed?to check if a 3rd party dependency is available ieSentry.dependency_installed?(:Vernier)(#2542)v5.22.3Compare Source
Bug Fixes
before_send*callbacks again (#2529)v5.22.2Compare Source
Features
code.namespacefor Ruby 3.4+ stacktraces (#2506)Bug fixes
internal_errorerror type for OpenTelemetry spans #2473before_sendandbefore_send_transaction's return value handling (#2504)Sentry.get_main_hubin a trap context (#2510)URI::RFC2396_PARSER.escapeexplicitly to remove warning logs to stderr (#2509)Internal
v5.22.1Compare Source
Bug Fixes
v5.22.0Compare Source
opin transaction context from "queue.sidekiq" to "queue.process". If you rely on this value (e.g. for sampling as described here), then you need to update your configuration accordingly.Features
Add
include_sentry_eventmatcher for RSpec #2424Add support for Sentry Cache instrumentation, when using Rails.cache #2380
Add support for Queue Instrumentation for Sidekiq. #2403
Add support for string errors in error reporter (#2464)
Reset
trace_idand add root transaction for sidekiq-cron #2446Add support for Excon HTTP client instrumentation (#2383)
Note: MemoryStore and FileStore require Rails 8.0+
Bug Fixes
send_default_piihandling in rails controller spans #2443RescuedExceptionInterceptorto handle an empty configuration #2428SessionFlusheraggregates #2469v5.21.0Compare Source
Features
Experimental support for multi-threaded profiling using Vernier (#2372)
You can have much better profiles if you're using multi-threaded servers like Puma now by leveraging Vernier.
To use it, first add
vernierto yourGemfileand make sure it is loaded beforesentry-ruby.Gemfile
gem 'vernier'
gem 'sentry-ruby'
Internal
v5.20.1Compare Source
Bug Fixes
rubocop.ymlinspec.files(#2420)v5.20.0Compare Source
$SENTRY_DEBUGand$SENTRY_SPOTLIGHT(#2374)sidekiq-cron(#2387)strip_backtrace_load_pathboolean config (default true) to enable disabling load path stripping (#2409)Bug Fixes
Net:HTTPintegration for non-ASCII URI's (#2417)v5.19.0Compare Source
Features
Use
Concurrent.available_processor_countinstead ofConcurrent.usable_processor_count(#2358)Support for tracing Faraday requests (#2345)
Usage:
...
end
Transaction data are now included in the context (#2365)
Inject Sentry meta tags in the Rails application layout automatically in the generator (#2369)
To turn this behavior off, use
bin/rails generate sentry --inject-meta falseBug Fixes
connectspans in open-telemetry #2364v5.18.2Compare Source
Bug Fixes
ip_addressif already set onuser#2350teardown_sentry_testhelper should clear global even processors too (#2342)Internal
Concurrent.usable_processor_countwhen it is available (#2339)v5.18.1Compare Source
Bug Fixes
Gem::Specification's usage so it doesn't break bundler standalone (#2335)v5.18.0Compare Source
Features
Add generator for initializer generation (#2286)
Rails users will be able to use
bin/rails generate sentryto generate theirconfig/initializers/sentry.rbfile.Notify users when their custom options are discarded (#2303)
Add a new
:graphqlpatch to automatically enable instrumenting GraphQL spans (#2308)Usage:
...
Add
Sentry.get_trace_propagation_metahelper for injecting meta tags into views (#2314)Add query source support to
sentry-rails(#2313)The feature is only activated in apps that use Ruby 3.2+ and Rails 7.1+. By default only queries that take longer than 100ms will have source recorded, which can be adjusted by updating the value of
config.rails.db_query_source_threshold_ms.Log envelope delivery message with debug instead of info (#2320)
Bug Fixes
capture_eventoptions #2301enabled_environmentswhen usingSentry::TestHelper(#2317)scope.transaction_namesmethod, please usescope.transaction_nameinsteadInternal
originto spans and transactions to track integration sources for instrumentation (#2319)v5.17.3Compare Source
Internal
:network_errorclient reports forsend_envelope#2295Bug Fixes
config.enabled_environments#2291v5.17.2Compare Source
Internal
Mechanisminterface and default to unhandled for integration exceptions #2280Bug Fixes
ActiveRecordSubscriber(#2278)v5.17.1Compare Source
Bug Fixes
v5.17.0Compare Source
Features
sentry-delayed_job#2233hint:support toSentry::Rails::ErrorSubscriber#2235Add main APIs and
Aggregatorthread #2247Add
Sentry::Metrics.timingAPI for measuring block duration #2254Add metric summaries on spans #2255
Add
config.metrics.before_emitcallback #2258Add code locations for metrics #2263
The SDK now supports recording and aggregating metrics. A new thread will be started
for aggregation and will flush the pending data to Sentry every 5 seconds.
To enable this behavior, use:
...
increment a simple counter
set a value, unit and tags
distribution - get statistical aggregates from an array of observations
gauge - record statistical aggregates directly on the SDK, more space efficient
set - get unique counts of elements
timing - measure duration of code block, defaults to seconds
will also automatically create a
metric.timingspantiming - measure duration of code block in other duraton units
...
the 'foo' metric will be filtered and the tags will be updated to add :bar and remove :baz
...
Bug Fixes
sentry-resque(#2248)sending_allowed?is respected irrespective of spotlight configuration (#2231)v5.16.1Compare Source
Bug Fixes
sqlite3gem for building because of failed release #2222Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.