influx_reporter 1.2.2 → 1.2.3
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/Gemfile +2 -2
- data/gemfiles/Gemfile.rails-6.0.x +1 -1
- data/gemfiles/Gemfile.rails-7.1.x +5 -0
- data/lib/influx_reporter/injections.rb +4 -0
- data/lib/influx_reporter/integration/rails/inject_exceptions_catcher.rb +2 -2
- data/lib/influx_reporter/version.rb +1 -1
- data/spec/influx_reporter/error_message/http_spec.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04ee666c90d3911ad99eea3d9259118170c791b4137efaa2fa588b83cc33e61b
|
4
|
+
data.tar.gz: 6902f423ae48a616ab4cc1da244dce4b6b3dbb407db53674a16f5c5e82d6083c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e5c2a857d5d8bb546902fe48c617f00ddd0586fffacb0437d1ea62d53abbcc2810508afbe5be361ec8bf77b24a2fcfdc1129f45046eb7914ac6f8f7d756de4b
|
7
|
+
data.tar.gz: d9c02cdd2ca1720630bbdcb653ee4447677a2723daea642435c6d2113a39bad061d687a3fded62deb3e6632a2a0338b0077d3bbfaef4d600ed09c3c898f410ca
|
data/Gemfile
CHANGED
@@ -9,7 +9,7 @@ module InfluxReporter
|
|
9
9
|
cls.send(:alias_method, :render_exception, :render_exception_with_influx_reporter)
|
10
10
|
end
|
11
11
|
|
12
|
-
def render_exception_with_influx_reporter(env, exception)
|
12
|
+
def render_exception_with_influx_reporter(env, exception, *args)
|
13
13
|
begin
|
14
14
|
InfluxReporter.report(exception, tags: { rack_env: env }) if InfluxReporter.started?
|
15
15
|
rescue
|
@@ -17,7 +17,7 @@ module InfluxReporter
|
|
17
17
|
::Rails.logger.debug $ERROR_INFO.backtrace.join("\n")
|
18
18
|
end
|
19
19
|
|
20
|
-
render_exception_without_influx_reporter(env, exception)
|
20
|
+
render_exception_without_influx_reporter(env, exception, *args)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -22,7 +22,7 @@ module InfluxReporter
|
|
22
22
|
expect(http.query_string).to eq 'a=1&password=[FILTERED]'
|
23
23
|
expect(http.cookies).to eq('user_id=1')
|
24
24
|
expect(http.remote_host).to eq '1.2.3.4'
|
25
|
-
expect(http.http_host).to eq 'example.org
|
25
|
+
expect(http.http_host).to eq 'example.org'
|
26
26
|
expect(http.user_agent).to eq 'test-agent 1.2/3'
|
27
27
|
|
28
28
|
expect(http.headers).to eq('Cookie' => 'user_id=1',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influx_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kacper Kawecki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- gemfiles/Gemfile.rails-4.2.x
|
79
79
|
- gemfiles/Gemfile.rails-5.0.x
|
80
80
|
- gemfiles/Gemfile.rails-6.0.x
|
81
|
+
- gemfiles/Gemfile.rails-7.1.x
|
81
82
|
- gemfiles/Gemfile.rails-HEAD
|
82
83
|
- influx_reporter.gemspec
|
83
84
|
- lib/influx_reporter.rb
|
@@ -183,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
184
|
- !ruby/object:Gem::Version
|
184
185
|
version: '0'
|
185
186
|
requirements: []
|
186
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.2.33
|
187
188
|
signing_key:
|
188
189
|
specification_version: 4
|
189
190
|
summary: Metrics collector for rails and InfluxDB based on Opbeat Ruby client library
|