-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(aws_s3 source): replace info! with debug! to avoid spam #22215
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 7 Passed, 0 Skipped, 25.43s Total Time |
src/sources/aws_s3/sqs.rs
Outdated
message = "Got S3 object from SQS notification.", | ||
bucket = s3_event.s3.bucket.name, | ||
key = s3_event.s3.object.key | ||
key = s3_event.s3.object.key, | ||
internal_log_rate_limit = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest looping in the author that added these to see if it is still useful for them as a throttled log. If it isn't we could consider dropping it altogether and re-adding it once we figure out a better way to do so without increasing noise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think this is useful as a throttled log nor as a debug log. IMO, this information is appropriate to be logged in full, and the info level is appropriate.
This is similar to what the file source does when it detects, adds, and finishes processing a new input file.
Similar, for files ingested through s3, we want a record that every file was ingested to ensure completeness.
Is this addressing a complaint? I'm curious of the use case where this information isn't desired. The lack of these logs has been a major source of frustration for my users. Perhaps there's a way to make it a configurable option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another user complained in Discord today: thread.
Relying on logs/traces doesn't sound robust. How about we introduced another aws_s3
source output and publish audit events to it? Open to more ideas of course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with this being merged, but would like to continue discussions. If we drop it to debug I should be able to set VECTOR_LOG=sources::aws_s3=debug,info
and get the data we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think internal_log_rate_limit
should be set to false. People who want this information want it for every object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 9bb3978.
Created a new 0.44.1 milestone and added this here: https://github.com/vectordotdev/vector/milestone/138 |
Summary
These were missing the
internal_log_rate_limit
attribute. But also, based on https://github.com/vectordotdev/vector/blob/master/STYLE.md#basic-usage they should have beendebug!
statements.Change Type
Is this a breaking change?
How did you test this PR?
Does this PR include user facing changes?
Checklist
make check-all
is a good command to run locally. This check isdefined here. Some of these
checks might not be relevant to your PR. For Rust changes, at the very least you should run:
cargo fmt --all
cargo clippy --workspace --all-targets -- -D warnings
cargo nextest run --workspace
(alternatively, you can runcargo test --all
)Cargo.lock
), pleaserun
dd-rust-license-tool write
to regenerate the license inventory and commit the changes (if any). More details here.References