Skip to content

Use camelCase log attribute keys - #4

Merged
johnmaguire merged 1 commit into
mainfrom
log-keys
Oct 28, 2026
Merged

johnmaguire merged 1 commit into
mainfrom
log-keys

Conversation

@johnmaguire

Copy link
Copy Markdown
Member

The library logs through the consumer's *slog.Logger, and its consumers (nebula and dnclient) use camelCase attribute keys and error for errors. This renames every attribute key the library emits to camelCase and err to error so its lines match the rest of the consumer's log. Message text, levels, and the set of logged attributes are unchanged.

The smoke workflows run on this PR through CI's pull_request trigger.

The library logs through the consumer's *slog.Logger. Its consumers use camelCase attribute keys and "error" for errors, so snake_case keys and "err" landed in their logs in the wrong style.
@johnmaguire

Copy link
Copy Markdown
Member Author

@matt-defined Feel free to approve, merge, and bump the go.mod in your Nebula PR.

@johnmaguire
johnmaguire merged commit 7c71c54 into main Oct 28, 2026
20 checks passed
@johnmaguire
johnmaguire deleted the log-keys branch October 28, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants