Skip to content
New issue

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

Phil/agent logs #1388

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Phil/agent logs #1388

merged 2 commits into from
Feb 20, 2024

Conversation

psFried
Copy link
Member

@psFried psFried commented Feb 20, 2024

Description:

#1379 changed our tracing_subscriber configuration to log at the close of each span. That required updating some #[instrument] attributes to include level = "debug", since the default level of spans is INFO. Apparently I missed a couple, so here we are. Production is currently logging pretty noisily, and this should help tone it down.

Also, I added time_queued log field to each async job handler, so we can get a sense of end-to-end processing latency. In retrospect, I wish I would have done this before making all these improvements to it, but 🤷


This change is Reviewable

The earlier change to enable logging on span close had missed a few spans that
needed an explicit `level = "debug"`.
The idea is just to make it easy for us to get a sense of the end-to-end
processing latency.
Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@psFried psFried merged commit 1273460 into master Feb 20, 2024
3 checks passed
@psFried psFried deleted the phil/agent-logs branch February 20, 2024 22:21
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