-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: standardize log field names to use underscores (#156)
### TL;DR Updated log field names to use underscores instead of hyphens for better compatibility with open telemetry fields. ### What changed? Standardized all logging field names across the codebase to use underscore notation instead of hyphenated notation. For example: - `narinfo-hash` → `narinfo_hash` - `server-addr` → `server_addr` - `nar-url` → `nar_url` - `trace-id` → `trace_id` ### How to test? 1. Run the application and verify logs are being generated 2. Check that all log fields use underscore notation 3. Verify log parsers can properly process the updated field names 4. Ensure no logging functionality is broken ### Why make this change? Using underscores in log field names is a common convention that improves compatibility with log parsing tools and systems. Many log processors handle underscore-separated fields better than hyphenated ones, making it easier to query and analyze logs. Furthermore, open-telemetry internally changes dashes to underscores (at least from what I observed in traces) and this makes it consistent.
- Loading branch information
Showing
6 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters