Skip to content

Commit 3356942

Browse files
committed
modify docs
1 parent a56cd65 commit 3356942

File tree

1 file changed

+8
-8
lines changed
  • instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio

1 file changed

+8
-8
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@
1919
2020
2121
Set the name of the coroutine you want to trace.
22-
-----------------------------------------------
22+
-------------------------------------------------
2323
.. code::
2424
export OTEL_PYTHON_ASYNCIO_COROUTINE_NAMES_TO_TRACE=coro_name,coro_name2,coro_name3
2525
2626
If you want to keep track of which function to use in the to_thread function of asyncio, set the name of the function.
27-
-----------------------------------------------
27+
------------------------------------------------------------------------------------------------------------------------
2828
.. code::
2929
export OTEL_PYTHON_ASYNCIO_TO_THREAD_FUNCTION_NAMES_TO_TRACE=func_name,func_name2,func_name3
3030
3131
For future, set it up like this
32-
-----------------------------------------------
32+
---------------------------------
3333
.. code::
3434
export OTEL_PYTHON_ASYNCIO_FUTURE_TRACE_ENABLED=true
3535
3636
Run instrumented application
37-
-----------------------------------------------
37+
------------------------------
3838
1. coroutine
39-
-----------------------------------------------
39+
----------------
4040
.. code:: python
4141
4242
# export OTEL_PYTHON_ASYNCIO_COROUTINE_NAMES_TO_TRACE=sleep
@@ -52,7 +52,7 @@ async def main():
5252
asyncio.run(main())
5353
5454
2. future
55-
-----------------------------------------------
55+
------------
5656
.. code:: python
5757
5858
# export OTEL_PYTHON_ASYNCIO_FUTURE_TRACE_ENABLED=true
@@ -65,7 +65,7 @@ async def main():
6565
loop.run_until_complete(task)
6666
6767
3. to_thread
68-
-----------------------------------------------
68+
-------------
6969
.. code:: python
7070
7171
# export OTEL_PYTHON_ASYNCIO_TO_THREAD_FUNCTION_NAMES_TO_TRACE=func
@@ -85,7 +85,7 @@ def func():
8585
8686
8787
asyncio metric types
88-
-----------------------------------------------
88+
---------------------
8989
9090
* `asyncio.futures.duration` (ms) - Duration of the future
9191
* `asyncio.futures.exceptions` (count) - Number of exceptions raised by the future

0 commit comments

Comments
 (0)