nexus_semantic_logger 1.14.2 → 1.34.4
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 +4 -4
- data/.gitignore +0 -2
- data/.gitlab-ci.yml +36 -0
- data/Gemfile +0 -1
- data/lib/nexus_semantic_logger/datadog_tracer.rb +1 -1
- data/lib/nexus_semantic_logger/extensions/action_dispatch/debug_exceptions.rb +2 -13
- data/lib/nexus_semantic_logger/version.rb +2 -2
- data/nexus_semantic_logger.gemspec +3 -3
- metadata +12 -17
- data/.github/workflows/ci.yml +0 -52
- data/.rspec +0 -2
- data/Appraisals +0 -13
- data/gemfiles/rails_7_1.gemfile +0 -11
- data/gemfiles/rails_7_2.gemfile +0 -11
- data/gemfiles/rails_8_0.gemfile +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fec2fab7ed4208841df5e24feb89f5492dcf7e7da927a66c213ba320f10d70c
|
|
4
|
+
data.tar.gz: 560a758d31cf9bf3d773f85f588c977ba74b5acfd18a417dc2ce7fbd50c3762f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00c2dc1aa81205934c9ddc44e8a9c1135bc75f8a3191cb2d0b23c38af98ac2da1c311f034d54eb0f865a7b7237da1ec056658a4031300ed67e4e79e0700fd2c4
|
|
7
|
+
data.tar.gz: 54421ea76eb1c16ad584b4a547452bfa0ecb430ef37ccbcd15ada51f63a30c89f8e800bb6404a3c94fc830dcfe22277540a8fbf557c4a8d28c0d5038456c6d27
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
image: "ruby:3.2.2"
|
|
2
|
+
|
|
3
|
+
stages:
|
|
4
|
+
- release
|
|
5
|
+
- test
|
|
6
|
+
|
|
7
|
+
before_script:
|
|
8
|
+
- gem install bundler --no-document
|
|
9
|
+
- bundle install --jobs $(nproc) "${FLAGS[@]}"
|
|
10
|
+
|
|
11
|
+
rspec:
|
|
12
|
+
script:
|
|
13
|
+
- bundle exec rspec
|
|
14
|
+
|
|
15
|
+
rubocop:
|
|
16
|
+
script:
|
|
17
|
+
- bundle exec rubocop
|
|
18
|
+
|
|
19
|
+
release:
|
|
20
|
+
stage: release
|
|
21
|
+
rules:
|
|
22
|
+
- if: '$CI_COMMIT_TAG'
|
|
23
|
+
script:
|
|
24
|
+
- mkdir -p ~/.gem
|
|
25
|
+
- cp $RUBYGEMS_CREDENTIALS ~/.gem/credentials
|
|
26
|
+
- chmod 0600 ~/.gem/credentials
|
|
27
|
+
- gem update --system
|
|
28
|
+
- ruby --version
|
|
29
|
+
- gem env version
|
|
30
|
+
- sed -i "s/0.0.0/$CI_COMMIT_TAG/g" lib/nexus_semantic_logger/version.rb
|
|
31
|
+
- gem build nexus_semantic_logger.gemspec
|
|
32
|
+
- gem push nexus_semantic_logger*.gem
|
|
33
|
+
artifacts:
|
|
34
|
+
paths:
|
|
35
|
+
- nexus_semantic_logger*.gem
|
|
36
|
+
expire_in: 30 days
|
data/Gemfile
CHANGED
|
@@ -58,7 +58,7 @@ module NexusSemanticLogger
|
|
|
58
58
|
c.profiling.enabled = dd_tracer_enabled
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
c.tracing.instrument(:rails, service_name: service
|
|
61
|
+
c.tracing.instrument(:rails, service_name: service)
|
|
62
62
|
|
|
63
63
|
c.logger.level = Logger::WARN # datadog info logging is too verbose.
|
|
64
64
|
end
|
|
@@ -14,19 +14,8 @@ module ActionDispatch
|
|
|
14
14
|
# log_rescued_responses? is a rails7 feature, but this gem is also used on rails6. Check for its existence.
|
|
15
15
|
return if respond_to?('log_rescued_responses?') && !log_rescued_responses?(request) && wrapper.rescue_response?
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# replaced by Rails.application.deprecators. Calling the removed singleton on >= 7.2 raises NoMethodError
|
|
20
|
-
# inside render_exception (before the exception is logged), which swallowed all exception logging and
|
|
21
|
-
# produced empty 500s. Use whichever API the Rails version provides, mirroring rails_semantic_logger.
|
|
22
|
-
if (Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR >= 1) || Rails::VERSION::MAJOR > 7
|
|
23
|
-
Rails.application.deprecators.silence do
|
|
24
|
-
ActionController::Base.logger.fatal(wrapper.exception)
|
|
25
|
-
end
|
|
26
|
-
else
|
|
27
|
-
ActiveSupport::Deprecation.silence do
|
|
28
|
-
ActionController::Base.logger.fatal(wrapper.exception)
|
|
29
|
-
end
|
|
17
|
+
ActiveSupport::Deprecation.silence do
|
|
18
|
+
ActionController::Base.logger.fatal(wrapper.exception)
|
|
30
19
|
end
|
|
31
20
|
end
|
|
32
21
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
module NexusSemanticLogger
|
|
3
|
-
# Leave this as 1.
|
|
4
|
-
VERSION = '1.
|
|
3
|
+
# Leave this as 1.34.4 in order for CI process to replace with the tagged version.
|
|
4
|
+
VERSION = '1.34.4'
|
|
5
5
|
end
|
|
@@ -14,11 +14,11 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
end
|
|
15
15
|
spec.require_paths = ['lib']
|
|
16
16
|
spec.add_dependency('amazing_print', '~> 1.4.0')
|
|
17
|
-
spec.add_dependency('datadog', '~> 2.
|
|
18
|
-
spec.add_dependency('dogstatsd-ruby', '~> 5.
|
|
17
|
+
spec.add_dependency('datadog', '~> 2.7.0') # For datadog tracing/profiling.
|
|
18
|
+
spec.add_dependency('dogstatsd-ruby', '~> 5.6.1') # For custom application metrics.
|
|
19
19
|
spec.add_dependency('google-protobuf', '~> 3.25.5')
|
|
20
20
|
spec.add_dependency('net_tcp_client', '~> 2.2.0') # For TCP logging.
|
|
21
21
|
spec.add_dependency('rails_semantic_logger', '~> 4.17.0')
|
|
22
|
-
spec.add_dependency('semantic_logger', '
|
|
22
|
+
spec.add_dependency('semantic_logger', '<= 4.16.0')
|
|
23
23
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
|
24
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nexus_semantic_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.34.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Johnathon Harris
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: amazing_print
|
|
@@ -30,28 +30,28 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 2.7.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 2.7.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: dogstatsd-ruby
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
47
|
+
version: 5.6.1
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
54
|
+
version: 5.6.1
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: google-protobuf
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -98,32 +98,27 @@ dependencies:
|
|
|
98
98
|
name: semantic_logger
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- - "
|
|
101
|
+
- - "<="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 4.16.
|
|
103
|
+
version: 4.16.0
|
|
104
104
|
type: :runtime
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- - "
|
|
108
|
+
- - "<="
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 4.16.
|
|
110
|
+
version: 4.16.0
|
|
111
111
|
description:
|
|
112
112
|
email: john.harris@nexusmods.com
|
|
113
113
|
executables: []
|
|
114
114
|
extensions: []
|
|
115
115
|
extra_rdoc_files: []
|
|
116
116
|
files:
|
|
117
|
-
- ".github/workflows/ci.yml"
|
|
118
117
|
- ".gitignore"
|
|
119
|
-
- ".
|
|
118
|
+
- ".gitlab-ci.yml"
|
|
120
119
|
- ".rubocop.yml"
|
|
121
|
-
- Appraisals
|
|
122
120
|
- Gemfile
|
|
123
121
|
- README.md
|
|
124
|
-
- gemfiles/rails_7_1.gemfile
|
|
125
|
-
- gemfiles/rails_7_2.gemfile
|
|
126
|
-
- gemfiles/rails_8_0.gemfile
|
|
127
122
|
- lib/nexus_semantic_logger.rb
|
|
128
123
|
- lib/nexus_semantic_logger/appender_filter.rb
|
|
129
124
|
- lib/nexus_semantic_logger/application.rb
|
|
@@ -155,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
150
|
- !ruby/object:Gem::Version
|
|
156
151
|
version: '0'
|
|
157
152
|
requirements: []
|
|
158
|
-
rubygems_version: 3.
|
|
153
|
+
rubygems_version: 3.5.23
|
|
159
154
|
signing_key:
|
|
160
155
|
specification_version: 4
|
|
161
156
|
summary: semantic_logger usage for nexus
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
tags: ["*"]
|
|
7
|
-
pull_request:
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
rspec:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
strategy:
|
|
13
|
-
fail-fast: false
|
|
14
|
-
matrix:
|
|
15
|
-
gemfile: [rails_7_1, rails_7_2, rails_8_0]
|
|
16
|
-
env:
|
|
17
|
-
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v4
|
|
20
|
-
- uses: ruby/setup-ruby@v1
|
|
21
|
-
with:
|
|
22
|
-
ruby-version: "3.2.2"
|
|
23
|
-
- run: bundle install --jobs 4
|
|
24
|
-
- run: bundle exec rspec
|
|
25
|
-
|
|
26
|
-
rubocop:
|
|
27
|
-
runs-on: ubuntu-latest
|
|
28
|
-
steps:
|
|
29
|
-
- uses: actions/checkout@v4
|
|
30
|
-
- uses: ruby/setup-ruby@v1
|
|
31
|
-
with:
|
|
32
|
-
ruby-version: "3.2.2"
|
|
33
|
-
- run: bundle install --jobs 4
|
|
34
|
-
- run: bundle exec rubocop
|
|
35
|
-
|
|
36
|
-
release:
|
|
37
|
-
needs: [rspec, rubocop]
|
|
38
|
-
if: startsWith(github.ref, 'refs/tags/')
|
|
39
|
-
runs-on: ubuntu-latest
|
|
40
|
-
steps:
|
|
41
|
-
- uses: actions/checkout@v4
|
|
42
|
-
- uses: ruby/setup-ruby@v1
|
|
43
|
-
with:
|
|
44
|
-
ruby-version: "3.2.2"
|
|
45
|
-
- run: bundle install --jobs 4
|
|
46
|
-
- name: Build and push gem to RubyGems
|
|
47
|
-
env:
|
|
48
|
-
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
|
49
|
-
run: |
|
|
50
|
-
sed -i "s/0.0.0/${GITHUB_REF_NAME}/g" lib/nexus_semantic_logger/version.rb
|
|
51
|
-
gem build nexus_semantic_logger.gemspec
|
|
52
|
-
gem push nexus_semantic_logger-*.gem
|
data/.rspec
DELETED
data/Appraisals
DELETED
data/gemfiles/rails_7_1.gemfile
DELETED
data/gemfiles/rails_7_2.gemfile
DELETED
data/gemfiles/rails_8_0.gemfile
DELETED