diff --git a/CHANGELOG.md b/CHANGELOG.md index 74d5d040..e45d0024 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ Changelog ========= +## v6.28.1 (TBD) + +### Fixes + +* Amend secondary instance URL to bugsnag.smartbear.com + | [#845](https://github.com/bugsnag/bugsnag-ruby/pull/845) + ## v6.28.0 (8 July 2025) ### Enhancements diff --git a/VERSION b/VERSION index 2ece8e17..8993da97 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.28.0 +6.28.1 diff --git a/lib/bugsnag.rb b/lib/bugsnag.rb index b3c530cc..6edf920b 100644 --- a/lib/bugsnag.rb +++ b/lib/bugsnag.rb @@ -526,10 +526,10 @@ def check_key_valid def check_endpoint_setup notify_set = configuration.notify_endpoint && configuration.notify_endpoint != Bugsnag::Configuration::DEFAULT_NOTIFY_ENDPOINT && - configuration.notify_endpoint != Bugsnag::Configuration::HUB_NOTIFY_ENDPOINT + configuration.notify_endpoint != Bugsnag::Configuration::SECONDARY_NOTIFY_ENDPOINT session_set = configuration.session_endpoint && configuration.session_endpoint != Bugsnag::Configuration::DEFAULT_SESSION_ENDPOINT && - configuration.session_endpoint != Bugsnag::Configuration::HUB_SESSION_ENDPOINT + configuration.session_endpoint != Bugsnag::Configuration::SECONDARY_SESSION_ENDPOINT if notify_set && !session_set configuration.warn("The session endpoint has not been set, all further session capturing will be disabled") configuration.disable_sessions diff --git a/lib/bugsnag/configuration.rb b/lib/bugsnag/configuration.rb index 86440e42..050305b8 100644 --- a/lib/bugsnag/configuration.rb +++ b/lib/bugsnag/configuration.rb @@ -199,9 +199,9 @@ class Configuration DEFAULT_NOTIFY_ENDPOINT = "https://notify.bugsnag.com" DEFAULT_SESSION_ENDPOINT = "https://sessions.bugsnag.com" - HUB_NOTIFY_ENDPOINT = "https://notify.insighthub.smartbear.com" - HUB_SESSION_ENDPOINT = "https://sessions.insighthub.smartbear.com" - HUB_PREFIX = "00000" + SECONDARY_NOTIFY_ENDPOINT = "https://notify.bugsnag.smartbear.com" + SECONDARY_SESSION_ENDPOINT = "https://sessions.bugsnag.smartbear.com" + SECONDARY_PREFIX = "00000" DEFAULT_META_DATA_FILTERS = [ /authorization/i, @@ -548,8 +548,8 @@ def session_endpoint=(new_session_endpoint) def set_default_endpoints return unless @endpoints.notify.nil? && @endpoints.sessions.nil? - self.endpoints = if hub_api_key? - EndpointConfiguration.new(HUB_NOTIFY_ENDPOINT, HUB_SESSION_ENDPOINT) + self.endpoints = if secondary_api_key? + EndpointConfiguration.new(SECONDARY_NOTIFY_ENDPOINT, SECONDARY_SESSION_ENDPOINT) else EndpointConfiguration.new(DEFAULT_NOTIFY_ENDPOINT, DEFAULT_SESSION_ENDPOINT) end @@ -769,8 +769,8 @@ def default_hostname ENV["DYNO"] || Socket.gethostname; end - def hub_api_key? - @api_key && @api_key.start_with?(HUB_PREFIX) + def secondary_api_key? + @api_key && @api_key.start_with?(SECONDARY_PREFIX) end end end diff --git a/spec/configuration_spec.rb b/spec/configuration_spec.rb index 9b056443..da2ac311 100644 --- a/spec/configuration_spec.rb +++ b/spec/configuration_spec.rb @@ -445,8 +445,8 @@ def output_lines Bugsnag.configure do |config| config.api_key = '00000472bd130ac0ab0f52715bbdc600' end - expect(Bugsnag.configuration.endpoints.notify).to eq(Bugsnag::Configuration::HUB_NOTIFY_ENDPOINT) - expect(Bugsnag.configuration.endpoints.sessions).to eq(Bugsnag::Configuration::HUB_SESSION_ENDPOINT) + expect(Bugsnag.configuration.endpoints.notify).to eq(Bugsnag::Configuration::SECONDARY_NOTIFY_ENDPOINT) + expect(Bugsnag.configuration.endpoints.sessions).to eq(Bugsnag::Configuration::SECONDARY_SESSION_ENDPOINT) end end end