From 614ad7c0d10a1eed53f796d1692e815ff5863a04 Mon Sep 17 00:00:00 2001 From: Folyd Date: Tue, 17 May 2022 02:47:03 +0800 Subject: [PATCH] Fix python instrumentation typos (#1346) --- content/en/docs/instrumentation/python/manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/instrumentation/python/manual.md b/content/en/docs/instrumentation/python/manual.md index 4812411af8dd..d63b08854b80 100644 --- a/content/en/docs/instrumentation/python/manual.md +++ b/content/en/docs/instrumentation/python/manual.md @@ -46,7 +46,7 @@ To create a span, you'll typically want it to be started as the current span. with tracer.start_as_current_span("span-name") as span: # do some work that 'span' will track - # When the 'while' block goes out of scope, 'span' is closed for you + # When the 'with' block goes out of scope, 'span' is closed for you ``` You can also use `start_span` to create a span without making it the current @@ -102,7 +102,7 @@ current_span.set_attribute("operation.other-stuff", [1, 2, 3]) ## Adding events -AN event is a human-readable message on a span that represents "something +An event is a human-readable message on a span that represents "something happening" during its lifetime. You can think of it as a primitive log. ```python