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

Remove excess info-level instrumentation logs #2881

Merged
merged 6 commits into from
Oct 4, 2024

Conversation

hannahramadan
Copy link
Contributor

@hannahramadan hannahramadan commented Oct 1, 2024

Removes info-level log statements for instrumentations. These statements are already produces in the prepend_instrument and chain_instrument methods, which call log_and_instrument. Each instrumentation file edited in this PR uses these methods.

The library name used for a supportability metric and logging statement is either extracted via extract_supportability_name, which splits on the 2nd to last spot of the instrumented module, or can be passed in as a third argument to prepend_instrument or chain_instrument. For libraries that have a weird 2nd to last name, a third argument was added with the desired name.

closes #2434

The methods prepend_instrument and chain_instrument log instrumentation statements. Duplicate statements are now removed.
Copy link

github-actions bot commented Oct 4, 2024

SimpleCov Report

Coverage Threshold
Line 93.79% 93%
Branch 69.62% 50%

@hannahramadan hannahramadan marked this pull request as ready for review October 4, 2024 15:29
@hannahramadan hannahramadan merged commit f4f1305 into dev Oct 4, 2024
31 of 32 checks passed
@hannahramadan hannahramadan deleted the ssshhh_too_much_info branch October 4, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Cleanup instrumentation info-level logging
3 participants