openinference-instrumentation-google-adk 0.1.4__tar.gz → 0.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openinference-instrumentation-google-adk
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: OpenInference Google ADK Instrumentation
5
5
  Project-URL: Homepage, https://github.com/Arize-ai/openinference/tree/main/python/instrumentation/openinference-instrumentation-google-adk
6
6
  Author-email: OpenInference Authors <oss@arize.com>
@@ -16,7 +16,8 @@ Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Programming Language :: Python :: 3.13
19
- Requires-Python: <3.14,>=3.9
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Requires-Python: <3.15,>=3.9
20
21
  Requires-Dist: openinference-instrumentation>=0.1.32
21
22
  Requires-Dist: openinference-semantic-conventions>=0.1.17
22
23
  Requires-Dist: opentelemetry-api
@@ -8,7 +8,7 @@ dynamic = ["version"]
8
8
  description = "OpenInference Google ADK Instrumentation"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
11
- requires-python = ">=3.9, <3.14"
11
+ requires-python = ">=3.9, <3.15"
12
12
  authors = [
13
13
  { name = "OpenInference Authors", email = "oss@arize.com" },
14
14
  ]
@@ -23,6 +23,7 @@ classifiers = [
23
23
  "Programming Language :: Python :: 3.11",
24
24
  "Programming Language :: Python :: 3.12",
25
25
  "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3.14",
26
27
  ]
27
28
  dependencies = [
28
29
  "opentelemetry-api",
@@ -144,7 +144,7 @@ class GoogleADKInstrumentor(BaseInstrumentor): # type: ignore
144
144
 
145
145
  setattr(runners, "tracer", _PassthroughTracer(tracer))
146
146
 
147
- from google.adk.agents.base_agent import (
147
+ from google.adk.agents.base_agent import ( # type: ignore[attr-defined, unused-ignore]
148
148
  tracer, # pyright: ignore[reportPrivateImportUsage]
149
149
  )
150
150
 
@@ -164,7 +164,7 @@ class GoogleADKInstrumentor(BaseInstrumentor): # type: ignore
164
164
 
165
165
  setattr(runners, "tracer", original)
166
166
 
167
- from google.adk.agents.base_agent import (
167
+ from google.adk.agents.base_agent import ( # type: ignore[attr-defined, unused-ignore]
168
168
  tracer, # pyright: ignore[reportPrivateImportUsage]
169
169
  )
170
170
 
@@ -23,7 +23,6 @@ from google.adk.agents.run_config import RunConfig
23
23
  from google.adk.events import Event
24
24
  from google.adk.models.llm_request import LlmRequest
25
25
  from google.adk.models.llm_response import LlmResponse
26
- from google.adk.telemetry import _build_llm_request_for_trace
27
26
  from google.adk.tools import BaseTool
28
27
  from google.genai import types
29
28
  from opentelemetry import context as context_api
@@ -223,7 +222,7 @@ class _TraceCallLlm(_WithTracer):
223
222
  try:
224
223
  span.set_attribute(
225
224
  SpanAttributes.INPUT_VALUE,
226
- safe_json_dumps(_build_llm_request_for_trace(llm_request)),
225
+ llm_request.model_dump_json(exclude_none=True, fallback=_default),
227
226
  )
228
227
  span.set_attribute(
229
228
  SpanAttributes.INPUT_MIME_TYPE,