-
Notifications
You must be signed in to change notification settings - Fork 190
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
Reducing verbosity of various logs #3664
Conversation
6613696
to
2c5a6bf
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
2c5a6bf
to
6109884
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
6109884
to
67236aa
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
rust-runtime/aws-smithy-runtime-api/src/client/runtime_components.rs
Outdated
Show resolved
Hide resolved
A new generated diff is ready to view.
A new doc preview is ready to view. |
Removed the logging of the full IMDS Client struct Removed logging the Configbag in a couple places in RuntimeComponentsBuilder Removed logging of full ProvideCredentials objects and replaced with just their names Update CHANGELOG Removing extraneous comment
870ef21
to
2fdec71
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
rust-runtime/aws-smithy-runtime-api/src/client/runtime_components.rs
Outdated
Show resolved
Hide resolved
2fdec71
to
960c855
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
Motivation and Context
Our logs had several entries that were extremely verbose and made them harder to sort through. This change aims to reduce the verbosity of those logs to something more manageable.
Description
Configbag
in a couple places inRuntimeComponentsBuilder
ProvideCredentials
objects in the CredentialsProviderChain` and replaced with just their namesThere are some verbose logs I did not remove because I was not sure of their usefulness. Most notably the
PartitionResolver
struct logs several hundred lines of region information each time it appears. Happy to truncate that as well if those logs aren't too helpful.Testing
This was tested locally by running the SDK logging example code with
RUST_LOG=trace
prepended to thecargo run
command. For comparison, when saved as a .txt file, the old logs take up2.8MB
and the new logs take273KB
for the same operation.Checklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.