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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7209ef5a16d1a1f40cc5100f44f935f4deb13ada6eb5de82c785b823ef7c975a
4
- data.tar.gz: 81d7fc68ae82ccca8d7aa1ca34fa15abd59fe72f9f17775a4100e11c4256ac6a
3
+ metadata.gz: a22f18754abe4be55a18787834978d22c1c47dc7222f20907a2fe2227f7e0215
4
+ data.tar.gz: faea0a75d36c6d1bba13ea8f26b601e15acbf5aab4bf2a46fff190e8e127e489
5
5
  SHA512:
6
- metadata.gz: 2348391589b8bbce569efbeaff908dba3112364ef8f76c32197f00a9b095d876b52cba246e6e4c25ffd92e4b9856b2be234c9c17ecd04d54a9f252ac8aec68d5
7
- data.tar.gz: 87594a7d40c5249cc60f28db2699df868d1f21adbd67d27647a070fa323957f0c19710fae24af4e6c59390726168a8ca84cdd62358bc3da5568a9498ee80cabb
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
- If you find a vulnerability in this SDK, please report it to our [Support team](mailto:support@bugsnag.com) for review.
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
- "https://#{@api_key}.otlp.bugsnag.com/v1/traces"
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BugsnagPerformance
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.1"
5
5
  SDK_NAME = "Ruby Bugsnag Performance SDK"
6
6
  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.0.0
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: 2024-12-09 00:00:00.000000000 Z
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.0.0/CHANGELOG.md
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: 3.4.19
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: []