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

fix: add check for variable value before calling method #3868

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

italojohnny
Copy link
Member

Ensure the variable has a value before invoking its method to prevent potential error.

Fixes #3854

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Sep 20, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Sep 20, 2024
Copy link
Collaborator

@jordanrfrazier jordanrfrazier left a comment

Choose a reason for hiding this comment

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

When would we not having tracing service initialized? Is it an optional debug setting?

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 20, 2024
@italojohnny
Copy link
Member Author

italojohnny commented Sep 20, 2024

When would we not having tracing service initialized? Is it an optional debug setting?

Short answer: The tracing service will not initialize if the necessary environment variables are not set.

Full answer: If tracing is optional, it may not be activated in certain scenarios, such as when the environment variables are not configured. Even though the variable might always be populated, not handling this properly could lead to future issues, allowing the tracing service to fail to initialize as expected.

Screenshot 2024-09-20 at 11 26 52

@italojohnny italojohnny merged commit 48676b0 into main Sep 20, 2024
42 of 44 checks passed
@italojohnny italojohnny deleted the fix/add_check_value branch September 20, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tracing_service is not required for Graph.initialize_run
2 participants