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

Merged
merged 3 commits into from
Oct 21, 2024
Merged

Improve Rust tracing spans #80

merged 3 commits into from
Oct 21, 2024

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] + "..."

Copy link
Contributor Author

@graebm graebm Oct 21, 2024

Choose a reason for hiding this comment

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

I like it super explicit 🤷‍♀️

@graebm graebm merged commit c1797f1 into main Oct 21, 2024
6 checks passed
@graebm graebm deleted the rust-curated-spans branch October 21, 2024 23:03
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