Skip to content

Commit e3938ed

Browse files
authored
Support OpenTelemetry 1.36.0 (#1285)
1 parent 44785a1 commit e3938ed

File tree

4 files changed

+843
-772
lines changed

4 files changed

+843
-772
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ classifiers = [
4545
"Framework :: OpenTelemetry :: Instrumentations",
4646
]
4747
dependencies = [
48-
"opentelemetry-sdk >= 1.21.0, < 1.36.0",
49-
"opentelemetry-exporter-otlp-proto-http >= 1.21.0, < 1.36.0",
48+
"opentelemetry-sdk >= 1.21.0, < 1.37.0",
49+
"opentelemetry-exporter-otlp-proto-http >= 1.21.0, < 1.37.0",
5050
"opentelemetry-instrumentation >= 0.41b0",
5151
"rich >= 13.4.2",
5252
"protobuf >= 4.23.4",

tests/otel_integrations/test_langchain.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22

3+
import langgraph.warnings
34
import pydantic
45
import pytest
56
from dirty_equals import IsPartialDict
@@ -26,7 +27,8 @@ def add(a: float, b: float) -> float:
2627
"""Add two numbers."""
2728
return a + b
2829

29-
math_agent = create_react_agent(model='gpt-4o', tools=[add]) # pyright: ignore [reportUnknownVariableType]
30+
with pytest.warns(langgraph.warnings.LangGraphDeprecatedSinceV10):
31+
math_agent = create_react_agent(model='gpt-4o', tools=[add]) # pyright: ignore [reportUnknownVariableType]
3032

3133
result = math_agent.invoke({'messages': [{'role': 'user', 'content': "what's 123 + 456?"}]}) # pyright: ignore
3234

tests/otel_integrations/test_redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def redis(redis_container: RedisContainer):
3131

3232
@pytest.fixture
3333
def redis_port(redis_container: RedisContainer) -> str:
34-
return redis_container.get_exposed_port(6379) # pyright: ignore[reportReturnType]
34+
return redis_container.get_exposed_port(6379)
3535

3636

3737
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)