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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 664f5e1c23eb4359cdbc71c7f9e9b62648764ef727b35110fb450e2418cc181f
4
- data.tar.gz: 6f74c5970b4f8932e879ff342d63c19f92bbe606c51af846fab1497b8acf936e
3
+ metadata.gz: cfd157bff00c9a41a678f4f8877660e90f9bb094b367ea0bedf153d7ea30d528
4
+ data.tar.gz: 4da1794259b8f5a2ad0d43544092487b91b56f840439404567ca26467264c8d8
5
5
  SHA512:
6
- metadata.gz: abc2c53d7ec2b119cbc80f71b253968cb3767197019fef2d0f71e3377d917efd24685d4f06a66df22ec6c444c03b7db46cf1196d1c4fa6b4ae12598530772ecf
7
- data.tar.gz: af84d1800825fe54cd8d9182c2d15139a86da3e14040db1ac71b79de386df3f60e662aa04a93c36f5aa6e46124a44b372af1871a50e4668e19d699015e45c23f
6
+ metadata.gz: 85e0c276cb7978298f3a14fadfa71e767b216b2fd419beecda09fe6855eea3de8cf58e9651869eae45a1317a47df659ff0db69de8daf29533040f190eaac07b2
7
+ data.tar.gz: 0d07c35465caebd19c9cb86a3d2113cdd1bacebe80cfedd2251da076fdaadec46d0fa47c5e147e9c3fee78ec7b1afff39291ea30057b20e562c28010af4710dc
@@ -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, &block)
76
- return SemanticLogger.named_tagged(tags, &block)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appydays
4
- VERSION = "0.7.0"
4
+ VERSION = "0.8.0"
5
5
  end
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.7.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-07-14 00:00:00.000000000 Z
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.1.6
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