Skip to content

Commit 1714180

Browse files
committed
chore(vertexai): update pyproject.toml, version.py, and ci-main.yaml for initial release
1 parent 38789cf commit 1714180

4 files changed

Lines changed: 16 additions & 38 deletions

File tree

.github/workflows/ci-main.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
pip install -e "instrumentation-genai/opentelemetry-instrumentation-crewai[instruments,test]"
6767
pip install -e "instrumentation-genai/opentelemetry-instrumentation-aidefense[test]"
6868
pip install -e "instrumentation-genai/opentelemetry-instrumentation-weaviate[instruments,test]"
69+
pip install -e "instrumentation-genai/opentelemetry-instrumentation-vertexai[instruments,test]"
6970
7071
- name: Run tests - opentelemetry-util-genai
7172
if: always()
@@ -144,6 +145,11 @@ jobs:
144145
run: |
145146
python -m pytest instrumentation-genai/opentelemetry-instrumentation-weaviate/tests/ -v
146147
148+
- name: Run tests - opentelemetry-instrumentation-vertexai
149+
if: always()
150+
run: |
151+
python -m pytest instrumentation-genai/opentelemetry-instrumentation-vertexai/tests/ -v
152+
147153
- name: Install fastmcp for instrumentation tests
148154
if: always()
149155
run: |

instrumentation-genai/opentelemetry-instrumentation-vertexai/pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "opentelemetry-instrumentation-vertexai"
6+
name = "splunk-otel-instrumentation-vertexai"
77
dynamic = ["version"]
88
description = "OpenTelemetry Official VertexAI instrumentation"
99
readme = "README.rst"
1010
license = "Apache-2.0"
11-
requires-python = ">=3.9"
11+
requires-python = ">=3.10"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" },
1414
]
@@ -18,29 +18,28 @@ classifiers = [
1818
"License :: OSI Approved :: Apache Software License",
1919
"Programming Language :: Python",
2020
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
2423
"Programming Language :: Python :: 3.12",
2524
"Programming Language :: Python :: 3.13",
26-
"Programming Language :: Python :: 3.14",
2725
]
2826
dependencies = [
29-
"opentelemetry-api ~= 1.39",
30-
"opentelemetry-instrumentation ~= 0.60b0",
31-
"opentelemetry-semantic-conventions ~= 0.60b0",
32-
"opentelemetry-util-genai >= 0.4b0.dev, <0.5b0",
27+
"opentelemetry-api >= 1.37",
28+
"opentelemetry-instrumentation >= 0.58b0",
29+
"opentelemetry-semantic-conventions >= 0.58b0",
30+
"splunk-otel-util-genai >= 0.1.9",
3331
]
3432

3533
[project.optional-dependencies]
3634
instruments = ["google-cloud-aiplatform >= 1.64"]
35+
test = ["vcrpy >= 7.0"]
3736

3837
[project.entry-points.opentelemetry_instrumentor]
3938
vertexai = "opentelemetry.instrumentation.vertexai:VertexAIInstrumentor"
4039

4140
[project.urls]
42-
Homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation-genai/opentelemetry-instrumentation-vertexai"
43-
Repository = "https://github.com/open-telemetry/opentelemetry-python-contrib"
41+
Homepage = "https://github.com/signalfx/splunk-otel-python-contrib/tree/main/instrumentation-genai/opentelemetry-instrumentation-vertexai"
42+
Repository = "https://github.com/signalfx/splunk-otel-python-contrib"
4443

4544
[tool.hatch.version]
4645
path = "src/opentelemetry/instrumentation/vertexai/version.py"

instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "2.3b0.dev"
15+
__version__ = "0.1.0"

instrumentation-genai/opentelemetry-instrumentation-vertexai/tests/test_utils.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -154,33 +154,6 @@ def test_convert_content_mixed_parts():
154154
assert parts[2].response == {"answer": "world"}
155155

156156

157-
def test_convert_content_to_input_message_normalizes_roles():
158-
model_content = content.Content(
159-
{
160-
"role": "model",
161-
"parts": [{"text": "hello"}],
162-
}
163-
)
164-
model_message = convert_content_to_input_message(model_content)
165-
assert model_message.role == "assistant"
166-
167-
tool_content = content.Content(
168-
{
169-
"role": "user",
170-
"parts": [
171-
{
172-
"function_response": {
173-
"name": "search",
174-
"response": {"answer": "world"},
175-
}
176-
}
177-
],
178-
}
179-
)
180-
tool_message = convert_content_to_input_message(tool_content)
181-
assert tool_message.role == "tool"
182-
183-
184157
def test_extract_tool_definitions():
185158
"""extract_tool_definitions converts Tool protos to dicts."""
186159
t = tool.Tool(

0 commit comments

Comments
 (0)