logtail 0.1.9 → 0.1.11

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: 70998dd5f26c2584488666b3ca0ad9520c4f8a65053070e4fc2fa5d48089c8a2
4
- data.tar.gz: 789e2d136fec6be4a6abe1713fc1ecd610389d618cd0ddfb4e51c72231af8185
3
+ metadata.gz: b733e09dc3c2fe5e34726a20e57f2b6b812077599aa8b90acee18387296b87d2
4
+ data.tar.gz: 805f7124e4796e3ea453dd917f1d6abbcd1ef1844869d543bb884195329258f7
5
5
  SHA512:
6
- metadata.gz: d064bef3aa33ecf46de05e448af8bf43377e352f20f76db5dd152b7c78bdcd7e66d58ff80f4d4f692a6a0b18764ab4a2f6a18c62b0a576c34bab7ff360d1a5cb
7
- data.tar.gz: 4cb7416ae5c34c0de26e24c96b12fe4e37a43c8c0f142c53e4da5d1d32543ecd6fd8e5a7097117111cb60b3888f482d5b276a9d95d226024b72c222ec14a6ed9
6
+ metadata.gz: 394455d1941c94c0a19e1c4a25486b0a9c67f14461be14a43cd65019d10ad274ffe7d5d1fc3614edaf6c2011394d515741ddd411e7674d1ef418f67342657ea6
7
+ data.tar.gz: a4654f2d5dc978fe2c48c4223a1a439bae9a7e41c8ef74e15a9f76892dd43846d7994c6b5d999ac860f39b8e084750af7165f66af109fdb9efa4423e60196f47
@@ -19,8 +19,10 @@ jobs:
19
19
  - 2.4.10
20
20
  - 2.3.8
21
21
  - 2.2.10
22
+ - jruby-9.4.3.0
22
23
  - jruby-9.2.14.0
23
- - truffleruby-21.0.0
24
+ - truffleruby-23.0.0
25
+ - truffleruby-22.1.0
24
26
 
25
27
  steps:
26
28
  - uses: actions/checkout@v2
data/README.md CHANGED
@@ -51,7 +51,7 @@ This will install all dependencies listed in the `Gemfile.lock` file.
51
51
  To run the example application, run the following command:
52
52
 
53
53
  ```bash
54
- ruby main.rb <source-token>
54
+ bundle exec ruby main.rb <source-token>
55
55
  ```
56
56
 
57
57
  *Don't forget to replace `<source-token>` with your actual source token which you can find by going to logtail.com -> sources -> edit.*
@@ -1,9 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- logtail (0.1.7)
4
+ logtail (0.1.9)
5
5
  msgpack (~> 1.0)
6
- msgpack (1.4.4)
6
+ msgpack (1.7.1)
7
7
 
8
8
  PLATFORMS
9
9
  ruby
@@ -21,7 +21,7 @@ Alternatively, add `gem "logtail"` to your `Gemfile` manually and then run `bund
21
21
  To run the example application, run the following command adding your source token:
22
22
 
23
23
  ```bash
24
- ruby main.rb <source-token>
24
+ bundle exec ruby main.rb <source-token>
25
25
  ```
26
26
 
27
27
  This will create a total of 5 different logs, each corresponding to a different log level. You can review these logs in Logtail.
@@ -8,7 +8,7 @@ require "logtail"
8
8
 
9
9
  # Check for program arguments
10
10
  if ARGV.length != 1
11
- puts "Program needs source token to run. Run the program as followed\nruby main.rb <source-token>"
11
+ puts "Program needs source token to run. Run the program as followed\nbundle exec ruby main.rb <source-token>"
12
12
  exit
13
13
  end
14
14
  # Create logger
@@ -37,6 +37,6 @@ logger.warn(
37
37
  logger.error("Oops! An error occurred!")
38
38
 
39
39
  # Send messages about fatal events that caused the app to crash using the fatal() method
40
- logger.fatal("Application crash! Needs to be fixed ASP!")
40
+ logger.fatal("Application crash! Needs to be fixed ASAP!")
41
41
 
42
42
  puts "All done! You can check your logs now."
@@ -57,7 +57,11 @@ module Logtail
57
57
 
58
58
  # Because of all the crazy ways Rails has attempted tags, we need this crazy method.
59
59
  def extract_active_support_tagged_logging_tags
60
- @current_tags ||
60
+ if defined?(current_tags)
61
+ return current_tags
62
+ end
63
+
64
+ defined?(ActiveSupport::IsolatedExecutionState) && ActiveSupport::IsolatedExecutionState[tagged_logging_object_key_name] ||
61
65
  Thread.current[:activesupport_tagged_logging_tags] ||
62
66
  Thread.current[tagged_logging_object_key_name] ||
63
67
  EMPTY_ARRAY
@@ -1,3 +1,3 @@
1
1
  module Logtail
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Better Stack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-10 00:00:00.000000000 Z
11
+ date: 2023-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack