-
Notifications
You must be signed in to change notification settings - Fork 7k
[tracing] Update OpenTelemetry dependencies and fixing doc to make tracing work #57908
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,12 +76,12 @@ def _try_import(self, module): | |
| try: | ||
| return importlib.import_module(module) | ||
| except ImportError: | ||
| if os.getenv("RAY_TRACING_ENABLED", "False").lower() in ["true", "1"]: | ||
| if _is_tracing_enabled(): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Tracing Configuration Error Handling RegressionThe
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Double-checked: |
||
| raise ImportError( | ||
| "Install opentelemetry with " | ||
| "'pip install opentelemetry-api==1.0.0rc1' " | ||
| "and 'pip install opentelemetry-sdk==1.0.0rc1' to enable " | ||
| "tracing. See more at docs.ray.io/tracing.html" | ||
| "Install OpenTelemetry with " | ||
| "'pip install opentelemetry-api==1.34.1 opentelemetry-sdk==1.34.1' " | ||
| "to enable tracing. See the Ray documentation for details: " | ||
| "https://docs.ray.io/en/latest/ray-observability/user-guides/ray-tracing.html#installation" | ||
wph95 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ) | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For conciseness and to ensure atomic installation of compatible versions, it's better to combine these
pip installcommands into a single line.