Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.28.0
6.28.1
4 changes: 2 additions & 2 deletions lib/bugsnag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions lib/bugsnag/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading