OpenTelemetry Generative AI Semantic Conventions: 1) use the `gen_ai.*` namespace, not `llm.*` and 2) Deprecated Token Attributes - dazzaji/agento-otel GitHub Wiki


Fact Checker Researcher 1

OpenTelemetry Generative AI Semantic Conventions: Fact-Check and Implementation Guidance

Executive Summary

o3-Pro is correct. The current official OpenTelemetry semantic conventions for Generative AI use the gen_ai.* namespace, not llm.*. Gemini 2.5 Pro's claims about an llm.* namespace being the official standard are factually incorrect based on extensive research of official OpenTelemetry documentation and community implementations.

Detailed Fact-Check Analysis

1. Current Official Namespace: gen_ai.* (Status: Verified)

The official OpenTelemetry semantic conventions for Generative AI consistently use the gen_ai.* namespace across all documented attributes[1][2][3]. The comprehensive attribute registry definitively lists:

  • gen_ai.request.model - The name of the GenAI model a request is being made to
  • gen_ai.usage.input_tokens - The number of tokens used in the GenAI input (prompt)
  • gen_ai.usage.output_tokens - The number of tokens used in the GenAI response (completion)
  • gen_ai.system - The Generative AI product identifier

2. Deprecated Token Attributes (Status: Verified)

The official documentation confirms that older token attributes have been deprecated[1]:

  • gen_ai.usage.prompt_tokens → Replaced by gen_ai.usage.input_tokens
  • gen_ai.usage.completion_tokens → Replaced by gen_ai.usage.output_tokens

This deprecation aligns with both perspectives but uses the gen_ai.* namespace for replacements, not llm.*.

3. No Evidence of llm.* Namespace (Critical Finding)

Despite extensive searches through official OpenTelemetry documentation, semantic convention registries, and specification documents, no evidence exists of an official llm.* namespace for semantic conventions[1][2][3][4]. The llm.* attributes mentioned by Gemini appear to be:

  • Legacy conventions from early community projects like Traceloop/OpenLLMetry[5]
  • Custom attributes used by specific vendors before official standardization
  • Confusion with provider-specific implementations

4. Development Status But Official (Status: Verified)

The Generative AI semantic conventions are marked as "Development" status[1][3] but are officially documented and widely adopted. This development status indicates:

  • Conventions are stable enough for production use
  • Breaking changes may still occur before reaching "Stable" status
  • Active evolution based on community feedback
  • Official maintenance by OpenTelemetry working groups

5. Wide Community Adoption (Status: Verified)

Multiple authoritative sources confirm gen_ai.* usage across the ecosystem:

  • LangSmith: Documents gen_ai.system, gen_ai.request.model, gen_ai.operation.name[6]
  • Spring AI: References gen_ai.* conventions in observability documentation[1]
  • AWS CloudWatch: Uses gen_ai.* attributes for GenerativeAI monitoring[1]
  • Gentrace: Implements OpenTelemetry GenAI conventions with gen_ai.* namespace[7]

Implementation Guidance for Python Developers

Correct Attribute Usage

from opentelemetry import trace
from opentelemetry.trace import Status, StatusCode

# Initialize tracer
tracer = trace.get_tracer(__name__)

# Create span with correct gen_ai attributes
with tracer.start_as_current_span("chat gpt-4") as span:
    # Required attributes
    span.set_attribute("gen_ai.operation.name", "chat")
    span.set_attribute("gen_ai.system", "openai")
    span.set_attribute("gen_ai.request.model", "gpt-4")
    
    # Recommended attributes  
    span.set_attribute("gen_ai.request.max_tokens", 150)
    span.set_attribute("gen_ai.request.temperature", 0.7)
    
    # Response attributes (after API call)
    span.set_attribute("gen_ai.response.id", "chatcmpl-123")
    span.set_attribute("gen_ai.response.model", "gpt-4-0613")
    span.set_attribute("gen_ai.usage.input_tokens", 25)
    span.set_attribute("gen_ai.usage.output_tokens", 98)

Migration from Legacy Attributes

If using deprecated attributes, migrate as follows:

# ❌ DEPRECATED - Do not use
# span.set_attribute("gen_ai.usage.prompt_tokens", 25)
# span.set_attribute("gen_ai.usage.completion_tokens", 98)

# ✅ CORRECT - Current official attributes  
span.set_attribute("gen_ai.usage.input_tokens", 25)
span.set_attribute("gen_ai.usage.output_tokens", 98)

Event-Based Content Capture

For capturing detailed prompt and completion data, use events rather than span attributes[8]:

# Add events for detailed content (opt-in basis)
span.add_event("gen_ai.user.message", {
    "content": "What is the capital of France?"
})

span.add_event("gen_ai.assistant.message", {
    "content": "The capital of France is Paris."
})

Key Recommendations

  1. Use gen_ai.* namespace exclusively - This is the current official standard
  2. Avoid llm.* attributes - No evidence of official support in OpenTelemetry specifications
  3. Migrate deprecated token attributes - Use input_tokens/output_tokens instead of prompt_tokens/completion_tokens
  4. Follow development status guidance - Expect potential evolution but current conventions are production-ready
  5. Leverage community libraries - Many frameworks already implement correct gen_ai.* conventions

Conclusion

The disagreement stems from Gemini 2.5 Pro referencing outdated or non-existent specifications. The authoritative sources—OpenTelemetry's official documentation, semantic convention registries, and widespread community adoption—clearly establish gen_ai.* as the current standard namespace. Organizations implementing OpenTelemetry for AI observability should follow o3-Pro's guidance and use the officially documented gen_ai.* semantic conventions.

[1] https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/ [2] https://opentelemetry.io/docs/specs/semconv/ [3] https://opentelemetry.io/docs/specs/semconv/gen-ai/ [4] https://opentelemetry.io/docs/specs/semconv/registry/attributes/ [5] https://www.traceloop.com/docs/openllmetry/contributing/semantic-conventions [6] https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry [7] https://gentrace.ai/docs/opentelemetry/api-reference/traces [8] https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-events/ [9] https://opentelemetry.io/blog/2024/otel-generative-ai/ [10] https://grafana.com/blog/2025/06/06/database-observability-how-opentelemetry-semantic-conventions-improve-consistency-across-signals/ [11] https://pypi.org/project/opentelemetry-semantic-conventions-ai/ [12] https://opentelemetry.io/docs/specs/semconv/general/attributes/ [13] https://opentelemetry.io/docs/concepts/semantic-conventions/ [14] https://opentelemetry.io/docs/specs/otel/ [15] https://github.com/open-telemetry/semantic-conventions/issues/327 [16] https://cloudnativenow.com/features/opentelemetry-is-fundamental-to-cloud-and-ai-native-developers/ [17] https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md [18] https://arize.com/blog/the-role-of-opentelemetry-in-llm-observability/ [19] https://www.elastic.co/observability-labs/blog/the-next-evolution-of-observability-unifying-data-with-opentelemetry-and-generative-ai [20] https://chronosphere.io/learn/top-3-opentelemetry-attribute-naming-best-practices/ [21] https://github.com/open-telemetry/semantic-conventions/releases [22] https://opentelemetry.io/blog/2025/ [23] https://opentelemetry.io/docs/specs/semconv/general/naming/ [24] https://opentelemetry.io/docs/specs/semconv/non-normative/http-migration/ [25] https://docs.agenta.ai/observability/otel-semconv [26] https://opentelemetry.io/docs/specs/semconv/general/semantic-convention-groups/ [27] https://github.com/open-telemetry/semantic-conventions/issues/51 [28] https://opentelemetry.io/blog/2023/http-conventions-declared-stable/ [29] https://github.com/open-telemetry/semantic-conventions/issues/2112 [30] https://opentelemetry.io/docs/specs/otel/versioning-and-stability/ [31] https://betterstack.com/community/guides/observability/opentelemetry-semantic-conventions/ [32] https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-configuration [33] https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-metrics/ [34] https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metrics.md [35] https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/ [36] https://opentelemetry.io/blog/2025/stabilizing-rpc-conventions/ [37] https://github.com/openlit/openlit/issues/342 [38] https://community.openai.com/t/why-was-max-tokens-changed-to-max-completion-tokens/938077 [39] https://community.dynatrace.com/t5/AI-Observability/OpenLLMetry-semantic-conventions-are-now-part-of-OpenTelemetry/m-p/267984 [40] https://docs.vllm.ai/en/v0.8.2/design/v1/metrics.html [41] https://opentelemetry.io/docs/specs/semconv/gen-ai/openai/ [42] https://pkg.go.dev/go.opentelemetry.io/collector/semconv/v1.26.0 [43] https://langfuse.com/docs/opentelemetry/example-openlit [44] https://langfuse.com/docs/opentelemetry/example-python-sdk [45] https://langfuse.com/docs/opentelemetry/get-started [46] https://opentelemetry.io/ecosystem/registry/ [47] https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-agent-spans/ [48] https://javadoc.io/doc/io.opentelemetry/opentelemetry-api/0.13.1/deprecated-list.html [49] https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/gen-ai-spans.md [50] https://www.npmjs.com/package/@opentelemetry/semantic-conventions [51] https://help.openai.com/en/articles/7127987-what-is-the-difference-between-prompt-tokens-and-completion-tokens [52] https://www.npmjs.com/package/@opentelemetry/semantic-conventions/v/1.27.0 [53] https://www.dynatrace.com/news/blog/opentelemetry-trends-2025/ [54] https://community.openai.com/t/obtaining-and-displaying-token-usage-on-web-page/555791 [55] https://docs.honeycomb.io/troubleshoot/product-lifecycle/recommended-migrations/migrate-to-opentelemetry-semantic-conventions/compatibility/ [56] https://github.com/open-telemetry/semantic-conventions/blob/main/docs/attributes-registry/gen-ai.md [57] https://github.com/open-telemetry/semantic-conventions-java/releases [58] https://opentelemetry.io/docs/specs/semconv/gen-ai/azure-ai-inference/ [59] https://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions/8727 [60] https://github.com/open-telemetry/opentelemetry-js/releases [61] https://hex.pm/packages/opentelemetry_semantic_conventions/1.27.0 [62] https://github.com/open-telemetry/semantic-conventions [63] https://opentelemetry.io/docs/specs/ [64] https://opentelemetry.io/docs/specs/semconv/general/metrics/ [65] https://opentelemetry.io/blog/2025/otel-weaver/ [66] https://opentelemetry.io/docs/specs/semconv/non-normative/how-to-write-conventions/resource-and-entities/ [67] https://langfuse.com/blog/2024-10-opentelemetry-for-llm-observability


Fact Checker Researcher 2

OpenTelemetry Semantic Conventions for AI Agents: GenAI vs. LLM (Fact-Check & Implementation Guide)

Overview of the Disagreement

What’s the issue? Two answers gave conflicting guidance on how to instrument AI agent code with OpenTelemetry (OTel), particularly about the naming of semantic attributes for generative AI. One answer (Gemini) claimed the official OTel attributes use an llm.* prefix (e.g. llm.request.model), whereas the other (o3-Pro) insisted the current standard uses gen_ai.* (e.g. gen_ai.request.model). Both agree that older token-count attribute names (prompt_tokens, completion_tokens) are deprecated, but they disagree on the correct replacements (llm.usage.* vs gen_ai.usage.*). Why it matters: Using the wrong attribute names means your traces won’t align with the OTel semantic conventions, breaking interoperability. Let’s fact-check each claim against current authoritative sources and clarify how to correctly instrument AI agent code in Python as of July 2025.

Official OpenTelemetry Conventions: gen_ai.* is Current (Not llm.*)

OTel’s Generative AI semantic conventions – as documented on the official OpenTelemetry spec site – use the prefix gen_ai., not llm.. For example, the spec defines gen_ai.request.model as “The name of the GenAI model a request is being made to.”

raw.githubusercontent.com

. Similarly, the provider (vendor) is recorded as gen_ai.system (e.g. "openai" or "anthropic")

raw.githubusercontent.com

. All of these attributes are currently labeled with Status: Development on the OTel site, indicating they are experimental but officially in use

raw.githubusercontent.com

raw.githubusercontent.com

. There is no mention of an llm.* attribute namespace in the official spec – searching the OTel spec for “llm.” yields no results

opentelemetry.io

. In fact, the OTel project explicitly warns: “The semantic conventions for GenAI and LLM are currently in development.” – implying the conventions are defined (under gen_ai.*) but not yet final/stable

opentelemetry.io

. Gemini’s claim that a stable v1.40 spec “merged under llm.*” appears to be incorrect or outdated. It’s possible this confusion arises from early proposals or vendor-specific conventions. Notably, some community-driven efforts (like Traceloop’s “OpenLLMetry” and a Microsoft Promptflow internal spec) did use llm. prefixes for certain fields, but these are not the official OTel spec:

  • Traceloop OpenLLMetry (pre-standardization): In their draft conventions, most attributes use gen_ai.* (matching the emerging standard), but a few use llm.* (e.g. llm.request.type, llm.usage.total_tokens) as experimental extensions
  • traceloop.com
  • traceloop.com
  • . Traceloop’s docs note they are leading the OTel working group to standardize these, and indeed OTel’s result favored the gen_ai naming for the core attributes
  • traceloop.com
  • traceloop.com
  • .
  • Microsoft’s Promptflow: In Promptflow’s telemetry, Microsoft initially used some llm.* keys internally (like llm.usage.total_tokens, llm.response.model)
  • GitHub
  • . However, their documentation explicitly states: “OpenTelemetry currently defines several LLM-related span attributes and events as semantic conventions. We plan to align with these conventions in the future.” and directs readers to the OTel GenAI spec for reference
  • GitHub
  • . In other words, Microsoft acknowledges the official conventions are the GenAI (gen_ai.*) ones and plans to adopt them.

Current industry practice aligns with gen_ai.* as the standard for OTel attributes in AI/LLM observability:

  • OpenTelemetry’s own Python instrumentation for OpenAI uses gen_ai.* attributes (as we’ll see below). A December 2024 OTel blog by the spec authors confirms that semantic conventions for generative AI were defined (and a Python auto-instrumentation was released), with no hint of an llm. prefix
  • opentelemetry.io
  • opentelemetry.io
  • .
  • LangSmith/LangChain’s OTel integration sets attributes like gen_ai.system, gen_ai.request.model, etc., and only uses an llm. key for the request type because that particular attribute (gen_ai.operation.name) wasn’t set directly in their example code
  • docs.smith.langchain.com
  • . The LangSmith docs map gen_ai.operation.name to run types (like “chat” or “completion”)
  • docs.smith.langchain.com
  • docs.smith.langchain.com
  • . In their code snippet, they indeed manually set span.set_attribute("gen_ai.system", "OpenAI") and span.set_attribute("gen_ai.request.model", model) for an OpenAI call
  • docs.smith.langchain.com
  • docs.smith.langchain.com
  • . Nowhere do they set a model name under llm.* – confirming that gen_ai.request.model is the expected key.
  • Other observability tools (Dynatrace, Observe, etc.) also recognize gen_ai.* attributes. For example, Observe Inc.’s docs list gen_ai.system and gen_ai.usage.prompt_tokens/completion_tokens as expected fields, alongside a few custom llm.* fields like llm.request.model which they accept
  • docs.observeinc.com
  • docs.observeinc.com
  • . This mix suggests backward compatibility, but critically they do ingest gen_ai.* for tokens and system. Dynatrace similarly documents token counts under gen_ai.usage.* and refers to llm.request.type for request type
  • docs.dynatrace.com
  • , reflecting the emerging standard plus some legacy.

Bottom line: As of mid-2025, the authoritative OpenTelemetry convention uses gen_ai.* for generative AI traces. The llm.* prefix appears only in some unofficial or older contexts and is not the official schema. A user instrumenting code should use gen_ai.* keys to remain compatible with OTel’s specification and upcoming stable releases

raw.githubusercontent.com

traceloop.com

. Instrumenting with llm.request.model or llm.usage.* would be incorrect for standard OTel – those would not be recognized by tools expecting the official semantic attributes.

Deprecated Token Attributes: Use gen_ai.usage.input_tokens / output_tokens

Both answers noted that OpenTelemetry changed the token count attribute names, but Gemini’s version used the wrong namespace. Here are the facts:

  • Original names (now deprecated): gen_ai.usage.prompt_tokens and gen_ai.usage.completion_tokens were the earlier attribute names for the number of input and output tokens. The OTel spec explicitly marks these as deprecated
  • opentelemetry.io
  • .
  • Current names: The replacements are gen_ai.usage.input_tokens (for prompt/input tokens) and gen_ai.usage.output_tokens (for completion/output tokens). The official spec’s Deprecated Attributes section says: “Deprecated, use gen_ai.usage.output_tokens instead… Replaced by gen_ai.usage.input_tokens”
  • opentelemetry.io
  • . In short, prompt_tokens → input_tokens and completion_tokens → output_tokens under the same gen_ai.usage prefix.
  • Gemini’s mistake: Gemini claimed the new names would be llm.usage.input_tokens and llm.usage.output_tokens. No official source backs this. The deprecation notice and the current OTel attribute registry both use the gen_ai.usage.* prefix
  • opentelemetry.io
  • . For instance, the live spec defines gen_ai.usage.input_tokens and gen_ai.usage.output_tokens as the recommended attributes for token counts
  • raw.githubusercontent.com
  • . Major observability frameworks follow this: LangSmith’s mapping shows gen_ai.usage.input_tokens / output_tokens as the standard fields, and labels gen_ai.usage.prompt_tokens / completion_tokens as “deprecated” in their own docs
  • docs.smith.langchain.com
  • docs.smith.langchain.com
  • . This confirms the transition within the gen_ai namespace.

Therefore, o3-Pro was correct: the proper replacements use the gen_ai.usage.* naming. If you instrument your code today, use gen_ai.usage.input_tokens and gen_ai.usage.output_tokens for token counts

opentelemetry.io

. Using an llm.usage.* key would not conform to the official spec (and likely be ignored by standard tooling unless manually mapped).

Why the Confusion? (Context of LLM vs GenAI**)**

It’s worth noting why “LLM” even comes up if the spec chose gen_ai.. The term LLM (Large Language Model) is common, and early discussions often referenced “LLM observability.” In fact, the OTel working group was informally called the LLM Semantic Conventions group

traceloop.com

. However, to accommodate generative AI beyond just text language models (like image generation, etc.), the spec writers went with a broader gen_ai prefix. This covers any “Generative AI” system (text, image, chat, code, etc.) while still including LLMs as a subset. So, think of gen_ai.* as the general category under which LLM-specific data falls. The spec even includes fields like gen_ai.output.type (to denote if the output is text, image, JSON, etc.) to handle non-text cases

opentelemetry.io

opentelemetry.io

. The llm.* attributes you see in some places are either:

  • Additional contextual fields not (yet) in the core spec. For example, Traceloop’s convention listed llm.request.type (the type of request like “chat” vs “completion”) and llm.request.functions (for function-call definitions) as custom extensions
  • traceloop.com
  • . These were proposals to enrich data but aren’t part of the gen_ai semantic schema. Some ended up being handled differently (e.g. OTel uses gen_ai.operation.name with values like "chat" or "embeddings"
  • docs.smith.langchain.com
  • docs.smith.langchain.com
  • ).
  • Vendor or framework-specific aliases. As seen with Observe Inc. and Promptflow, certain vendors use llm.* internally or in their UI, but they translate or plan to translate to the standard. For example, Observe’s backend will accept llm.request.model but under the hood it knows it’s the model name of an LLM; they also capture gen_ai.system and token counts
  • docs.observeinc.com
  • docs.observeinc.com
  • . This dual support is likely temporary. You, as an instrumentor, should stick to the official gen_ai keys so that your telemetry is immediately understood by any OTel-compatible backend (now and future).

In summary, neither Gemini’s nor o3-Pro’s answers were describing imaginary conventions – but Gemini cited an outdated/unofficial naming, whereas o3-Pro cited the actual current spec. The OTel community has standardized on gen_ai.* for semantic attributes, and that is what you should use to be “correct and current.”

Implementation Guide: Instrumenting AI Agents with OpenTelemetry (Python)

Now that we’ve established the correct semantic conventions, here’s how to instrument your AI agent or LLM-powered application using OTel in Python. We’ll cover both manual instrumentation (for custom agent logic) and mention available auto-instrumentation libraries for OpenAI and Google APIs. We’ll also touch on integration with the OpenAI Agents SDK and Google’s Agent Development Kit (ADK).

1. Manual Instrumentation for Custom AI Agent Code

If you have a bespoke agent framework (calling models like OpenAI GPT-4, Anthropic Claude, Google PaLM/Gemini, etc. via their Python APIs or HTTP calls), you can use OpenTelemetry’s API to create spans and add the semantic attributes:

  • Set up an OTel tracer (usually one-time setup in your app): initialize an OTel TracerProvider, add an OTLP exporter (or console exporter for testing), and get a tracer instance for your module. For example:
  • python
  • Copy
  • Edit
  • from opentelemetry import trace from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor, OTLPSpanExporter trace.set_tracer_provider(TracerProvider()) exporter = OTLPSpanExporter(endpoint="https://otel.your-backend.com/v1/traces", headers={"api-key": "XYZ"}) trace.get_tracer_provider().add_span_processor(BatchSpanProcessor(exporter)) tracer = trace.get_tracer(__name__)
  • Wrap model API calls in spans: For each call to an AI model or significant agent action, start a new span. For instance, if your agent calls OpenAI’s chat completion API, you might do:
  • python
  • Copy
  • Edit
  • with tracer.start_as_current_span("OpenAI ChatCompletion") as span: # (Call the OpenAI API here) response = openai.ChatCompletion.create(model="gpt-4", messages=[...]) # Add semantic attributes: span.set_attribute("gen_ai.system", "openai") span.set_attribute("gen_ai.request.model", "gpt-4") span.set_attribute("gen_ai.operation.name", "chat") # type of operation # You can log prompt and response content as events or attributes (be mindful of size/PII) for i, msg in enumerate(user_messages): span.set_attribute(f"gen_ai.prompt.{i}.role", msg["role"]) span.set_attribute(f"gen_ai.prompt.{i}.content", msg["content"]) # Assuming the response is in OpenAI format: span.set_attribute("gen_ai.response.model", response.model) # model that produced the answer span.set_attribute("gen_ai.completion.0.role", "assistant") span.set_attribute("gen_ai.completion.0.content", response.choices[0].message.content) # Token counts: span.set_attribute("gen_ai.usage.input_tokens", response.usage.prompt_tokens) span.set_attribute("gen_ai.usage.output_tokens", response.usage.completion_tokens)
    In this snippet:
    • We named the span "OpenAI ChatCompletion" (span names are free-form but should be meaningful).
    • We set gen_ai.system to "openai"
    • raw.githubusercontent.com
    • and gen_ai.request.model to the model ID
    • raw.githubusercontent.com
    • . If this were Anthropic, you’d use "anthropic" for system and the Claude model name accordingly, etc.
    • We set gen_ai.operation.name to "chat" (since this is a chat model invocation) to follow the well-known values defined by the spec
    • raw.githubusercontent.com
    • raw.githubusercontent.com
    • . Other possible values are "text_completion", "embeddings", "execute_tool", etc., per OTel’s known set
    • raw.githubusercontent.com
    • raw.githubusercontent.com
    • . (This corresponds to what some libraries call llm.request.type – e.g., LangSmith sets "chat" as the type
    • docs.smith.langchain.com
    • – but here we use the standard gen_ai.operation.name.)
    • We iterate through prompt messages and log their role/content via the indexed attribute scheme (gen_ai.prompt.0.content, gen_ai.prompt.0.role, ...). The OTel convention allows capturing multiple messages in structured form this way
    • docs.smith.langchain.com
    • docs.observeinc.com
    • .
    • We record the response model and first assistant message similarly.
    • Important: We use gen_ai.usage.input_tokens and gen_ai.usage.output_tokens for token counts, not the deprecated names
    • opentelemetry.io
    • . In the example, response.usage.prompt_tokens is mapped to gen_ai.usage.input_tokens, and completion_tokens to gen_ai.usage.output_tokens. We do not set any llm.usage.* attribute – those would be non-standard.
  • This manual approach follows the same pattern shown in LangChain’s documentation (which manually set gen_ai.* attributes around an OpenAI call)
  • docs.smith.langchain.com
  • docs.smith.langchain.com
  • . After running, you’d see these attributes in the exported spans (e.g., in Jaeger, Zipkin, or your tracing backend).
  • Instrument tool/agent actions: If your AI agent invokes tools or has intermediate reasoning steps, you can create sub-spans for those as well, and use appropriate attributes. For example, if an agent uses a calculator tool, you might start a span "Tool: Calculator" and tag it with gen_ai.tool.name = "Calculator" and gen_ai.tool.type = "function" (assuming it’s a function-call type tool)
  • opentelemetry.io
  • docs.smith.langchain.com
  • . The GenAI conventions include attributes for agent/tool operations as well, such as gen_ai.tool.* and events for tool invocation – but those are more advanced (and currently also experimental). A simple approach is to mark tool spans with gen_ai.operation.name = "execute_tool"
  • raw.githubusercontent.com
  • and gen_ai.tool.name/type if desired.
  • Error handling: If a model call fails or returns an error, set the span’s status and consider using error.type (a standard attribute) or exception events as per normal OTel error semantic conventions
  • raw.githubusercontent.com
  • . The GenAI spec doesn’t introduce new error attributes except to suggest mapping provider errors to error.type if possible
  • raw.githubusercontent.com
  • .

By following this approach, you ensure your custom agent’s tracing data adheres to OTel’s semantic schema. Any OTel-compatible analysis tool or backend will recognize your spans as “GenAI” operations, and you’ll be able to leverage vendor-agnostic monitoring (e.g., seeing model names, token counts, etc., across different AI providers in one view).

2. Auto-Instrumentation Libraries for Model APIs

Manual instrumentation gives full control but requires more code. The OTel community has provided instrumentation libraries that can hook into popular AI model SDKs to automatically generate spans and attributes:

  • OpenTelemetry Instrumentation for OpenAI: The package opentelemetry-instrumentation-openai (and a newer ...-openai-v2) can automatically trace the OpenAI Python SDK calls
  • pypi.org
  • . By installing and activating this, every call to OpenAI’s Completion.create, ChatCompletion.create, etc., will emit spans with the appropriate gen_ai.* attributes set (model, system=openai, tokens, etc.). For example, after pip install opentelemetry-instrumentation-openai, you can do:
  • python
  • Copy
  • Edit
  • from opentelemetry.instrumentation.openai import OpenAIInstrumentor OpenAIInstrumentor().instrument() # this patches the openai library
    Then any OpenAI API call will produce spans automatically. This library is built to comply with the semantic conventions (using gen_ai.request.model, gen_ai.usage.input_tokens, etc.). The OpenTelemetry blog post mentioned the first release of this instrumentation in late 2024
  • opentelemetry.io
  • opentelemetry.io
  • , and it’s maintained actively. Using it can save you from writing the boilerplate shown in the manual example – you’d simply see spans named like "OpenAI ChatCompletion" with all the attributes already attached.
  • OpenTelemetry Instrumentation for Google Generative AI (PaLM/Gemini): Likewise, there is an opentelemetry-instrumentation-google-generativeai package (released mid-2025)
  • pypi.org
  • . This auto-instruments Google’s official generative AI SDK (which includes PaLM 2 and likely Gemini models). For example:
  • python
  • Copy
  • Edit
  • from opentelemetry.instrumentation.google_generativeai import GoogleGenerativeAiInstrumentor GoogleGenerativeAiInstrumentor().instrument()
    After this, if you call Google’s API (for instance using the google.generativeai library to call a PaLM model or chat model), spans will be created automatically. According to its documentation, it “allows tracing Google Gemini prompts and completions sent with the official Google Generative AI library.”
  • pypi.org
  • . The instrumentation likely sets gen_ai.system = "google" (or "vertexai"), the model name, and token usage, etc. under the hood. (If using Vertex AI via REST or a different client, you might need to instrument manually or ensure your HTTP calls are traced by an HTTP instrumentation.)

These auto-instrumentors are built by OpenTelemetry contributors (often in collaboration with vendors or projects like OpenLIT/Traceloop). They ensure standard attribute names are used. In fact, maintainers of these packages are active in the semantic convention discussions – for instance, the Google instrumentation is maintained by contributors who also worked on OpenLIT (Gal K. and Nir G.)

pypi.org

pypi.org

, so it aligns with the spec. By using them, you reduce the risk of naming errors (they won’t suddenly use a wrong prefix; they stick to gen_ai.*). Tip: When using auto-instrumentation, read the docs for any configuration. For privacy, they often allow disabling logging of prompt/response content. The Google instrumentor notes an env var TRACELOOP_TRACE_CONTENT=false to avoid recording full prompt text

pypi.org

pypi.org

. You can also control sampling, etc., as with any OTel setup.

3. Integrating OTel with the OpenAI Agents SDK

OpenAI’s Agents SDK (a new toolkit for building multi-step, tool-using agents with OpenAI models) is quite fresh (circa 2025). It provides an Agent, Tool, Runner abstraction for creating agentic workflows. While the SDK itself may not have built-in OpenTelemetry hooks as of now, you can integrate tracing in a couple of ways:

  • Via LangSmith (LangChain’s observability toolkit): LangSmith has an integration specifically for the OpenAI Agents SDK. They provide OpenAIAgentsTracingProcessor which, when attached via set_trace_processors(...), will capture the agent’s execution flow and send it to LangSmith (which itself can fan out to OTel)
  • docs.smith.langchain.com
  • docs.smith.langchain.com
  • . Under the hood, this likely uses OpenTelemetry to create spans for each agent action, tool call, etc., and attaches the gen_ai.* attributes. This is a higher-level integration – if you’re already using LangSmith for tracing, it’s a convenient route. For example, the LangSmith guide shows:
  • python
  • Copy
  • Edit
  • from agents import Agent, Runner, set_trace_processors from langsmith.wrappers import OpenAIAgentsTracingProcessor set_trace_processors([OpenAIAgentsTracingProcessor()]) # ... define your Agent and run it ... result = await Runner.run(agent, input_prompt)
    With this, every step of the agent (decisions, tool uses, model invocations) is automatically traced to LangSmith (which you can configure to export to your own backend as well)
  • docs.smith.langchain.com
  • .
  • Manual instrumentation of Agents SDK: If you prefer a direct OTel approach (without LangSmith), you can instrument the Agent SDK calls similarly to manual instrumentation above. For instance, wrap the Runner.run() invocation in a span. The Agent SDK likely uses OpenAI’s API internally – since you can patch OpenAI’s library with OpenAIInstrumentor, a lot of the heavy lifting (model call spans) might happen automatically. You might still want to trace higher-level agent events. For example, each time the agent produces an intermediate action (an Event in the ADK), you could record an OTel event on the span or a child span. This is more involved because the SDK is async and event-driven. Until OpenAI provides native tracing hooks, using the LangSmith processor or carefully adding spans in callback handlers (if the SDK allows) are practical approaches.
  • Attribute usage: When tracing an agent, you’ll use similar attributes: the model calls will have gen_ai.* attributes via the OpenAI instrumentation. For agent-level spans, you might set gen_ai.operation.name = "invoke_agent" for the overall agent invocation
  • raw.githubusercontent.com
  • , and tag the agent’s name or role (perhaps via name of span or a custom attribute). If the agent uses tools, those might be child spans with gen_ai.operation.name = "execute_tool" and gen_ai.tool.name, etc.
  • raw.githubusercontent.com
  • . Ensure consistency with how the spec expects agent spans vs model spans (the spec has a concept of Agent spans separate from Model spans, but those distinctions are still in development; use descriptive span names and the attributes we have for now).

In short, for the OpenAI Agents SDK: using the provided LangSmith integration is the quickest path to correct instrumentation (since it was likely developed in coordination with OTel semantic conventions). Otherwise, treat the agent’s components like any workflow: trace the model calls (using auto-instrumentation) and add spans for planning/decision steps as needed, using the GenAI semantic attributes where applicable.

4. Instrumenting Google’s Agent Development Kit (ADK)

Google’s ADK (Agent Developer Kit) is a framework to build multi-agent systems (with Google’s models like Gemini) and an Agent-to-Agent (A2A) communication protocol. The ADK is open-source and fairly new. Unlike OpenAI’s SDK, it doesn’t yet have an established observability integration. In fact, an analysis of ADK noted that “clear support for open observability standards (like OpenTelemetry) seemed less prominent in early reviews.”

medium.com

. So, you will likely need to instrument it manually:

  • Identify key points to trace: In a Google ADK agent, you have a Runner orchestrating agent logic, and agents yield Event objects (which could correspond to tool calls, messages, etc.)
  • medium.com
  • medium.com
  • . You’d want to start a span when an agent is invoked to solve a task, and perhaps sub-spans for each tool invocation or significant subtask. For example, if Agent A calls Agent B via the A2A protocol (a “tool” call in ADK terms), you could create a span around that external call.
  • Use OTel with async if needed: ADK is async-heavy, so utilize OpenTelemetry’s async tracing support (the context propagation should handle asyncio if you use the context managers as shown or instrumentors). You might do:
  • python
  • Copy
  • Edit
  • async with tracer.start_as_current_span("AgentAlpha task") as span: span.set_attribute("gen_ai.operation.name", "invoke_agent") span.set_attribute("gen_ai.system", "google") span.set_attribute("gen_ai.agent.name", "AgentAlpha") # made-up attribute (no official key for agent name yet) # AgentAlpha does work, yielding events: result = await Runner.run(agent_alpha, user_request) # Perhaps log result or outcome span.set_attribute("gen_ai.completion.0.content", result.final_output)
    When AgentAlpha calls a tool or another agent (AgentBeta) via A2A, the ADK’s Runner might internally call an API. If that API is the Google PaLM model or Vertex AI, the Google instrumentation can catch the model call. But if it’s an HTTP call to another agent’s endpoint (A2A uses JSON-RPC over HTTP), you could rely on OpenTelemetry’s HTTP instrumentation (if you have requests or httpx auto-instrumented) to at least trace the HTTP call. You could then manually tag that span as an agent-to-agent call (maybe span.set_attribute("gen_ai.operation.name", "agent_interaction") or similar custom tag, since no standard attribute exists for A2A specifically).
  • Use custom attributes if needed: Since the OTel spec doesn’t yet define an agent.name or a clear way to tag multi-agent context, you might use your own temporary attributes (e.g., agent.name, or reuse peer.service to indicate the other agent’s name in an A2A call). Keep custom tags prefixed (maybe app.agent_name) to avoid collision. The spec does have gen_ai.conversation.id for conversation/session tracking, which you could use if there’s a session ID across messages
  • raw.githubusercontent.com
  • .
  • Future integration: Keep an eye out for updates – the ADK is open-source, so the community might add OTel support. Given Google’s involvement in OTel, we might see an official instrumentation or at least guidelines in the coming months. Until then, approach ADK like any Python app: manual spans around its high-level operations, and rely on lower-level instrumentations (for HTTP, database, or model calls) where applicable.

5. Putting It Together – Example

