From 58c8555ee217ce53405bb388f0d59572b9c1f1ae Mon Sep 17 00:00:00 2001 From: Emmanuel T Odeke Date: Tue, 10 Sep 2024 13:11:29 -1000 Subject: [PATCH] no need to expose get_tracer --- google/cloud/spanner_v1/__init__.py | 2 -- google/cloud/spanner_v1/_opentelemetry_tracing.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/google/cloud/spanner_v1/__init__.py b/google/cloud/spanner_v1/__init__.py index a671ddc122..d2e7a23938 100644 --- a/google/cloud/spanner_v1/__init__.py +++ b/google/cloud/spanner_v1/__init__.py @@ -75,7 +75,6 @@ from google.cloud.spanner_v1.pool import FixedSizePool from google.cloud.spanner_v1.pool import PingingPool from google.cloud.spanner_v1.pool import TransactionPingingPool -from google.cloud.spanner_v1._opentelemetry_tracing import get_tracer COMMIT_TIMESTAMP = "spanner.commit_timestamp()" @@ -89,7 +88,6 @@ # google.cloud.spanner_v1 "__version__", "param_types", - "get_tracer", # google.cloud.spanner_v1.client "Client", # google.cloud.spanner_v1.keyset diff --git a/google/cloud/spanner_v1/_opentelemetry_tracing.py b/google/cloud/spanner_v1/_opentelemetry_tracing.py index 337fbecec4..bd409e7068 100644 --- a/google/cloud/spanner_v1/_opentelemetry_tracing.py +++ b/google/cloud/spanner_v1/_opentelemetry_tracing.py @@ -55,7 +55,7 @@ def get_tracer(tracer_provider=None): it'll fall back to the global tracer provider and use this library's specific semantics. """ if tracer_provider: - return tracerProvider.get_tracer(TRACER_NAME, TRACER_VERSION) + return tracer_provider.get_tracer(TRACER_NAME, TRACER_VERSION) else: return trace.get_tracer(TRACER_NAME, TRACER_VERSION)