exception_handling 3.1.0.pre.2 → 3.1.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/exception_handling/version.rb +1 -1
- data/lib/exception_handling.rb +1 -1
- data/spec/unit/exception_handling_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aff231e873dafc7b83dc6964ecdf114b2835274eb9f89bddbcdc1ae63bbc60a
|
4
|
+
data.tar.gz: 2e222182ea8bbd8e58367a3d8d25bd1b8e98537613beeefe1b5a54276d81126b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7c9465523f12ffec924d1bee6ca90f56effedb6a89d5b34c5a33550fe79003b294c3662a7e8500c5a3d570973b61daea2123c6868afc367d244ec3ce952d9b
|
7
|
+
data.tar.gz: a3e8b41353b6711916152d04f474734d04fc41b8384eff0debbae0d16884dab7bd7f266a1042f2f688765b2d3ab71653ffe1432116fbeaf71d122786c767fe87
|
data/Gemfile.lock
CHANGED
data/lib/exception_handling.rb
CHANGED
@@ -379,7 +379,7 @@ module ExceptionHandling # never included
|
|
379
379
|
if @honeybadger_log_context_tags
|
380
380
|
@honeybadger_log_context_tags.map do |tag_name, tag_path|
|
381
381
|
if (value_from_log_context = honeybadger_context_data.dig(:log_context, *tag_path))
|
382
|
-
"#{tag_name}
|
382
|
+
"#{tag_name}--#{value_from_log_context}"
|
383
383
|
end
|
384
384
|
end.compact
|
385
385
|
else
|
@@ -1091,7 +1091,7 @@ describe ExceptionHandling do
|
|
1091
1091
|
context "when error is logged within a log context that matches the path" do
|
1092
1092
|
it "notifies honeybadger with the tags from the log context" do
|
1093
1093
|
ExceptionHandling.logger.with_context("kubernetes" => { "context" => "local" }) do
|
1094
|
-
expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "kubernetes_context
|
1094
|
+
expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "kubernetes_context--local" }))
|
1095
1095
|
ExceptionHandling.log_error(StandardError.new("Error"), nil)
|
1096
1096
|
end
|
1097
1097
|
end
|
@@ -1123,7 +1123,7 @@ describe ExceptionHandling do
|
|
1123
1123
|
end
|
1124
1124
|
|
1125
1125
|
it "combines all the tags from different sources" do
|
1126
|
-
expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag inline-tag log-context
|
1126
|
+
expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag inline-tag log-context--tag" }))
|
1127
1127
|
ExceptionHandling.logger.with_context("inside" => { "context" => "tag" }) do
|
1128
1128
|
log_error
|
1129
1129
|
end
|
@@ -1133,7 +1133,7 @@ describe ExceptionHandling do
|
|
1133
1133
|
let(:inline_tags) { ["auto-tag"] }
|
1134
1134
|
|
1135
1135
|
it "notifies honeybadger with the set of tags" do
|
1136
|
-
expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag log-context
|
1136
|
+
expect(Honeybadger).to receive(:notify).with(hash_including({ tags: "auto-tag log-context--tag" }))
|
1137
1137
|
ExceptionHandling.logger.with_context("inside" => { "context" => "tag" }) do
|
1138
1138
|
log_error
|
1139
1139
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_handling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.pre.
|
4
|
+
version: 3.1.0.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|