Let’s imagine a complete scenario combining these pieces: You have a custom agent that uses OpenAI for some steps and calls a Google Gemini model for others (maybe using Google’s library), and it uses a couple of tools (like web search). You also integrate OpenAI’s Agents SDK for one complex chain.

  • You install and enable both OpenAI and Google OTel instrumentations:
  • python
  • Copy
  • Edit
  • pip install opentelemetry-instrumentation-openai opentelemetry-instrumentation-google-generativeai
  • python
  • Copy
  • Edit
  • from opentelemetry.instrumentation.openai import OpenAIInstrumentor from opentelemetry.instrumentation.google_generativeai import GoogleGenerativeAiInstrumentor OpenAIInstrumentor().instrument() GoogleGenerativeAiInstrumentor().instrument()
  • You start a trace when a user query comes in to your agent system:
  • python
  • Copy
  • Edit
  • with tracer.start_as_current_span("User request workflow") as span: span.set_attribute("gen_ai.operation.name", "invoke_agent") span.set_attribute("gen_ai.system", "_OTHER") # your orchestrator is not a GenAI vendor, so use _OTHER as per spec:contentReference[oaicite:74]{index=74} span.set_attribute("external.user_id", user_id) # custom attribute for user # Step 1: Agent uses OpenAI function-call to parse the query: response = openai.ChatCompletion.create(...functions=..., ...) # (The OpenAI instrumentor will create a subspan with gen_ai.system="openai", gen_ai.request.model, etc., plus token usage) # Step 2: Our agent (via OpenAI Agents SDK perhaps) decides to call a tool or Google model: result = await Runner.run(openai_agent, intermediate_result) # (Using LangSmith’s OpenAIAgentsTracingProcessor would emit spans for each tool and model call inside this) # Step 3: Suppose the agent calls a Google Gemini model for a different task: gemini_answer = google.generativeai.generate_text(model="models/text-bison-001", prompt="...") # (Google instrumentor auto-traces this with gen_ai.system="google", gen_ai.request.model="text-bison-001", etc.) # Step 4: Agent uses a custom web search tool: with tracer.start_as_current_span("Tool: WebSearch") as tool_span: tool_span.set_attribute("gen_ai.operation.name", "execute_tool") tool_span.set_attribute("gen_ai.tool.name", "WebSearch") tool_span.set_attribute("gen_ai.tool.type", "extension") # assume extension type tool:contentReference[oaicite:75]{index=75} results = call_web_search_api(query) # (If HTTP instrumentation is enabled, the HTTP call may be auto-traced too) # ... agent composes final answer ... span.set_attribute("gen_ai.usage.input_tokens", total_prompt_tokens_used) span.set_attribute("gen_ai.usage.output_tokens", total_response_tokens_used) span.set_attribute("gen_ai.response.model", "gpt-4") # perhaps the final answer was mainly from GPT-4
  • After this completes, you’d have a trace with a hierarchy of spans: the top-level “User request workflow” span, inside it an OpenAI model span (from auto-instrumentation), an agent chain span (from the Agents SDK integration or manual instrumentation), a Google model span, a tool span for web search, etc. Each carries the appropriate attributes (gen_ai.* on the model spans, and some on the agent/tool spans). Token counts are recorded at each model call and maybe aggregated at the end.

The result is a rich trace that can be viewed in a tracing UI to understand the agent’s behavior: you can see which model (GPT-4, PaLM, etc.) was called with how many tokens

docs.smith.langchain.com

, which tools were used, and how long each step took. This is precisely the observability goal OTel’s GenAI conventions aim for

opentelemetry.io

opentelemetry.io

. Important: Always verify that the attributes you set in custom spans match the official keys (spelling and hierarchy). Typos or wrong namespace (like using llm.) will result in data that doesn’t merge with the rest. For example, using genai.request.model (missing underscore) or llm.request.model would not be recognized – it needs to be gen_ai.request.model

raw.githubusercontent.com

.

6. Summary of Best Practices

  • Use gen_ai.* attributes for all Generative AI specific data. This includes model identification, parameters, and usage metrics. For now, treat gen_ai.* attributes as experimental but de facto standard. Keep an eye on OTel spec releases – when they declare these stable, the prefix is very likely to remain gen_ai (there’s no proposal to suddenly switch to llm in naming).

  • Update deprecated fields: If you have older code using prompt_tokens/completion_tokens, rename those to input_tokens/output_tokens under gen_ai.usage.

  • opentelemetry.io

  • . Similarly, if you had been using gen_ai.prompt and gen_ai.completion as string attributes carrying the full text, note that OTel now prefers capturing messages as structured events or indexed fields (and in fact gen_ai.prompt as a single attribute is deprecated with no direct replacement – the content should go in events or gen_ai.prompt.{n}.content)

  • opentelemetry.io

  • Leverage auto-instrumentation for known libraries (OpenAI, etc.) to reduce mistakes. These libraries are kept in sync with spec changes. For instance, when the token attribute deprecation happened, instrumentation libraries were updated to emit input_tokens/output_tokens. Indeed, LangSmith’s OTel mapping shows that gen_ai.usage.prompt_tokens is mapped to the new field with a note “(deprecated)”

  • docs.smith.langchain.com

  • – meaning their system would still accept it for now but prefer the new ones.

  • Be mindful of data volume and sensitivity: Tracing AI apps can produce a lot of data (long prompts, responses, many spans for many steps). Use sampling if needed (e.g., trace 1% of requests in production) and scrubbing for PII. OTel allows adding attribute limits and stripping sensitive info. For instance, you might only log prompt content in development, or log a hash of it in production. The semantic convention recommends using events for inputs/outputs and enables turning them off easily

  • opentelemetry.io

  • . The Google instrumentation’s toggle for content logging is a practical example

  • pypi.org

  • Correlate with other telemetry: Don’t forget to include common trace attributes like service.name, and resource attributes (via OTel SDK configuration) so that your AI traces integrate with the rest of your system’s telemetry. If your agent is part of a web service, for example, you’d want the web request span to be the parent of the agent span – so use OTel’s context propagation to ensure the trace is unified.

By following the above guidance, implementers can instrument their AI agent code in a way that is correct by current OpenTelemetry standards and will be robust as those conventions stabilize. You’ll avoid the pitfalls of using non-standard keys (ensuring interoperability) and be able to leverage dashboards or analysis tools built on the official semantic conventions (for example, any tool that knows how to calculate cost by looking at gen_ai.usage.input_tokens and output_tokens will immediately work with your data, whereas it would miss custom or incorrect fields).

