Skip to content

Commit f66649a

Browse files
Merge pull request #681 from bugsnag/tms/secondary-urls
Amend secondary instance URL to bugsnag.smartbear.com
2 parents ea17496 + c36386c commit f66649a

File tree

3 files changed

+26
-19
lines changed

3 files changed

+26
-19
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
## 3.30.1 (TBD)
5+
6+
### Changes
7+
8+
* Amend secondary instance URL to bugsnag.smartbear.com.
9+
[#681](https://github.com/bugsnag/bugsnag-php/pull/681)
10+
411
## 3.30.0 (2025-07-08)
512

613
### Enhancements

src/Configuration.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ class Configuration implements FeatureDataStore
2323
const BUILD_ENDPOINT = 'https://build.bugsnag.com';
2424

2525
/**
26-
* The default endpoint for event notifications with InsightHub.
26+
* The secondary instance endpoint for event notifications.
2727
*/
28-
const HUB_NOTIFY_ENDPOINT = 'https://notify.insighthub.smartbear.com';
28+
const SECONDARY_NOTIFY_ENDPOINT = 'https://notify.bugsnag.smartbear.com';
2929

3030
/**
31-
* The default endpoint for session tracking with InsightHub.
31+
* The secondary instance endpoint for session tracking.
3232
*/
33-
const HUB_SESSION_ENDPOINT = 'https://sessions.insighthub.smartbear.com';
33+
const SECONDARY_SESSION_ENDPOINT = 'https://sessions.bugsnag.smartbear.com';
3434

3535
/**
36-
* The default endpoint for build notifications with InsightHub.
36+
* The secondary instance endpoint for build notifications.
3737
*/
38-
const HUB_BUILD_ENDPOINT = 'https://build.insighthub.smartbear.com';
38+
const SECONDARY_BUILD_ENDPOINT = 'https://build.bugsnag.smartbear.com';
3939

4040
/**
4141
* @var string
@@ -100,7 +100,7 @@ class Configuration implements FeatureDataStore
100100
*/
101101
protected $notifier = [
102102
'name' => 'Bugsnag PHP (Official)',
103-
'version' => '3.30.0',
103+
'version' => '3.30.1',
104104
'url' => 'https://bugsnag.com',
105105
];
106106

@@ -218,10 +218,10 @@ public function __construct($apiKey)
218218
}
219219
$this->apiKey = $apiKey;
220220

221-
if ($this->isHubApiKey()) {
222-
$this->notifyEndpoint = self::HUB_NOTIFY_ENDPOINT;
223-
$this->sessionEndpoint = self::HUB_SESSION_ENDPOINT;
224-
$this->buildEndpoint = self::HUB_BUILD_ENDPOINT;
221+
if ($this->isSecondaryApiKey()) {
222+
$this->notifyEndpoint = self::SECONDARY_NOTIFY_ENDPOINT;
223+
$this->sessionEndpoint = self::SECONDARY_SESSION_ENDPOINT;
224+
$this->buildEndpoint = self::SECONDARY_BUILD_ENDPOINT;
225225
} else {
226226
$this->notifyEndpoint = self::NOTIFY_ENDPOINT;
227227
$this->sessionEndpoint = self::SESSION_ENDPOINT;
@@ -236,11 +236,11 @@ public function __construct($apiKey)
236236
}
237237

238238
/**
239-
* Checks if the API Key is associated with the InsightHub instance.
239+
* Checks if the API Key is associated with the secondary instance.
240240
*
241241
* @return bool
242242
*/
243-
public function isHubApiKey()
243+
public function isSecondaryApiKey()
244244
{
245245
// Does the API key start with 00000
246246
return strpos($this->apiKey, '00000') === 0;

tests/ConfigurationTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ public function testTheNotifyEndpointHasASensibleDefault()
305305
$this->assertSame($expected, $this->config->getNotifyEndpoint());
306306
}
307307

308-
public function testTheNotifyEndpointForHubHasASensibleDefault()
308+
public function testTheSecondaryNotifyEndpointHasASensibleDefault()
309309
{
310-
$expected = 'https://notify.insighthub.smartbear.com';
310+
$expected = 'https://notify.bugsnag.smartbear.com';
311311
$this->config = new Configuration('00000123123123123');
312312

313313
$this->assertSame($expected, $this->config->getNotifyEndpoint());
@@ -320,9 +320,9 @@ public function testTheSessionEndpointHasASensibleDefault()
320320
$this->assertSame($expected, $this->config->getSessionEndpoint());
321321
}
322322

323-
public function testTheSessionEndpointForHubHasASensibleDefault()
323+
public function testTheSecondarySessionEndpointHasASensibleDefault()
324324
{
325-
$expected = 'https://sessions.insighthub.smartbear.com';
325+
$expected = 'https://sessions.bugsnag.smartbear.com';
326326
$this->config = new Configuration('00000123123123123');
327327

328328
$this->assertSame($expected, $this->config->getSessionEndpoint());
@@ -335,9 +335,9 @@ public function testTheBuildEndpointHasASensibleDefault()
335335
$this->assertSame($expected, $this->config->getBuildEndpoint());
336336
}
337337

338-
public function testTheBuildEndpointForHubHasASensibleDefault()
338+
public function testTheSecondaryBuildEndpointHasASensibleDefault()
339339
{
340-
$expected = 'https://build.insighthub.smartbear.com';
340+
$expected = 'https://build.bugsnag.smartbear.com';
341341
$this->config = new Configuration('00000123123123123');
342342

343343
$this->assertSame($expected, $this->config->getBuildEndpoint());

0 commit comments

Comments
 (0)