Crew Name in telemetry? #3932
Unanswered
agardnerIT
asked this question in
Q&A
Replies: 2 comments
-
|
The crew name is included in telemetry as the from crewai import Crew
crew = Crew(
name="latest_ai_development", # Add this parameter
agents=[...],
tasks=[...]
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Crew name should be in telemetry, but it might need explicit configuration. Add crew name to telemetry: from crewai import Crew
from opentelemetry import trace
crew = Crew(
name="latest_ai_development", # Explicit name
agents=[...],
tasks=[...],
)
# Add crew name as span attribute
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("crew_run") as span:
span.set_attribute("crew.name", crew.name or "unnamed")
span.set_attribute("crew.id", str(crew.id))
result = crew.kickoff()OpenLLMetry instrumentation: from openllmetry import OpenLLMetry
OpenLLMetry.instrument(
additional_attributes={
"crew.name": "latest_ai_development",
"environment": "production"
}
)Check what CrewAI sends: # Enable verbose to see telemetry
crew = Crew(
name="latest_ai_development",
verbose=True,
telemetry=True, # Ensure enabled
)Query in your backend: SELECT
span_attributes[crew.name] as crew_name,
COUNT(*) as runs
FROM traces
GROUP BY crew_nameIf crew name is missing: We monitor CrewAI crews at Revolution AI — explicit span attributes ensure the data shows up correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm following the quickstart and sending telemetry (using OpenLLMetry) to a backend.
I want to know what crews I have active (ie. I want to see that I have
1crew calledlatest_ai_development) but I can't find that in the incoming telemetry.Beta Was this translation helpful? Give feedback.
All reactions