Skip to content

Commit

Permalink
feat: Generate request ID header by default (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
2k-joker authored Oct 13, 2023
1 parent ce090bd commit c2aa078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ HTTPigeon.configure do |config|
config.redactor_string = # Set a string that should be used as the replacement when redacting sensitive data. Default: '[FILTERED]'
config.log_redactor = # Specify an object to be used for redacting data before logging. Must respond to #redact(data<Hash, String>). Default: nil
config.event_logger = # Specify an object to be used for logging request roundtrip events. Default: $stdout
config.auto_generate_request_id = # Auto-generate a uuid for each request and store in a 'X-Request-Id' header?
config.exception_notifier = # Specify an object to be used for reporting errors. Must respond to #notify_exception(e<Exception>)
config.notify_all_exceptions = # Do you want these errors to actually get reported/notified?
config.auto_generate_request_id = # Auto-generate a uuid for each request and store in a 'X-Request-Id' header? Default: true
config.exception_notifier = # Specify an object to be used for reporting errors. Must respond to #notify_exception(e<Exception>). Must be defined if :notify_all_exceptions is true
config.notify_all_exceptions = # Do you want these errors to actually get reported/notified? Default: false
end
```

Expand Down
2 changes: 1 addition & 1 deletion lib/httpigeon/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def initialize
@redactor_string = '[FILTERED]'
@log_redactor = nil
@event_logger = nil
@auto_generate_request_id = false
@auto_generate_request_id = true
@notify_all_exceptions = false
@exception_notifier = nil
end
Expand Down

0 comments on commit c2aa078

Please sign in to comment.