mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-24 23:58:15 +00:00
fix linting with ruff check --fix
This commit is contained in:
@@ -83,8 +83,8 @@ class Telemetry:
|
|||||||
def _is_telemetry_disabled(self) -> bool:
|
def _is_telemetry_disabled(self) -> bool:
|
||||||
"""Check if telemetry should be disabled based on environment variables."""
|
"""Check if telemetry should be disabled based on environment variables."""
|
||||||
return (
|
return (
|
||||||
os.getenv("OTEL_SDK_DISABLED", "false").lower() == "true" or
|
os.getenv("OTEL_SDK_DISABLED", "false").lower() == "true"
|
||||||
os.getenv("CREWAI_DISABLE_TELEMETRY", "false").lower() == "true"
|
or os.getenv("CREWAI_DISABLE_TELEMETRY", "false").lower() == "true"
|
||||||
)
|
)
|
||||||
|
|
||||||
def set_tracer(self):
|
def set_tracer(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user