This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import logging | |
import random | |
from jaeger_client import Config | |
from opentracing_instrumentation.request_context import get_current_span, span_in_context | |
def init_tracer(service): | |
logging.getLogger('').handlers = [] | |
logging.basicConfig(format='%(message)s', level=logging.DEBUG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tracer = init_tracer('booking') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def init_tracer(service): | |
logging.getLogger('').handlers = [] | |
logging.basicConfig(format='%(message)s', level=logging.DEBUG) | |
config = Config( | |
config={ | |
'sampler': { | |
'type': 'const', | |
'param': 1, | |
}, | |
'logging': True, |