References

  • OpenTelemetry Semantic Conventions for Generative AI (official spec docs) – defines gen_ai.* attributes (e.g. gen_ai.request.model)
  • raw.githubusercontent.com
  • raw.githubusercontent.com
  • OpenTelemetry Spec – Deprecated GenAI Attributes – shows prompt_tokens/completion_tokens deprecated in favor of gen_ai.usage.input_tokens/output_tokens
  • opentelemetry.io
  • LangSmith (LangChain) Observability Guide – example of manual OTel instrumentation with gen_ai.system, gen_ai.request.model, etc., and use of token attributes
  • docs.smith.langchain.com
  • docs.smith.langchain.com
  • Traceloop OpenLLMetry Conventions – community draft listing both gen_ai.* and some llm.* (for context, not official)
  • traceloop.com
  • traceloop.com
  • Microsoft Promptflow Telemetry Reference – uses llm.* internally but notes plan to align with OTel GenAI spec (which uses gen_ai.*)
  • GitHub
  • OpenTelemetry Blog (Dec 2024) – overview of OTel for Generative AI and introduction of OpenAI instrumentation library
  • opentelemetry.io
  • opentelemetry.io
  • PyPI: opentelemetry-instrumentation-google-generativeai – Google AI (Gemini/PaLM) auto-instrumentation (uses OTel semantic conv under the hood)
  • pypi.org
  • Observe Inc. LLM Instrumentation Docs – example of a vendor supporting gen_ai.system, gen_ai.usage.* and also showing an llm.request.model field for compatibility
  • docs.observeinc.com
  • docs.observeinc.com
  • Medium article on Google ADK vs AutoGen – notes lack of built-in OTel in Google’s ADK and the need for open observability tooling
  • medium.com

Citations
raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

Gen AI | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/

Semantic conventions for generative AI systems | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/gen-ai/

GenAI Semantic Conventions - traceloop
https://www.traceloop.com/docs/openllmetry/contributing/semantic-conventions

GenAI Semantic Conventions - traceloop
https://www.traceloop.com/docs/openllmetry/contributing/semantic-conventions

GenAI Semantic Conventions - traceloop
https://www.traceloop.com/docs/openllmetry/contributing/semantic-conventions

GenAI Semantic Conventions - traceloop
https://www.traceloop.com/docs/openllmetry/contributing/semantic-conventions

trace-span-spec-reference.md
https://github.com/microsoft/promptflow/blob/5e6c183474c0a2575bb416d18201e4f9fd562b2e/docs/reference/trace-span-spec-reference.md#L88-L96

OpenTelemetry for Generative AI | OpenTelemetry
https://opentelemetry.io/blog/2024/otel-generative-ai/

OpenTelemetry for Generative AI | OpenTelemetry
https://opentelemetry.io/blog/2024/otel-generative-ai/

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Instrumenting other languages for LLM observability - Observability Cloud documentation
https://docs.observeinc.com/en/latest/content/send-data/llm-instrumentation/others.html

Instrumenting other languages for LLM observability - Observability Cloud documentation
https://docs.observeinc.com/en/latest/content/send-data/llm-instrumentation/others.html

OpenAI — Dynatrace Docs
https://docs.dynatrace.com/docs/analyze-explore-automate/dynatrace-for-ai-observability/models-and-platforms/openai

Gen AI | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/

Gen AI | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Gen AI | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/

Gen AI | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/

GenAI Semantic Conventions - traceloop
https://www.traceloop.com/docs/openllmetry/contributing/semantic-conventions

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Instrumenting other languages for LLM observability - Observability Cloud documentation
https://docs.observeinc.com/en/latest/content/send-data/llm-instrumentation/others.html

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

Gen AI | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

opentelemetry-instrumentation-openai - PyPI
https://pypi.org/project/opentelemetry-instrumentation-openai/

OpenTelemetry for Generative AI | OpenTelemetry
https://opentelemetry.io/blog/2024/otel-generative-ai/

opentelemetry-instrumentation-google-generativeai·PyPI
https://pypi.org/project/opentelemetry-instrumentation-google-generativeai/

opentelemetry-instrumentation-google-generativeai·PyPI
https://pypi.org/project/opentelemetry-instrumentation-google-generativeai/

opentelemetry-instrumentation-google-generativeai·PyPI
https://pypi.org/project/opentelemetry-instrumentation-google-generativeai/

opentelemetry-instrumentation-google-generativeai·PyPI
https://pypi.org/project/opentelemetry-instrumentation-google-generativeai/

opentelemetry-instrumentation-google-generativeai·PyPI
https://pypi.org/project/opentelemetry-instrumentation-google-generativeai/

Trace with OpenAI Agents SDK | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_openai_agents_sdk

Trace with OpenAI Agents SDK | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_openai_agents_sdk

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

Architecting the Future: A Deep Dive into Google’s ADK and A2A for Multi-Agent Systems | by rajni singh | GenusofTechnology | Medium
https://medium.com/genusoftechnology/architecting-the-future-a-deep-dive-into-googles-adk-and-a2a-for-multi-agent-systems-5ebfbc16d714

Architecting the Future: A Deep Dive into Google’s ADK and A2A for Multi-Agent Systems | by rajni singh | GenusofTechnology | Medium
https://medium.com/genusoftechnology/architecting-the-future-a-deep-dive-into-googles-adk-and-a2a-for-multi-agent-systems-5ebfbc16d714

Architecting the Future: A Deep Dive into Google’s ADK and A2A for Multi-Agent Systems | by rajni singh | GenusofTechnology | Medium
https://medium.com/genusoftechnology/architecting-the-future-a-deep-dive-into-googles-adk-and-a2a-for-multi-agent-systems-5ebfbc16d714

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

OpenTelemetry for Generative AI | OpenTelemetry
https://opentelemetry.io/blog/2024/otel-generative-ai/

OpenTelemetry for Generative AI | OpenTelemetry
https://opentelemetry.io/blog/2024/otel-generative-ai/

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md

Gen AI | OpenTelemetry
https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/

Trace with OpenTelemetry | ️️ LangSmith
https://docs.smith.langchain.com/observability/how_to_guides/trace_with_opentelemetry

OpenTelemetry for Generative AI | OpenTelemetry
https://opentelemetry.io/blog/2024/otel-generative-ai/

raw.githubusercontent.com
https://raw.githubusercontent.com/open-telemetry/semantic-conventions/main/docs/gen-ai/gen-ai-spans.md


Fact Checker Researcher 3

Available Upon Request.