Hi All,
I’ve proposed a new feature that lets you use log_tags
with a hash to name the tags themselves:
config.log_tags = {
remote_ip: :remote_ip,
trace_id: ->(request) { some_computed_value }
}
I’m looking to get more input from any rails maintainers as the conversation has gone dry on the PR: Allow log_tags to take a hash for a tagged logger by allcentury · Pull Request #38009 · rails/rails · GitHub
Open to feedback and other ideas, in fact @eugeneius gave a good one.