Skip to content

Commit b347ff8

Browse files
committed
fixing dev requirements and pyproject inconsistencies (deleting unnecessary pyproject and requirements files). removed unnecessary version file, modified tests to skip linter and removed unused vars
1 parent a606ec9 commit b347ff8

File tree

6 files changed

+6
-50
lines changed

6 files changed

+6
-50
lines changed

aws-opentelemetry-distro/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ dependencies = [
8787
"langchain-aws == 0.2.15",
8888
"langchain-community == 0.3.27",
8989
"langgraph == 0.6.3",
90-
"duckduckgo-search == 8.1.1",
9190
"pytest-asyncio == 0.21.0",
9291
"pytest-vcr == 1.0.2",
9392
]
@@ -104,7 +103,7 @@ test = []
104103
aws_configurator = "amazon.opentelemetry.distro.aws_opentelemetry_configurator:AwsOpenTelemetryConfigurator"
105104

106105
[project.entry-points.opentelemetry_instrumentor]
107-
langchain = "amazon.opentelemetry.distro.instrumentation.mcp.instrumentation:McpInstrumentor"
106+
langchain = "amazon.opentelemetry.distro.opentelemetry.instrumentation.langchain_v2:LangChainInstrumentor"
108107

109108
[project.entry-points.opentelemetry_distro]
110109
aws_distro = "amazon.opentelemetry.distro.aws_opentelemetry_distro:AwsOpenTelemetryDistro"

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/opentelemetry/version.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test-opentelemetry-instrumentation-langchain-v2/mock_langgraph_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async def test_langgraph_ainvoke(instrument_langchain, span_exporter):
1919
span_exporter.clear()
2020

2121
# Mock the boto3 client
22-
with patch("boto3.client", autospec=True) as mock_boto_client:
22+
with patch("boto3.client", autospec=True):
2323
# Mock the ChatBedrock client
2424
with patch("langchain_aws.chat_models.ChatBedrock", autospec=True) as MockChatBedrock:
2525
# Create a mock instance that will be returned by the constructor

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test-opentelemetry-instrumentation-langchain-v2/test-requirements.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test-opentelemetry-instrumentation-langchain-v2/test_callback_handler.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,11 @@ def mock_create_span(run_id, parent_run_id, name, kind, metadata):
180180
generations = [[Generation(text="This is a test response")]]
181181
response = LLMResult(generations=generations, llm_output=llm_output)
182182

183+
# pylint: disable=no-self-use
183184
with patch(
184185
"amazon.opentelemetry.distro.opentelemetry.instrumentation.langchain_v2.callback_handler._set_span_attribute"
185186
) as mock_set_attribute:
186-
with patch.object(self.handler, "_end_span") as mock_end_span:
187+
with patch.object(self.handler, "_end_span"):
187188
self.handler.on_llm_end(response=response, run_id=self.run_id, parent_run_id=self.parent_run_id)
188189

189190
print("\nAll calls to mock_set_attribute:")
@@ -669,6 +670,4 @@ def test_on_llm_end_with_different_token_usage_keys(self, mock_context_api):
669670

670671

671672
if __name__ == "__main__":
672-
import time
673-
674673
unittest.main()

dev-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ codespell==2.1.0
1414
requests==2.32.4
1515
ruamel.yaml==0.17.21
1616
flaky==3.7.0
17-
botocore==1.40.4
17+
botocore==1.34.158
1818
langchain==0.3.27
1919
langchain-core==0.3.72
20-
langchain-aws==0.2.15
20+
langchain-aws==0.2.0
2121
langchain-community==0.3.27
2222
langgraph==0.6.3

0 commit comments

Comments
 (0)