Skip to content

GenAI utils | Create Agent demo app#4336

Draft
etserend wants to merge 9 commits intoopen-telemetry:mainfrom
etserend:genai-utils/create-agent-demo
Draft

GenAI utils | Create Agent demo app#4336
etserend wants to merge 9 commits intoopen-telemetry:mainfrom
etserend:genai-utils/create-agent-demo

Conversation

@etserend
Copy link

@etserend etserend commented Mar 16, 2026

Description

Adds AgentCreation type and create_agent() context manager to opentelemetry-util-genai, enabling instrumentation of agent creation and deployment lifecycle events with OpenTelemetry spans following the GenAI agent semantic conventions.

The create_agent span captures agent identity, provider, model, and server metadata as span attributes. This is the first of a series of PRs adding agent lifecycle telemetry to the shared GenAI utilities package.

Example span output (deploying a LanggraphAgent to Vertex AI Agent Engine):

Trace (95a94efb81565d932cd55f8a358b6a48)
└── create_agent Currency Exchange Agent (4m5.24s, Client)
    ├── gen_ai.agent.description: Deploying agent to Vertex AI Agent Engine
    ├── gen_ai.agent.name: Currency Exchange Agent
    ├── gen_ai.operation.name: create_agent
    ├── gen_ai.provider.name: gcp_vertex_ai
    ├── gen_ai.request.model: gemini-2.5-flash
    └── server.address: us-central1-aiplatform.googleapis.com

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

@etserend etserend changed the title Genai utils/Create Agent demo app GenAI utils | Create Agent demo app Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants