brokepoint 0.0.12 → 0.0.14

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: d5d673a999efa76dd3a1b880abb6d8c8b851c44bcda796454cd0715181dfef9a
4
- data.tar.gz: 318658a22490201751e8b075b3cc7d5e0870809fb98d103cb4ddc4dd396a52a7
3
+ metadata.gz: 6cf11d8f0f32504b01580ce69e04bebcd1af5943d9bc8dae32865165f3022044
4
+ data.tar.gz: dee42b9885239ddad452fe8e4300d9763aa2d58702efff6c39c8dc4d7902beec
5
5
  SHA512:
6
- metadata.gz: 9f7ebb5d01d41f11edab69f794314d7f093dcbbed8ebb0e587264b108cae999dde2d50859b9ddfe5c0d92daea50238bb76b734b65d99bcdb3a170ccd346fa5ab
7
- data.tar.gz: 1af70d576cdc6824b43d463a6faa8338be608125ef3e0207420e1dd12658642284ebcab941059ca56cdeb26c97e00cc26f02c9e94a9f49f75f5a7caf792cabc2
6
+ metadata.gz: 698e8bb9bca1c13df716939b35e89811fc6f41370eae1071346dce232fbc33dfddcb29133f6144178c37d0c4d8471337d2bf3bacc0f228404370f913fc606e27
7
+ data.tar.gz: ae178ca7c924093a6f39e13ca48a57aff1e92f1c7a5a876e212afd68618bac7a95456897e32c992bd226523f0513348993ce3e5cbaba67d7a7598907afb1961e
@@ -1,5 +1,10 @@
1
1
  class Brokepoint {
2
2
  recordError(error) {
3
+ if (!this.endpoint || this.endpoint.length == 0) {
4
+ console.error("BROKEPOINT: No endpoint configuration. Abandoning attempt to report error.");
5
+ return;
6
+ }
7
+
3
8
  let errorPayload = {
4
9
  language: 'javascript',
5
10
  url: window.location.toString(),
@@ -23,6 +28,10 @@ class Brokepoint {
23
28
  errorPayload['raw_body'] = 'no stacktrace support for promises yet';
24
29
  }
25
30
 
31
+ if (error.hasOwnProperty('grouping_hash')) {
32
+ errorPayload['grouping_hash'] = error.grouping_hash;
33
+ }
34
+
26
35
  if (errorPayload['name'] === undefined || errorPayload['raw_body'] === undefined) {
27
36
  console.log("Couldn't get enough details about error", error, errorPayload);
28
37
  }
@@ -12,12 +12,13 @@ module Brokepoint
12
12
  ENV.key?('BROKEPOINT_URL')
13
13
  end
14
14
 
15
- def notify(name:, raw_body:, url:)
15
+ def notify(name:, raw_body:, url:, grouping_hash: nil)
16
16
  return unless should_notify?
17
17
 
18
18
  event = { name:, raw_body:, url:,
19
19
  project_id: ENV['BROKEPOINT_PROJECT_ID'],
20
- release_version: ENV['BROKEPOINT_RELEASE_VERSION']
20
+ release_version: ENV['BROKEPOINT_RELEASE_VERSION'],
21
+ grouping_hash:
21
22
  }.compact
22
23
 
23
24
  uri = brokepoint_events_endpoint
@@ -30,7 +31,7 @@ module Brokepoint
30
31
  Timeout.timeout(1) {
31
32
  http.request(request)
32
33
  }
33
- rescue Timeout::Error, Errno::ECONNREFUSED, Socket::ResolutionError => exception
34
+ rescue Timeout::Error, Errno::ECONNREFUSED, SocketError, OpenSSL::SSL::SSLError => exception
34
35
  Rails.logger.error("Unable to notify Brokepoint; #{exception.to_s}")
35
36
  end
36
37
 
@@ -1,3 +1,3 @@
1
1
  module Brokepoint
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.14'
3
3
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brokepoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane P
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2025-10-21 00:00:00.000000000 Z
11
+ date: 2025-12-05 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: zeitwerk
@@ -37,6 +38,7 @@ dependencies:
37
38
  - - "~>"
38
39
  - !ruby/object:Gem::Version
39
40
  version: '8.0'
41
+ description:
40
42
  email: shane@shane.computer
41
43
  executables: []
42
44
  extensions: []
@@ -54,6 +56,7 @@ licenses:
54
56
  -
55
57
  metadata:
56
58
  rubygems_mfa_required: 'true'
59
+ post_install_message:
57
60
  rdoc_options: []
58
61
  require_paths:
59
62
  - lib
@@ -68,7 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
71
  - !ruby/object:Gem::Version
69
72
  version: '0'
70
73
  requirements: []
71
- rubygems_version: 3.6.1
74
+ rubygems_version: 3.4.20
75
+ signing_key:
72
76
  specification_version: 4
73
77
  summary: Use this gem to capture errors, exceptions, and logs and send them to your
74
78
  Brokepoint install