Skip to content

Commit

Permalink
no need to expose get_tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
odeke-em committed Sep 10, 2024
1 parent b190663 commit 58c8555
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions google/cloud/spanner_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
Expand All @@ -89,7 +88,6 @@
# google.cloud.spanner_v1
"__version__",
"param_types",
"get_tracer",
# google.cloud.spanner_v1.client
"Client",
# google.cloud.spanner_v1.keyset
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/spanner_v1/_opentelemetry_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 58c8555

Please sign in to comment.