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

Improve Rust tracing spans #80

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Improve Rust tracing spans #80

wants to merge 2 commits into from

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Oct 18, 2024

Adapt to changes from awslabs/aws-s3-transfer-manager-rs#66
Now that the transfer manager has a lot of nice spans, we can trim some out of here.
Also, some tweaks to the graph.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

# trim down excessively long strings
MAX_STRLEN = 150
if isinstance(value, str) and len(value) > MAX_STRLEN:
value = value[:MAX_STRLEN] + "...TRUNCATED"
Copy link
Contributor

Choose a reason for hiding this comment

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

trivial/debatable: ... should be enough.

Suggested change
value = value[:MAX_STRLEN] + "...TRUNCATED"
value = value[:MAX_STRLEN] + "..."

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.

3 participants