Repository navigation
Conversation
… range Auto-instrumentation loads instrumentors with skip_dep_check=True, so the declared crewai >= 1.10.0, < 2 range was never enforced. On crewai 0.177.0-1.9.x the event handler reads event_id/started_event_id, which those versions lack, and Crew.kickoff() raised AttributeError. _instrument now runs the dependency check itself and, on a conflict, logs a warning and leaves crewai_event_bus.emit unwrapped.
…crewAI we migrate it one layer up for ADOT as a whole so check dependencies happens for all instrumentations
|
Claude finished @haneric00's task in 2m 47s —— View job Claude PR Review
All 4 prior review items from @liustve have been addressed in this PR:
No new substantive issues to flag. |
|
|
||
| @staticmethod | ||
| def _get_cumulative_token_usage(llm: Any) -> Optional[Tuple[int, int]]: | ||
| # only BaseLLM exposes a usage summary; LLM events can also be emitted from other sources (e.g. customer code) |
There was a problem hiding this comment.
find example of external sources that don't have token count, also why
There was a problem hiding this comment.
if necessary change tests to reflect external sources: either no token count or token count available from these sources
|
Claude finished @haneric00's task in 2m 4s —— View job Claude PR Review
All prior review items from @liustve (4 items on commit
No new substantive issues to flag. |
|
Claude finished @haneric00's task in 1m 42s —— View job Claude PR Review
All prior review items from @liustve (4 items on commit
No new substantive issues to flag. |
|
Claude finished @haneric00's task in 1m 33s —— View job Claude PR Review
All prior review items from @liustve (4 items on commit
No new substantive issues to flag. |
|
Claude finished @haneric00's task in 1m 49s —— View job Claude PR Review
All prior review items from @liustve (4 items on commit
No new substantive issues to flag. |
|
Claude finished @haneric00's task in 49s —— View job Claude PR Review
All prior review items from @liustve (4 items on commit
No new substantive issues to flag. |
fix: the CrewAI instrumentor now skips instrumentation, with a warning, when the installed crewai is outside its
supported range (
>= 1.10.0, < 2). Under auto-instrumentation the range was not enforced, soCrew.kickoff()raised
AttributeErroron crewai 0.177.0-1.9.x.fix: CrewAI instrumentation errors no longer fail the customer's call. The
crewai_event_bus.emitwrapper nowcatches and debug-logs exceptions from the ADOT event handler, so the event is still emitted and
kickoff()returns normally; only telemetry for that event is lost. LLM events emitted from a source other than a CrewAI
BaseLLMnow produce a chat span without token usage instead of raisingAttributeError.fix: token-usage lookups no longer assume the event source is a baseLLM. For other sources the chat span is now recorded without token counts instead of being dropped.
Tests added:
test_aws_opentelemetry_distro.py:
Removed:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.