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

refactor send_trace for easier maintenance #33

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

msarahan
Copy link
Contributor

@msarahan msarahan commented Dec 19, 2024

EDIT: Description as requested:

The refactor was motivated by pre-commit checks, which added ruff in #32. The old script did not pass ruff. One of the flags that it raised was that the old main() function was too long.

What this PR does is to break up the one larger script into a smaller, more reusable class that gets used for the root spans and job spans. Step spans are handled as a method within a given job span. This will improve testability, which I will add later in this PR.

@msarahan msarahan requested a review from ajschmidt8 December 19, 2024 16:09
Copy link
Member

@ajschmidt8 ajschmidt8 left a comment

Choose a reason for hiding this comment

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

Some context about these changes in the PR body would be helpful.

For instance:

  • What was the motivation for these changes?
  • What do the changes accomplish?

@msarahan msarahan marked this pull request as draft December 20, 2024 03:07
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.

2 participants