We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If new loggers with scope and/or attrs are created, the new values are not being recorded as part of the log entry.
scope
attrs
// Time returns the current time. // //ftl:verb export func Time(ctx context.Context, req TimeRequest) (TimeResponse, error) { logAttrs := map[string]string{"keya": "a", "keyb": "b"} logger := ftl.LoggerFromContext(ctx).Scope("new_scope").Attrs(logAttrs) logger.Infof("Time request received") return TimeResponse{Time: time.Now()}, nil }
The expected attributes would be:
{ "deployment": "<whatever key>", "keya": "a", "keyb": "b", "module": "time", "scope": "new_scope" }
But we're getting:
{ "deployment": "<whatever key>", "module": "time", "scope": "time" }
The text was updated successfully, but these errors were encountered:
fix: log attrs being dropped
ed8cdde
- Fixes #2167
bbe565d
wesbillman
Successfully merging a pull request may close this issue.
If new loggers with
scope
and/orattrs
are created, the new values are not being recorded as part of the log entry.The expected attributes would be:
But we're getting:
The text was updated successfully, but these errors were encountered: