Skip to content

Commit 8e87b7f

Browse files
committed
Bump version to 0.1.8
1 parent 89bc373 commit 8e87b7f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Changed
99

10+
## [0.1.8] - 2026-01-22
11+
12+
- **Fix**: Lograge custom options now appear in request logs
13+
- **Fix**: Request logs include request metadata fields (request_id, source_ip, user_agent, referer, host, content_type, accept)
14+
- **Docs**: Documented Lograge custom options and request metadata fields
15+
1016
## [0.1.7] - 2025-12-06
1117

1218
- **Fix**: Puma server detection now uses `$PROGRAM_NAME` instead of checking `defined?(::Puma::Server)` which was unreliable

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
logstruct (0.1.7)
4+
logstruct (0.1.8)
55
lograge (>= 0.11)
66
rails (>= 7.1)
77
semantic_logger (~> 4.15)

lib/log_struct/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# frozen_string_literal: true
33

44
module LogStruct
5-
VERSION = "0.1.7"
5+
VERSION = "0.1.8"
66
end

test/code_examples/rails_initializer_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def test_rails_initializer
6262

6363
# Add custom fields to lograge output
6464
config.integrations.lograge_custom_options = ->(event, _) {
65-
params = event.payload[:params].except(*Rails.application.config.filter_parameters)
65+
params = event.payload[:params]
66+
params = params&.except(*Rails.application.config.filter_parameters)
6667
{
6768
# Add request_id for correlation across logs
6869
request_id: event.payload[:headers]&.[]("X-Request-Id") || SecureRandom.uuid,

0 commit comments

Comments
 (0)