appydays 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appydays/loggable.rb +11 -2
- data/lib/appydays/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd157bff00c9a41a678f4f8877660e90f9bb094b367ea0bedf153d7ea30d528
|
4
|
+
data.tar.gz: 4da1794259b8f5a2ad0d43544092487b91b56f840439404567ca26467264c8d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e0c276cb7978298f3a14fadfa71e767b216b2fd419beecda09fe6855eea3de8cf58e9651869eae45a1317a47df659ff0db69de8daf29533040f190eaac07b2
|
7
|
+
data.tar.gz: 0d07c35465caebd19c9cb86a3d2113cdd1bacebe80cfedd2251da076fdaadec46d0fa47c5e147e9c3fee78ec7b1afff39291ea30057b20e562c28010af4710dc
|
data/lib/appydays/loggable.rb
CHANGED
@@ -72,8 +72,17 @@ module Appydays::Loggable
|
|
72
72
|
SemanticLogger.add_appender(io: $stdout, formatter: format.to_sym)
|
73
73
|
end
|
74
74
|
|
75
|
-
def self.with_log_tags(tags
|
76
|
-
|
75
|
+
def self.with_log_tags(tags)
|
76
|
+
if defined?(Sentry)
|
77
|
+
Sentry.configure_scope do |scope|
|
78
|
+
scope.set_extras(tags)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
blockresult = nil
|
82
|
+
SemanticLogger.named_tagged(tags) do
|
83
|
+
blockresult = yield
|
84
|
+
end
|
85
|
+
return blockresult
|
77
86
|
end
|
78
87
|
|
79
88
|
@stderr_appended = false
|
data/lib/appydays/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appydays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lithic Tech
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -237,8 +237,8 @@ dependencies:
|
|
237
237
|
description: 'appydays provides support for env-based configuration, and common structured
|
238
238
|
logging capabilities
|
239
239
|
|
240
|
-
'
|
241
|
-
email:
|
240
|
+
'
|
241
|
+
email:
|
242
242
|
executables: []
|
243
243
|
extensions: []
|
244
244
|
extra_rdoc_files: []
|
@@ -259,7 +259,7 @@ licenses:
|
|
259
259
|
- MIT
|
260
260
|
metadata:
|
261
261
|
rubygems_mfa_required: 'true'
|
262
|
-
post_install_message:
|
262
|
+
post_install_message:
|
263
263
|
rdoc_options: []
|
264
264
|
require_paths:
|
265
265
|
- lib
|
@@ -274,8 +274,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
- !ruby/object:Gem::Version
|
275
275
|
version: '0'
|
276
276
|
requirements: []
|
277
|
-
rubygems_version: 3.
|
278
|
-
signing_key:
|
277
|
+
rubygems_version: 3.3.3
|
278
|
+
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: Provides support for env-based configuration, and common structured logging
|
281
281
|
capabilities
|