diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ff8a0a82..f7998cd11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: - 'release/*' pull_request: env: - CORE_REPO_SHA: 1a12fa0d681e37c1fda9cb8d46212ff3bbf6b76a + CORE_REPO_SHA: 94bf80f3870bceefa72d9a61353eaf5d7dd30993 jobs: build: diff --git a/instrumentation/opentelemetry-instrumentation-requests/tests/test_requests_integration.py b/instrumentation/opentelemetry-instrumentation-requests/tests/test_requests_integration.py index ecc56b7c5..16bfdafc9 100644 --- a/instrumentation/opentelemetry-instrumentation-requests/tests/test_requests_integration.py +++ b/instrumentation/opentelemetry-instrumentation-requests/tests/test_requests_integration.py @@ -177,10 +177,8 @@ class RequestsIntegrationTestBase(abc.ABC): def test_not_recording(self): with mock.patch("opentelemetry.trace.INVALID_SPAN") as mock_span: RequestsInstrumentor().uninstrument() - # original_tracer_provider returns a default tracer provider, which - # in turn will return an INVALID_SPAN, which is always not recording RequestsInstrumentor().instrument( - tracer_provider=self.original_tracer_provider + tracer_provider=trace._DefaultTracerProvider() ) mock_span.is_recording.return_value = False result = self.perform_request(self.URL) diff --git a/instrumentation/opentelemetry-instrumentation-urllib/tests/test_urllib_integration.py b/instrumentation/opentelemetry-instrumentation-urllib/tests/test_urllib_integration.py index e5a109268..563e3a6db 100644 --- a/instrumentation/opentelemetry-instrumentation-urllib/tests/test_urllib_integration.py +++ b/instrumentation/opentelemetry-instrumentation-urllib/tests/test_urllib_integration.py @@ -208,10 +208,8 @@ class RequestsIntegrationTestBase(abc.ABC): def test_not_recording(self): with mock.patch("opentelemetry.trace.INVALID_SPAN") as mock_span: URLLibInstrumentor().uninstrument() - # original_tracer_provider returns a default tracer provider, which - # in turn will return an INVALID_SPAN, which is always not recording URLLibInstrumentor().instrument( - tracer_provider=self.original_tracer_provider + tracer_provider=trace._DefaultTracerProvider() ) mock_span.is_recording.return_value = False result = self.perform_request(self.URL)