{"library":"openinference-instrumentation-crewai","title":"OpenInference CrewAI Instrumentation","description":"OpenTelemetry instrumentation for CrewAI agents and tasks, enabling distributed tracing and observability via the OpenInference semantic conventions. Version 1.1.3, supports Python 3.10 to 3.13, part of the Arize AI openinference ecosystem. Released as needed alongside crewai updates.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install openinference-instrumentation-crewai"],"cli":null},"imports":["from openinference.instrumentation.crewai import CrewAIInstrumentor"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from opentelemetry import trace\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.sdk.trace.export import SimpleSpanProcessor, ConsoleSpanExporter\nfrom openinference.instrumentation.crewai import CrewAIInstrumentor\n\n# Set up OTEL tracing\ntrace.set_tracer_provider(TracerProvider())\nspan_processor = SimpleSpanProcessor(ConsoleSpanExporter())\ntrace.get_tracer_provider().add_span_processor(span_processor)\n\n# Instrument CrewAI\nCrewAIInstrumentor().instrument()\n\n# Now run CrewAI code; spans will be exported to console\ntracer = trace.get_tracer(__name__)\nwith tracer.start_as_current_span(\"example\"):\n    # Your CrewAI agent/task code here\n    pass\n","lang":"python","description":"Minimal setup to instrument CrewAI and export spans to console. Replace ConsoleSpanExporter with an OTLP exporter for production.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}