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

feat: refactor Tempo Vulture to reduce code complexity #3850

Merged
merged 7 commits into from
Jul 16, 2024

Conversation

javiermolinar
Copy link
Contributor

@javiermolinar javiermolinar commented Jul 8, 2024

What this PR does:
This PR aims to reduce the complexity of Vulture by refactoring the code into different functions. New tests have been added to provide a ground base for future changes.
Since this is a refactor, the behavior is unaltered. Some of the changes included:

  • No references to global variables
  • External dependencies are now interfaces
  • Deduplicate function traceInTraces
  • Consistent use of the logger

Although the code coverage is not a goal itself it has been increased from 12% to 80%. Only the main method is not covered.

Checklist

  • [ X] Tests updated
  • Documentation added
  • [ X] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@joe-elliott joe-elliott merged commit 199b3ef into grafana:main Jul 16, 2024
14 checks passed
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