bugsnag_performance 1.0.0 → 1.1.0
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 +7 -0
- data/lib/bugsnag_performance/configuration.rb +13 -2
- data/lib/bugsnag_performance/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16b53d0871422f913e95d93643d2d1aa0418b18d133ade895205d85eed381154
|
4
|
+
data.tar.gz: ef02ef87c516f7623bd37b789c8ce049f4694a62c2523d5c3e238bf1e2df48c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 908684dcbcd86f940020f3971a0b906bbf492a91a1d5aa8ad209d1a6eebed526da5020d320718956022fda346d972602d4db377afaa529ebb212ac8636dd75c7
|
7
|
+
data.tar.gz: d7f01073bd566171437084c5f0dd4b909ca6d9e9fb23bf6d13b12b1c07ac81edcd13c44d6ae23cd3f0805dad5163d2f21f7e98056762accc7ba3f3ee010df9e1
|
data/CHANGELOG.md
CHANGED
@@ -59,6 +59,8 @@ module BugsnagPerformance
|
|
59
59
|
|
60
60
|
attr_writer :endpoint
|
61
61
|
|
62
|
+
HUB_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.insighthub.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 hub_api_key?
|
110
|
+
"insighthub.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 hub_api_key?
|
146
|
+
@api_key.is_a?(String) && @api_key&.start_with?(HUB_PREFIX)
|
147
|
+
end
|
137
148
|
end
|
138
149
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BugSnag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -122,7 +122,7 @@ metadata:
|
|
122
122
|
homepage_uri: https://www.bugsnag.com
|
123
123
|
source_code_uri: https://github.com/bugsnag/bugsnag-ruby-performance
|
124
124
|
bug_tracker_uri: https://github.com/bugsnag/bugsnag-ruby-performance/issues
|
125
|
-
changelog_uri: https://github.com/bugsnag/bugsnag-ruby-performance/blob/v1.
|
125
|
+
changelog_uri: https://github.com/bugsnag/bugsnag-ruby-performance/blob/v1.1.0/CHANGELOG.md
|
126
126
|
documentation_uri: https://docs.bugsnag.com/performance/integration-guides/ruby/
|
127
127
|
rubygems_mfa_required: 'true'
|
128
128
|
post_install_message:
|