logjam_agent 0.39.1 → 0.39.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f186ba84a9bc5d93776c0d24b140736439fbc0f29eebe2afbeb9401c22eb0987
4
- data.tar.gz: 7ef52541666f638caa3ffd2798f2da95128f720b9df27c8acf6a37ade5666c08
3
+ metadata.gz: e0138664b3cb04da204ca12920f5015cf6454ac79d37dd3a7bdd9cb5e0839bce
4
+ data.tar.gz: b4ea9ad584ad783a800192f2d5694b2ff4a125ad3d3f5b7fadb82fc14fa4f64b
5
5
  SHA512:
6
- metadata.gz: a3a424872649058f48a09babd30da5abac2e013db6afe50fd9284bb51e313fe6ab9d313c47f7aee40e097c64b297d533d209d3f118273fc1980e2f4e6f08f138
7
- data.tar.gz: 4003a735b587bd1e6a69cd2f6c671ce86f70c609269dd273fb8859ea0a9795cf5264421d088b842b5d357f50c090360d2530ae092cf05a639c17e808465ae6aa
6
+ metadata.gz: ed58e2568038ffc85725e21e41ebda5cc3a2d15eddc33ea6b5f3db1a2115ee4879cc0e218b8b5e129b9bde8250ecbadb5703a4a2ca6159fc365f40857f3a1552
7
+ data.tar.gz: '0847de035ff84bf0c975c4b066702f464ebdc17357c9ba4f19028bf9cd9a8ba1bc4c095cd398d420a727ae161df454211520a8b131b9b9896dbf2fd5bb9b9cdb'
data/README.md CHANGED
@@ -120,6 +120,19 @@ module LogjamAgent
120
120
  end
121
121
  ```
122
122
 
123
+ ### Logger setup
124
+
125
+ The gem ships with a railtie that sets up a logjam agent specific logger which serves the
126
+ dual purpose of collecting log lines to be published on the logjam logging bus once the
127
+ request is complete and sending them to the log device as they are produced.
128
+
129
+ The logger setup code in the Rails environment specific initialization files should be
130
+ removed. Setup code which can remain without affecting logjam functionality is setting the
131
+ log level or changing the log formatter. It is advisable to read the logger initialization
132
+ code contained in file `lib/logjam_agent/railtie.rb` to understand what's going on behind
133
+ the scenes.
134
+
135
+
123
136
  ### Generating unique request ids
124
137
 
125
138
  The agent generates unique request ids for all request handled using standard
data/Rakefile CHANGED
@@ -14,6 +14,7 @@ task :default do
14
14
  Rake::Task[:test].invoke
15
15
  end
16
16
 
17
+ desc "Run integration tests"
17
18
  task :integration do
18
19
  sh "cd railsapp && rake"
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.39.1"
2
+ VERSION = "0.39.2"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -3,6 +3,7 @@ SimpleCov.start do
3
3
  add_filter %r{^/test/}
4
4
  end
5
5
 
6
+ require "logger"
6
7
  require 'minitest/autorun'
7
8
  require 'minitest/unit'
8
9
  require 'minitest/pride' if ENV['RAINBOW_COLORED_TESTS'] == "1" && $stdout.tty?
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.1
4
+ version: 0.39.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-09-30 00:00:00.000000000 Z
10
+ date: 2025-03-21 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -113,7 +112,6 @@ homepage: https://github.com/skaes/logjam_agent
113
112
  licenses:
114
113
  - MIT
115
114
  metadata: {}
116
- post_install_message:
117
115
  rdoc_options: []
118
116
  require_paths:
119
117
  - lib
@@ -128,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
126
  - !ruby/object:Gem::Version
129
127
  version: '0'
130
128
  requirements: []
131
- rubygems_version: 3.5.11
132
- signing_key:
129
+ rubygems_version: 3.6.2
133
130
  specification_version: 4
134
131
  summary: Logjam client library to be used with logjam
135
132
  test_files: