594 lines
26 KiB
HTML
594 lines
26 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_181-google-v7) on Thu Apr 25 10:43:39 PDT 2019 -->
|
|
<title>Span (openconsensus-api 0.1.0-SNAPSHOT API)</title>
|
|
<meta name="date" content="2019-04-25">
|
|
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Span (openconsensus-api 0.1.0-SNAPSHOT API)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../index-all.html">Index</a></li>
|
|
<li><a href="../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../openconsensus/trace/Sampler.html" title="class in openconsensus.trace"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../openconsensus/trace/Span.Builder.html" title="interface in openconsensus.trace"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../index.html?openconsensus/trace/Span.html" target="_top">Frames</a></li>
|
|
<li><a href="Span.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">openconsensus.trace</div>
|
|
<h2 title="Interface Span" class="title">Interface Span</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Known Implementing Classes:</dt>
|
|
<dd><a href="../../openconsensus/trace/BlankSpan.html" title="class in openconsensus.trace">BlankSpan</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public interface <span class="typeNameLabel">Span</span></pre>
|
|
<div class="block">An interface that represents a span. It has an associated <a href="../../openconsensus/trace/SpanContext.html" title="class in openconsensus.trace"><code>SpanContext</code></a>.
|
|
|
|
<p>Spans are created by the <a href="../../openconsensus/trace/Span.Builder.html#startSpan--"><code>Span.Builder.startSpan()</code></a> method.
|
|
|
|
<p><code>Span</code> <b>must</b> be ended by calling <a href="../../openconsensus/trace/Span.html#end--"><code>end()</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="nested.class.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Interface and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static interface </code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.Builder.html" title="interface in openconsensus.trace">Span.Builder</a></span></code>
|
|
<div class="block"><a href="../../openconsensus/trace/Span.Builder.html" title="interface in openconsensus.trace"><code>Span.Builder</code></a> is used to construct <a href="../../openconsensus/trace/Span.html" title="interface in openconsensus.trace"><code>Span</code></a> instances which define arbitrary scopes of
|
|
code that are sampled for distributed tracing as a single atomic unit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.Kind.html" title="enum in openconsensus.trace">Span.Kind</a></span></code>
|
|
<div class="block">Type of span.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#addEvent-openconsensus.trace.Event-">addEvent</a></span>(<a href="../../openconsensus/trace/Event.html" title="class in openconsensus.trace">Event</a> event)</code>
|
|
<div class="block">Adds an event to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#addEvent-java.lang.String-">addEvent</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Adds an event to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#addEvent-java.lang.String-java.util.Map-">addEvent</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../openconsensus/trace/AttributeValue.html" title="class in openconsensus.trace">AttributeValue</a>> attributes)</code>
|
|
<div class="block">Adds an event to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#addLink-openconsensus.trace.Link-">addLink</a></span>(<a href="../../openconsensus/trace/Link.html" title="class in openconsensus.trace">Link</a> link)</code>
|
|
<div class="block">Adds a <a href="../../openconsensus/trace/Link.html" title="class in openconsensus.trace"><code>Link</code></a> to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#end--">end</a></span>()</code>
|
|
<div class="block">Marks the end of <code>Span</code> execution with the default options.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../openconsensus/trace/SpanContext.html" title="class in openconsensus.trace">SpanContext</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#getContext--">getContext</a></span>()</code>
|
|
<div class="block">Returns the <code>SpanContext</code> associated with this <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#isRecordingEvents--">isRecordingEvents</a></span>()</code>
|
|
<div class="block">Returns <code>true</code> if this <code>Span</code> records events (e.g, <a href="../../openconsensus/trace/Span.html#addEvent-java.lang.String-"><code>addEvent(String)</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#setAttribute-java.lang.String-openconsensus.trace.AttributeValue-">setAttribute</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
<a href="../../openconsensus/trace/AttributeValue.html" title="class in openconsensus.trace">AttributeValue</a> value)</code>
|
|
<div class="block">Sets an attribute to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#setAttribute-java.lang.String-boolean-">setAttribute</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
boolean value)</code>
|
|
<div class="block">Sets an attribute to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#setAttribute-java.lang.String-double-">setAttribute</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
double value)</code>
|
|
<div class="block">Sets an attribute to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#setAttribute-java.lang.String-long-">setAttribute</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
long value)</code>
|
|
<div class="block">Sets an attribute to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#setAttribute-java.lang.String-java.lang.String-">setAttribute</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Sets an attribute to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#setStatus-openconsensus.trace.Status-">setStatus</a></span>(<a href="../../openconsensus/trace/Status.html" title="class in openconsensus.trace">Status</a> status)</code>
|
|
<div class="block">Sets the <a href="../../openconsensus/trace/Status.html" title="class in openconsensus.trace"><code>Status</code></a> to the <code>Span</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../openconsensus/trace/Span.html#updateName-java.lang.String-">updateName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Updates the <code>Span</code> name.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="setAttribute-java.lang.String-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAttribute</h4>
|
|
<pre>void setAttribute(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block">Sets an attribute to the <code>Span</code>. If the <code>Span</code> previously contained a mapping for
|
|
the key, the old value is replaced by the specified value.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>key</code> - the key for this attribute.</dd>
|
|
<dd><code>value</code> - the value for this attribute.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAttribute-java.lang.String-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAttribute</h4>
|
|
<pre>void setAttribute(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
long value)</pre>
|
|
<div class="block">Sets an attribute to the <code>Span</code>. If the <code>Span</code> previously contained a mapping for
|
|
the key, the old value is replaced by the specified value.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>key</code> - the key for this attribute.</dd>
|
|
<dd><code>value</code> - the value for this attribute.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAttribute-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAttribute</h4>
|
|
<pre>void setAttribute(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
double value)</pre>
|
|
<div class="block">Sets an attribute to the <code>Span</code>. If the <code>Span</code> previously contained a mapping for
|
|
the key, the old value is replaced by the specified value.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>key</code> - the key for this attribute.</dd>
|
|
<dd><code>value</code> - the value for this attribute.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAttribute-java.lang.String-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAttribute</h4>
|
|
<pre>void setAttribute(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
boolean value)</pre>
|
|
<div class="block">Sets an attribute to the <code>Span</code>. If the <code>Span</code> previously contained a mapping for
|
|
the key, the old value is replaced by the specified value.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>key</code> - the key for this attribute.</dd>
|
|
<dd><code>value</code> - the value for this attribute.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAttribute-java.lang.String-openconsensus.trace.AttributeValue-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAttribute</h4>
|
|
<pre>void setAttribute(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key,
|
|
<a href="../../openconsensus/trace/AttributeValue.html" title="class in openconsensus.trace">AttributeValue</a> value)</pre>
|
|
<div class="block">Sets an attribute to the <code>Span</code>. If the <code>Span</code> previously contained a mapping for
|
|
the key, the old value is replaced by the specified value.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>key</code> - the key for this attribute.</dd>
|
|
<dd><code>value</code> - the value for this attribute.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addEvent-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addEvent</h4>
|
|
<pre>void addEvent(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Adds an event to the <code>Span</code>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - the name of the event.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addEvent-java.lang.String-java.util.Map-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addEvent</h4>
|
|
<pre>void addEvent(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../openconsensus/trace/AttributeValue.html" title="class in openconsensus.trace">AttributeValue</a>> attributes)</pre>
|
|
<div class="block">Adds an event to the <code>Span</code>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - the name of the event.</dd>
|
|
<dd><code>attributes</code> - the attributes that will be added; these are associated with this event, not
|
|
the <code>Span</code> as for <code>setAttributes()</code>.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addEvent-openconsensus.trace.Event-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addEvent</h4>
|
|
<pre>void addEvent(<a href="../../openconsensus/trace/Event.html" title="class in openconsensus.trace">Event</a> event)</pre>
|
|
<div class="block">Adds an event to the <code>Span</code>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>event</code> - the event to add.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addLink-openconsensus.trace.Link-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addLink</h4>
|
|
<pre>void addLink(<a href="../../openconsensus/trace/Link.html" title="class in openconsensus.trace">Link</a> link)</pre>
|
|
<div class="block">Adds a <a href="../../openconsensus/trace/Link.html" title="class in openconsensus.trace"><code>Link</code></a> to the <code>Span</code>.
|
|
|
|
<p>Used (for example) in batching operations, where a single batch handler processes multiple
|
|
requests from different traces.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>link</code> - the link to add.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setStatus-openconsensus.trace.Status-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setStatus</h4>
|
|
<pre>void setStatus(<a href="../../openconsensus/trace/Status.html" title="class in openconsensus.trace">Status</a> status)</pre>
|
|
<div class="block">Sets the <a href="../../openconsensus/trace/Status.html" title="class in openconsensus.trace"><code>Status</code></a> to the <code>Span</code>.
|
|
|
|
<p>If used, this will override the default <code>Span</code> status. Default is <a href="../../openconsensus/trace/Status.html#OK"><code>Status.OK</code></a>.
|
|
|
|
<p>Only the value of the last call will be recorded, and implementations are free to ignore
|
|
previous calls.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>status</code> - the <a href="../../openconsensus/trace/Status.html" title="class in openconsensus.trace"><code>Status</code></a> to set.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="updateName-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateName</h4>
|
|
<pre>void updateName(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Updates the <code>Span</code> name.
|
|
|
|
<p>If used, this will override the name provided via <code>Span.Builder</code>.
|
|
|
|
<p>Upon this update, any sampling behavior based on <code>Span</code> name will depend on the
|
|
implementation.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - the <code>Span</code> name.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="end--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>end</h4>
|
|
<pre>void end()</pre>
|
|
<div class="block">Marks the end of <code>Span</code> execution with the default options.
|
|
|
|
<p>Only the timing of the first end call for a given <code>Span</code> will be recorded, and
|
|
implementations are free to ignore all further calls.</div>
|
|
<dl>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getContext--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getContext</h4>
|
|
<pre><a href="../../openconsensus/trace/SpanContext.html" title="class in openconsensus.trace">SpanContext</a> getContext()</pre>
|
|
<div class="block">Returns the <code>SpanContext</code> associated with this <code>Span</code>.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the <code>SpanContext</code> associated with this <code>Span</code>.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="isRecordingEvents--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>isRecordingEvents</h4>
|
|
<pre>boolean isRecordingEvents()</pre>
|
|
<div class="block">Returns <code>true</code> if this <code>Span</code> records events (e.g, <a href="../../openconsensus/trace/Span.html#addEvent-java.lang.String-"><code>addEvent(String)</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd><code>true</code> if this <code>Span</code> records events.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>0.1.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../index-all.html">Index</a></li>
|
|
<li><a href="../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../openconsensus/trace/Sampler.html" title="class in openconsensus.trace"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../openconsensus/trace/Span.Builder.html" title="interface in openconsensus.trace"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../index.html?openconsensus/trace/Span.html" target="_top">Frames</a></li>
|
|
<li><a href="Span.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|