File tree 4 files changed +8
-4
lines changed
instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 39
39
---
40
40
"""
41
41
42
- from typing import Collection
42
+ from typing import Any , Collection
43
43
44
44
from opentelemetry ._events import get_event_logger
45
45
from opentelemetry .instrumentation .instrumentor import BaseInstrumentor
@@ -52,7 +52,7 @@ class VertexAIInstrumentor(BaseInstrumentor):
52
52
def instrumentation_dependencies (self ) -> Collection [str ]:
53
53
return _instruments
54
54
55
- def _instrument (self , ** kwargs ):
55
+ def _instrument (self , ** kwargs : Any ):
56
56
"""Enable VertexAI instrumentation."""
57
57
tracer_provider = kwargs .get ("tracer_provider" )
58
58
_tracer = get_tracer (
@@ -70,5 +70,5 @@ def _instrument(self, **kwargs):
70
70
)
71
71
# TODO: implemented in later PR
72
72
73
- def _uninstrument (self , ** kwargs ) -> None :
73
+ def _uninstrument (self , ** kwargs : Any ) -> None :
74
74
"""TODO: implemented in later PR"""
Original file line number Diff line number Diff line change @@ -48,10 +48,13 @@ pythonVersion = "3.8"
48
48
reportPrivateUsage = false # Ignore private attributes added by instrumentation packages.
49
49
# Add progressively instrumentation packages here.
50
50
include = [
51
- " instrumentation/opentelemetry-instrumentation-threading/**/*.py"
51
+ " instrumentation/opentelemetry-instrumentation-threading/**/*.py" ,
52
+ " instrumentation-genai/opentelemetry-instrumentation-vertexai/**/*.py" ,
52
53
]
53
54
# We should also add type hints to the test suite - It helps on finding bugs.
54
55
# We are excluding for now because it's easier, and more important to add to the instrumentation packages.
55
56
exclude = [
56
57
" instrumentation/opentelemetry-instrumentation-threading/tests/**" ,
58
+ " instrumentation-genai/opentelemetry-instrumentation-vertexai/tests/**/*.py" ,
59
+ " instrumentation-genai/opentelemetry-instrumentation-vertexai/examples/**/*.py" ,
57
60
]
Original file line number Diff line number Diff line change @@ -994,5 +994,6 @@ deps =
994
994
{[testenv]test_deps}
995
995
{toxinidir}/opentelemetry-instrumentation
996
996
{toxinidir}/util/opentelemetry-util-http
997
+ {toxinidir}/instrumentation-genai/opentelemetry-instrumentation-vertexai[instruments]
997
998
commands =
998
999
pyright
You can’t perform that action at this time.
0 commit comments