Skip to content

Commit 0ad6be0

Browse files
committed
nit fixes
1 parent 027e0b1 commit 0ad6be0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/opentelemetry-tracing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ We also need to tell OpenTelemetry which exporter to use. For example, to export
2121
# in a seperate thread to not block on the main thread
2222
from opentelemetry.sdk.trace.export import BatchExportSpanProcessor
2323
24-
# create and export one trace every 1000 requests
24+
# Create and export one trace every 1000 requests
2525
sampler = ProbabilitySampler(1/1000)
26-
# Uses the default tracer provider
26+
# Use the default tracer provider
2727
trace.set_tracer_provider(TracerProvider(sampler=sampler))
2828
trace.get_tracer_provider().add_span_processor(
29-
# initialize the cloud tracing exporter
29+
# Initialize the cloud tracing exporter
3030
BatchExportSpanProcessor(CloudTraceSpanExporter())
3131
)
3232

google/cloud/spanner_v1/_opentelemetry_tracing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
@contextmanager
3333
def trace_call(name, session, extra_attributes=None):
3434
if not HAS_OPENTELEMETRY_INSTALLED or not session:
35-
# empty context manager. users will have to check if the generated value is None or a span
35+
# Empty context manager. Users will have to check if the generated value is None or a span
3636
yield None
3737
return
3838

3939
tracer = trace.get_tracer(__name__)
4040

41-
# base attributes that we know for every trace created
41+
# Set base attributes that we know for every trace created
4242
attributes = {
4343
"db.type": "spanner",
4444
"db.url": spanner_client.SpannerClient.SERVICE_ADDRESS,

0 commit comments

Comments
 (0)