forked from census-instrumentation/opencensus-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecution_context.html
More file actions
150 lines (121 loc) · 7.68 KB
/
Copy pathexecution_context.html
File metadata and controls
150 lines (121 loc) · 7.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="Python">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Execution Context — OPENCENSUS 0.0.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '0.0.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="Trace Options" href="trace_options.html" />
<link rel="prev" title="Request Tracer" href="tracer.html" />
<link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
</head>
<body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="module-opencensus.trace.execution_context">
<span id="execution-context"></span><h1>Execution Context<a class="headerlink" href="#module-opencensus.trace.execution_context" title="Permalink to this headline">¶</a></h1>
<dl class="function">
<dt id="opencensus.trace.execution_context.clear">
<code class="descclassname">opencensus.trace.execution_context.</code><code class="descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/opencensus/trace/execution_context.html#clear"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#opencensus.trace.execution_context.clear" title="Permalink to this definition">¶</a></dt>
<dd><p>Clear the thread local, used in test.</p>
</dd></dl>
<dl class="function">
<dt id="opencensus.trace.execution_context.get_opencensus_tracer">
<code class="descclassname">opencensus.trace.execution_context.</code><code class="descname">get_opencensus_tracer</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/opencensus/trace/execution_context.html#get_opencensus_tracer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#opencensus.trace.execution_context.get_opencensus_tracer" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the opencensus tracer from thread local.</p>
</dd></dl>
<dl class="function">
<dt id="opencensus.trace.execution_context.set_opencensus_tracer">
<code class="descclassname">opencensus.trace.execution_context.</code><code class="descname">set_opencensus_tracer</code><span class="sig-paren">(</span><em>tracer</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/opencensus/trace/execution_context.html#set_opencensus_tracer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#opencensus.trace.execution_context.set_opencensus_tracer" title="Permalink to this definition">¶</a></dt>
<dd><p>Add the tracer to thread local.</p>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="../../index.html">OPENCENSUS</a></h1>
<h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../usage.html">OpenCensus Trace for Python</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">API Documentation</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="span.html">Span</a></li>
<li class="toctree-l2"><a class="reference internal" href="span_context.html">Span Context</a></li>
<li class="toctree-l2"><a class="reference internal" href="tracer.html">Request Tracer</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Execution Context</a></li>
<li class="toctree-l2"><a class="reference internal" href="trace_options.html">Trace Options</a></li>
<li class="toctree-l2"><a class="reference internal" href="always_on_sampler.html">Sampler - AlwaysOnSampler</a></li>
<li class="toctree-l2"><a class="reference internal" href="always_off_sampler.html">Sampler - AlwaysOffSampler</a></li>
<li class="toctree-l2"><a class="reference internal" href="probability_sampler.html">Sampler - ProbabilitySampler</a></li>
<li class="toctree-l2"><a class="reference internal" href="print_exporter.html">Exporter - Print Exporter</a></li>
<li class="toctree-l2"><a class="reference internal" href="logging_exporter.html">Exporter - Logging Exporter</a></li>
<li class="toctree-l2"><a class="reference internal" href="stackdriver_exporter.html">Exporter - Stackdriver Exporter</a></li>
<li class="toctree-l2"><a class="reference internal" href="zipkin_exporter.html">Exporter - Zipkin Exporter</a></li>
<li class="toctree-l2"><a class="reference internal" href="file_exporter.html">Exporter - File Exporter</a></li>
<li class="toctree-l2"><a class="reference internal" href="binary_format_propagation.html">Propagator - BinaryFormatPropagator</a></li>
<li class="toctree-l2"><a class="reference internal" href="google_cloud_format_propagation.html">Propagator - GoogleCloudFormatPropagator</a></li>
<li class="toctree-l2"><a class="reference internal" href="text_format_propagation.html">Propagator - TextFormatPropagator</a></li>
<li class="toctree-l2"><a class="reference internal" href="trace_context_http_header_format_propagation.html">Propagator - TraceContextPropagator</a></li>
<li class="toctree-l2"><a class="reference internal" href="noop_tracer.html">Noop Tracer</a></li>
<li class="toctree-l2"><a class="reference internal" href="context_tracer.html">Context Tracer</a></li>
</ul>
</li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="../../index.html">Documentation overview</a><ul>
<li><a href="../index.html"><no title></a><ul>
<li><a href="index.html">API Documentation</a><ul>
<li>Previous: <a href="tracer.html" title="previous chapter">Request Tracer</a></li>
<li>Next: <a href="trace_options.html" title="next chapter">Trace Options</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="../../search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
©2017, OpenCensus Authors.
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.6.7</a>
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<a href="../../_sources/trace/api/execution_context.rst.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>