Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ OpenLLMetry can instrument everything that [OpenTelemetry already instruments](h
- ✅ [Haystack](https://haystack.deepset.ai/integrations/traceloop)
- ✅ [LiteLLM](https://docs.litellm.ai/docs/observability/opentelemetry_integration)
- ✅ [CrewAI](https://docs.crewai.com/introduction)
- ✅ [OpenAI Agents](https://openai.github.io/openai-agents-python/)

### Protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ async def _wrap_agent_run_streamed(
duration,
attributes={
"gen_ai.agent.name": agent_name,
SpanAttributes.LLM_SYSTEM: "openai",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adharshctr shouldn't this be the vendor (which may not always be OpenAI)?

SpanAttributes.LLM_RESPONSE_MODEL: get_model_name(agent),
},
)

Expand Down Expand Up @@ -283,6 +285,11 @@ async def _wrap_agent_run(
if duration_histogram:
duration_histogram.record(
time.time() - start_time,
attributes={
"gen_ai.agent.name": agent_name,
SpanAttributes.LLM_SYSTEM: "openai",
SpanAttributes.LLM_RESPONSE_MODEL: model_name,
},
)
if isinstance(prompt_list, list):
set_prompt_attributes(span, prompt_list)
Expand Down