trodo-python 2.10.0__tar.gz → 2.10.2__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.
- {trodo_python-2.10.0 → trodo_python-2.10.2}/PKG-INFO +1 -1
- {trodo_python-2.10.0 → trodo_python-2.10.2}/pyproject.toml +1 -1
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/__init__.py +1 -1
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/auto_instrument.py +17 -4
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo_python.egg-info/PKG-INFO +1 -1
- {trodo_python-2.10.0 → trodo_python-2.10.2}/README.md +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/setup.cfg +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_anon_distinct_id 2.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_anon_distinct_id.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_auto_instrument_fixes.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_cross_process_session.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_end_run.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_error_enrichment.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_llm_usage_cost.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_processor_methods.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_register_otel.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_start_run.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/tests/test_wrap_agent_unchanged.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/api/__init__.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/api/async_client.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/api/endpoints.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/api/http_client.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/auto/__init__.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/auto/auto_event_manager.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/client.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/managers/__init__.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/managers/group_manager.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/managers/people_manager.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/__init__.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/context.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/helpers.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/processor.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/register.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/transport.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/otel/wrap_agent.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/queue/__init__.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/queue/batch_flusher.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/queue/event_queue.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/session/__init__.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/session/server_session.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/session/session_manager.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/types.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo/user_context.py +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo_python.egg-info/SOURCES.txt +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo_python.egg-info/dependency_links.txt +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo_python.egg-info/requires.txt +0 -0
- {trodo_python-2.10.0 → trodo_python-2.10.2}/trodo_python.egg-info/top_level.txt +0 -0
|
@@ -263,11 +263,24 @@ def _register_instrumentors() -> None:
|
|
|
263
263
|
LlamaIndexInstrumentor().instrument()
|
|
264
264
|
|
|
265
265
|
def _google_generativeai() -> Any:
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
import opentelemetry.instrumentation.google_generativeai as _m # type: ignore
|
|
267
|
+
|
|
268
|
+
# The exported class name varies by version: GoogleGenerativeAiInstrumentor
|
|
269
|
+
# (current — note the lowercase 'i'), GoogleGenerativeAIInstrumentor, or
|
|
270
|
+
# GenAIInstrumentor. Importing the wrong casing silently disabled Gemini
|
|
271
|
+
# auto-instrumentation. (This instrumentation patches the new @google/genai
|
|
272
|
+
# SDK, i.e. the `google-genai` package, not legacy google-generativeai.)
|
|
273
|
+
instr = (
|
|
274
|
+
getattr(_m, "GoogleGenerativeAiInstrumentor", None)
|
|
275
|
+
or getattr(_m, "GoogleGenerativeAIInstrumentor", None)
|
|
276
|
+
or getattr(_m, "GenAIInstrumentor", None)
|
|
268
277
|
)
|
|
269
|
-
|
|
270
|
-
|
|
278
|
+
if instr is None:
|
|
279
|
+
raise ImportError(
|
|
280
|
+
"no GoogleGenerativeAi/GenAI Instrumentor in "
|
|
281
|
+
"opentelemetry.instrumentation.google_generativeai"
|
|
282
|
+
)
|
|
283
|
+
instr().instrument()
|
|
271
284
|
|
|
272
285
|
def _vertexai() -> Any:
|
|
273
286
|
from opentelemetry.instrumentation.vertexai import VertexAIInstrumentor # type: ignore
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|