-
Notifications
You must be signed in to change notification settings - Fork 116
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
Ruby gem 4.0 #667
Labels
Comments
This was referenced Nov 25, 2020
Closed
tombruijn
added a commit
that referenced
this issue
Jan 11, 2024
I want to remove these functions from the Rust extension, but if the Ruby gem still calls them, that would cause a new error on the next extension update. These functions already did nothing anymore in the Rust extension, so not calling the extension functions loses no functionality. I did not remove the Ruby methods, because people may still call them and we should only remove methods in major releases. Move the deprecation warnings to the Ruby gem and remove calls to the extension functions. - Part of appsignal/appsignal-agent#425 - Deprecations logged in #667
tombruijn
changed the title
Deprecations for 4.0
Changes and deprecatons to be removed for 4.0
Jul 3, 2024
tombruijn
changed the title
Changes and deprecatons to be removed for 4.0
Changes and deprecations to be removed for 4.0
Jul 3, 2024
tombruijn
added a commit
that referenced
this issue
Jul 23, 2024
Go through all the deprecated things listed in #667 and mentioned in the source code itself. Clean up before the next major version.
tombruijn
added a commit
that referenced
this issue
Jul 23, 2024
Go through all the deprecated things listed in #667 and mentioned in the source code itself. Clean up before the next major version.
tombruijn
added a commit
that referenced
this issue
Jul 23, 2024
Go through all the deprecated things listed in #667 and mentioned in the source code itself. Clean up before the next major version.
tombruijn
added a commit
that referenced
this issue
Jul 23, 2024
Go through all the deprecated things listed in #667 and mentioned in the source code itself. Clean up before the next major version.
tombruijn
added a commit
that referenced
this issue
Jul 23, 2024
Go through all the deprecated things listed in #667 and mentioned in the source code itself. Clean up before the next major version.
tombruijn
added a commit
that referenced
this issue
Jul 23, 2024
Go through all the deprecated things listed in #667 and mentioned in the source code itself. Clean up before the next major version.
Ruby gem 4 has been released! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plans for Ruby gem 4.0. This includes breaking changes, new features and removal of deprecations.
Changes
Features
Enable Rake instrumentation by default? - Instrument Rake tasks #1135Quality of life improvements
Appsignal.configure
? We could add a config option to the YAML file / env var that says somethingauto_start: false
, and then apps can callAppsignal.start
manually (and we'll internally callAppsignal._start
to start AppSignal to help differentiate start calls).initial_config
fromConfig.new
Integrations
Always reporting data
at_exit
callback to report the error with which the Ruby process crashedat_exit
callback to callAppsignal.stop
enable_at_exit_reporter: false
Always callTheAppsignal.stop
on all rake tasks? Instrumented or not? Downside: slight delay in every rake execution when stopping.stop
call takes too long.Instrumentation helpers
listen_for_error
helperlisten_for_error
helper without replacement. Tell people to userescue => error; Appsignal.report_error(error)
Appsignal.send_error
copies current instrumented context like the Rails error handler. Blocked on the 'report multiple errors' item.send_error
different. We should recommend people to usereport_error
for this behavior.Appsignal.set_*
helpers set the metadata on the transaction in the context of areport_error
,set_error
andsend_error
block.Appsignal
module and another for theTransaction
class.Appsignal.monitor
helper to replacemonitor_transaction
- Add monitor instrumentation helpers #1161Maintenance
APPSIGNAL_APP_ENV
behavior in Config initializer. This is now done byAppsignal.start
Appsignal.start
. Don't allow apps to modify the config after start, or arrays in the config.Transaction
's request and options arguments toTransaction.new
Transaction
's request and options arguments toTransaction.create
Transaction::GenericRequest
Transaction#set_http_or_background_action
- Deprecateset_http_or_background_queue_start
#1175monitor_transaction
- Refactor Delayed::Job integration to not use monitor_transaction #1171monitor_transaction
- Refactor Shoryuken to not use monitor_transaction #1170Integrations
module namespace. Move Capistrano integration class to namespace #1164Documentation
set_*
helpers toadd_*
- https://github.com/appsignal/appsignal-docs/pull/2076enable_at_exit_reporter
sleep 5
(or some amount) forenable_at_exit_reporter
on short lived containersAppsignal.monitor
- https://github.com/appsignal/appsignal-docs/pull/2027listen_for_error
helper is removed in 4.0Appsignal.configure
Appsignal.set_session_data
- https://github.com/appsignal/appsignal-docs/pull/1990Appsignal.set_headers
- https://github.com/appsignal/appsignal-docs/pull/1990Appsignal.set_tags
accepts booleans - https://github.com/appsignal/appsignal-docs/pull/1991Appsignal.monitor
andAppsignal.monitor_and_stop
- https://github.com/appsignal/appsignal-docs/pull/1998Deprecated
Remove the following in the next major version:
APPSIGNAL_INACTIVE_ON_CONFIG_FILE_ERROR
output in diagnose, because the ENV var was removed.Transaction::FRONTEND
constantTransaction
sample data 'metadata'Transaction.new
's request and options argumentsTransaction.create
's request and options argumentsTransaction#set_http_or_background_action
Transaction#set_http_or_background_queue_start
Transaction#params=
Transaction::GenericRequest
Appsignal.monitor_transaction
andAppsignal.monitor_single_transaction
appsignal.action
andappsignal.route
as action name values from the AbstractMiddleware, see Deprecate appsignal.route and appsignal.action request keys #1116Appsignal.start_logger
- Deprecate Appsignal.start_logger #1119Appsignal.set_error
tags
andnamespace
argumentsAppsignal.send_error
tags
andnamespace
argumentsAppsignal::Rack::StreamingListener
Appsignal::Rack::GenericInstrumentation
, also remove theconst_missing
redirectAppsignal::Grape
constants, also remove theconst_missing
redirectappsignal-ruby/lib/appsignal/config.rb
Lines 544 to 548 in 1e77564
appsignal-ruby/lib/appsignal/config.rb
Lines 422 to 426 in 470d581
working_dir_path
deprecation:appsignal-ruby/lib/appsignal/config.rb
Lines 367 to 372 in 1cde9f9
Minutely
module was renamed toProbes
in Rename Minutely to Probes module #1065. Remove this code.const_missing
redirector.const_missing
hereAppsignal::Probes.probes.register
Appsignal::Helpers::Metrics::set_host_gauge
andAppsignal::Helpers::Metrics::set_process_gauge
set_host_*
metric helpers here:appsignal-ruby/lib/appsignal/helpers/metrics.rb
Lines 17 to 31 in 9922140
The text was updated successfully, but these errors were encountered: