bugwatch-ruby 0.7.0 → 0.7.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: 6d6a47f1c5176ec17f87160b5ab4a273e6ef68e76dee98f6e60ee5da474a61fd
4
- data.tar.gz: 713ab0b06839f57c473a98c8f3e1cd46f2f43b2c9ccfef2b18d7ba0e3abb1076
3
+ metadata.gz: 1cf7953dfa5c81c889aa0e51cc8ed4211b06c566620c48248e1171580cde9077
4
+ data.tar.gz: c8eacd0b880a71d0502ef6622d4a30257932de7ed72d3665d36c92db5db47635
5
5
  SHA512:
6
- metadata.gz: cb255c2fcfe9562b06320de183bc1ee141f394eacb327eb6ad71739a662aaeb435f5da3248404a7074b45e6a397612d86fe8d243918284196cb7e3892c193f8a
7
- data.tar.gz: 9ce11bcc466b319298cb788f51cdb1c89f00f6b3126189d02c9a7838eeb6f087291bb0864bc5115734849a1af966f2995385a627a057befbf815c63354e122ee
6
+ metadata.gz: 8c65e8c7831523385112c3bb24148c118d0c0124f30dea1022f2c5a39d05f775b53c088dfecc007ada12af0c0c41657bfb0376b638153a837981b08923e0ce03
7
+ data.tar.gz: 9d4d10c1ce02671998a4085550d59f11e2dcefb15a3b9b1177d16081cd33a52b24a3316bc1295b318ea0ba9c02bc35347487c6ccbe071760898fb5e62a2670e6
@@ -5,7 +5,9 @@ module Bugwatch
5
5
  end
6
6
 
7
7
  def call(env)
8
- return @app.call(env) if Bugwatch.skip_tracking?
8
+ if Bugwatch.skip_tracking? || skip_path?(env)
9
+ return @app.call(env)
10
+ end
9
11
 
10
12
  start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
11
13
  BreadcrumbCollector.clear
@@ -37,6 +39,11 @@ module Bugwatch
37
39
 
38
40
  private
39
41
 
42
+ def skip_path?(env)
43
+ path = env["PATH_INFO"].to_s
44
+ Bugwatch.configuration.ignore_request_paths.any? { |pattern| path.match?(pattern) }
45
+ end
46
+
40
47
  def record_transaction(env, status, start)
41
48
  config = Bugwatch.configuration
42
49
  req = Rack::Request.new(env)
@@ -1,3 +1,3 @@
1
1
  module Bugwatch
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugwatch-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BugWatch