Skip to content

Instantly share code, notes, and snippets.

@adam-hert
Last active March 3, 2016 22:10
Show Gist options
  • Save adam-hert/88a75b07e8f706a5d908 to your computer and use it in GitHub Desktop.
Save adam-hert/88a75b07e8f706a5d908 to your computer and use it in GitHub Desktop.
Python_Start_Trace
import oboe
from oboeware import loader
loader.load_inst_modules()
oboe.config['tracing_mode'] = 'always'
#start a trace
oboe.start_trace('Backend', keys=None, xtr=None)
# Do some 'work'
time.sleep(1)
message = 'World'
# End trace
trace_context = oboe.end_trace('Backend')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment