Skip to content

Commit c2f9ebe

Browse files
author
Yoshi Yamaguchi
authored
fix typo in example codes (#1240)
1 parent f48b313 commit c2f9ebe

File tree

1 file changed

+3
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc

1 file changed

+3
-2
lines changed

instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
SimpleSpanProcessor(ConsoleSpanExporter())
4444
)
4545
46-
instrumentor = GrpcInstrumentorClient().instrument()
46+
grpc_client_instrumentor = GrpcInstrumentorClient()
47+
grpc_client_instrumentor.instrument()
4748
4849
def run():
4950
with grpc.insecure_channel("localhost:50051") as channel:
@@ -180,7 +181,7 @@ class GrpcInstrumentorClient(BaseInstrumentor):
180181
Usage::
181182
182183
grpc_client_instrumentor = GrpcInstrumentorClient()
183-
grpc.client_instrumentor.instrument()
184+
grpc_client_instrumentor.instrument()
184185
185186
"""
186187

0 commit comments

Comments
 (0)