Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Disable telemetry explicitly (#1536)
Brandon Hancock (bhancock_ai)6193eb13fa0b
diff --git a/src/crewai/telemetry/telemetry.py b/src/crewai/telemetry/telemetry.pyindex a08ccd96f..e191f8d4d 100644--- a/src/crewai/telemetry/telemetry.py+++ b/src/crewai/telemetry/telemetry.py@@ -21,7 +21,7 @@ with suppress_warnings():from opentelemetry import trace # noqa: E402-from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter # noqa: E402+from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter # noqa: E402from opentelemetry.sdk.resources import SERVICE_NAME, Resource # noqa: E402from opentelemetry.sdk.trace import TracerProvider # noqa: E402from opentelemetry.sdk.trace.export import BatchSpanProcessor # noqa: E402@@ -48,6 +48,10 @@ class Telemetry:def __init__(self):self.ready = Falseself.trace_set = False++ if os.getenv("OTEL_SDK_DISABLED", "false").lower() == "true":+ return+try:telemetry_endpoint = "https://telemetry.crewai.com:4319"self.resource = Resource(