Python OpenTracing Example
Python 앱 opentracing 라이브러리 사용 예제
⌨️ Python 에서 opentracing 라이브러리 사용해보기
Install
$ pip install opentracingExample
import opentracing
tracer = opentracing.tracer
def say_hello(hello_to):
## Span 시작
span = tracer.start_span('say-hello')
hello_str = 'Hello, %s!' % hello_to
print(hello_str)
## Span 끝
span.finish()Basic features of OpenTracing API
Context manger 로 span 사용하기
Last updated