bugsnag_performance 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/SECURITY.md +8 -1
- data/lib/bugsnag_performance/configuration.rb +13 -2
- data/lib/bugsnag_performance/version.rb +1 -1
- metadata +4 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a22f18754abe4be55a18787834978d22c1c47dc7222f20907a2fe2227f7e0215
|
|
4
|
+
data.tar.gz: faea0a75d36c6d1bba13ea8f26b601e15acbf5aab4bf2a46fff190e8e127e489
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f6467330a068f7e0ddda1b7020a17cde43cc590f3da5e5623db3877a79072463f1999148daa5a53b2996297a297a6b7c739ec2b37226529ded01569895e7bc4
|
|
7
|
+
data.tar.gz: f48ffd0adb0ce63db62ec91f07d2c15bf671b25d00837e5d0d787ed5bc67b0e070f652432acec1d3b653a420851c351010f78ac45cfca84915819c33a4359258
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## 1.1.1 (2026-01-22)
|
|
5
|
+
|
|
6
|
+
### Fixes
|
|
7
|
+
|
|
8
|
+
* Amend secondary instance URL to bugsnag.smartbear.com
|
|
9
|
+
| [#54](https://github.com/bugsnag/bugsnag-ruby-performance/pull/54)
|
|
10
|
+
|
|
11
|
+
## 1.1.0 (2025-07-07)
|
|
12
|
+
|
|
13
|
+
### Enhancements
|
|
14
|
+
|
|
15
|
+
* Set default endpoints based on API key
|
|
16
|
+
[#51](https://github.com/bugsnag/bugsnag-ruby-performance/pull/51)
|
|
17
|
+
|
|
4
18
|
## 1.0.0 (2024-12-09)
|
|
5
19
|
|
|
6
20
|
### Enhancements
|
data/SECURITY.md
CHANGED
|
@@ -8,4 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
## Reporting a Vulnerability
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
## Supported Versions
|
|
13
|
+
|
|
14
|
+
| Version | Supported |
|
|
15
|
+
| ------- | ------------------ |
|
|
16
|
+
| 1.x | Yes |
|
|
17
|
+
|
|
18
|
+
If you find a vulnerability in this SDK, please report it to our [Security Team](mailto:security@smartbear.com) for review.
|
|
@@ -59,6 +59,8 @@ module BugsnagPerformance
|
|
|
59
59
|
|
|
60
60
|
attr_writer :endpoint
|
|
61
61
|
|
|
62
|
+
SECONDARY_PREFIX = "00000"
|
|
63
|
+
|
|
62
64
|
def initialize(errors_configuration)
|
|
63
65
|
@open_telemetry_configure_block = proc { |c| }
|
|
64
66
|
self.logger = errors_configuration.logger || OpenTelemetry.logger
|
|
@@ -92,7 +94,7 @@ module BugsnagPerformance
|
|
|
92
94
|
|
|
93
95
|
# The URL to send traces to
|
|
94
96
|
#
|
|
95
|
-
# If not set this defaults to "https://<api_key>.otlp.bugsnag.com/v1/traces"
|
|
97
|
+
# If not set this defaults to "https://<api_key>.otlp.bugsnag.com/v1/traces" or "https://<api_key>.otlp.bugsnag.smartbear.com/v1/traces", depending on the API key
|
|
96
98
|
#
|
|
97
99
|
# @return [String, nil]
|
|
98
100
|
def endpoint
|
|
@@ -104,7 +106,12 @@ module BugsnagPerformance
|
|
|
104
106
|
# if there's no API key then we can't construct the default URL
|
|
105
107
|
nil
|
|
106
108
|
else
|
|
107
|
-
|
|
109
|
+
instance = if secondary_api_key?
|
|
110
|
+
"bugsnag.smartbear.com"
|
|
111
|
+
else
|
|
112
|
+
"bugsnag.com"
|
|
113
|
+
end
|
|
114
|
+
"https://#{@api_key}.otlp.#{instance}/v1/traces"
|
|
108
115
|
end
|
|
109
116
|
end
|
|
110
117
|
|
|
@@ -134,5 +141,9 @@ module BugsnagPerformance
|
|
|
134
141
|
|
|
135
142
|
default
|
|
136
143
|
end
|
|
144
|
+
|
|
145
|
+
def secondary_api_key?
|
|
146
|
+
@api_key.is_a?(String) && @api_key&.start_with?(SECONDARY_PREFIX)
|
|
147
|
+
end
|
|
137
148
|
end
|
|
138
149
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bugsnag_performance
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BugSnag
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: concurrent-ruby
|
|
@@ -80,7 +79,6 @@ dependencies:
|
|
|
80
79
|
- - "~>"
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '3.23'
|
|
83
|
-
description:
|
|
84
82
|
email:
|
|
85
83
|
- notifiers@bugsnag.com
|
|
86
84
|
executables: []
|
|
@@ -122,10 +120,9 @@ metadata:
|
|
|
122
120
|
homepage_uri: https://www.bugsnag.com
|
|
123
121
|
source_code_uri: https://github.com/bugsnag/bugsnag-ruby-performance
|
|
124
122
|
bug_tracker_uri: https://github.com/bugsnag/bugsnag-ruby-performance/issues
|
|
125
|
-
changelog_uri: https://github.com/bugsnag/bugsnag-ruby-performance/blob/v1.
|
|
123
|
+
changelog_uri: https://github.com/bugsnag/bugsnag-ruby-performance/blob/v1.1.1/CHANGELOG.md
|
|
126
124
|
documentation_uri: https://docs.bugsnag.com/performance/integration-guides/ruby/
|
|
127
125
|
rubygems_mfa_required: 'true'
|
|
128
|
-
post_install_message:
|
|
129
126
|
rdoc_options: []
|
|
130
127
|
require_paths:
|
|
131
128
|
- lib
|
|
@@ -140,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
137
|
- !ruby/object:Gem::Version
|
|
141
138
|
version: '0'
|
|
142
139
|
requirements: []
|
|
143
|
-
rubygems_version:
|
|
144
|
-
signing_key:
|
|
140
|
+
rubygems_version: 4.0.3
|
|
145
141
|
specification_version: 4
|
|
146
142
|
summary: BugSnag integration for the Ruby Open Telemetry SDK
|
|
147
143
|
test_files: []
|