META-INF/
META-INF/MANIFEST.MF
io/
io/opencensus/
io/opencensus/contrib/
io/opencensus/contrib/http/
io/opencensus/contrib/http/HttpClientHandler.class
HttpClientHandler.java
package io.opencensus.contrib.http
public io.opencensus.contrib.http.HttpClientHandler extends io.opencensus.contrib.http.AbstractHttpHandler {
private final io.opencensus.trace.propagation.TextFormat$Setter setter
private final io.opencensus.trace.propagation.TextFormat textFormat
private final io.opencensus.trace.Tracer tracer
private final io.opencensus.stats.StatsRecorder statsRecorder
private final io.opencensus.tags.Tagger tagger
public void <init> (io.opencensus.trace.Tracer, io.opencensus.contrib.http.HttpExtractor, io.opencensus.trace.propagation.TextFormat, io.opencensus.trace.propagation.TextFormat$Setter)
io.opencensus.trace.Tracer tracer
io.opencensus.contrib.http.HttpExtractor extractor
io.opencensus.trace.propagation.TextFormat textFormat
io.opencensus.trace.propagation.TextFormat$Setter setter
public io.opencensus.contrib.http.HttpRequestContext handleStart (io.opencensus.trace.Span, java.lang.Object, java.lang.Object)
io.opencensus.trace.Span parent
Object carrier
Object request
String spanName
io.opencensus.trace.SpanBuilder builder
io.opencensus.trace.Span span
io.opencensus.trace.SpanContext spanContext
public void handleEnd (io.opencensus.contrib.http.HttpRequestContext, java.lang.Object, java.lang.Object, java.lang.Throwable)
io.opencensus.contrib.http.HttpRequestContext context
Object request
Object response
Throwable error
int httpCode
private void recordStats (io.opencensus.contrib.http.HttpRequestContext, java.lang.Object, int)
io.opencensus.contrib.http.HttpRequestContext context
Object request
int httpCode
double requestLatency
String methodStr
io.opencensus.tags.TagContext startCtx
public volatile synthetic io.opencensus.trace.Span getSpanFromContext (io.opencensus.contrib.http.HttpRequestContext)
}
io/opencensus/contrib/http/util/
io/opencensus/contrib/http/util/HttpTraceAttributeConstants.class
HttpTraceAttributeConstants.java
package io.opencensus.contrib.http.util
public final io.opencensus.contrib.http.util.HttpTraceAttributeConstants extends java.lang.Object {
public static final String HTTP_HOST
public static final String HTTP_ROUTE
public static final String HTTP_PATH
public static final String HTTP_METHOD
public static final String HTTP_USER_AGENT
public static final String HTTP_URL
public static final String HTTP_STATUS_CODE
private void <init> ()
}
io/opencensus/contrib/http/util/HttpViewConstants.class
HttpViewConstants.java
package io.opencensus.contrib.http.util
public final io.opencensus.contrib.http.util.HttpViewConstants extends java.lang.Object {
static final io.opencensus.stats.Aggregation COUNT
static final io.opencensus.stats.Aggregation SIZE_DISTRIBUTION
static final io.opencensus.stats.Aggregation LATENCY_DISTRIBUTION
public static final io.opencensus.stats.View HTTP_CLIENT_COMPLETED_COUNT_VIEW
public static final io.opencensus.stats.View HTTP_CLIENT_SENT_BYTES_VIEW
public static final io.opencensus.stats.View HTTP_CLIENT_RECEIVED_BYTES_VIEW
public static final io.opencensus.stats.View HTTP_CLIENT_ROUNDTRIP_LATENCY_VIEW
public static final io.opencensus.stats.View HTTP_SERVER_COMPLETED_COUNT_VIEW
public static final io.opencensus.stats.View HTTP_SERVER_RECEIVED_BYTES_VIEW
public static final io.opencensus.stats.View HTTP_SERVER_SENT_BYTES_VIEW
public static final io.opencensus.stats.View HTTP_SERVER_LATENCY_VIEW
private void <init> ()
static void <clinit> ()
}
io/opencensus/contrib/http/util/HttpViews.class
HttpViews.java
package io.opencensus.contrib.http.util
public final io.opencensus.contrib.http.util.HttpViews extends java.lang.Object {
static final com.google.common.collect.ImmutableSet HTTP_SERVER_VIEWS_SET
static final com.google.common.collect.ImmutableSet HTTP_CLIENT_VIEWS_SET
private void <init> ()
public static final void registerAllClientViews ()
static void registerAllClientViews (io.opencensus.stats.ViewManager)
io.opencensus.stats.View view
io.opencensus.stats.ViewManager viewManager
public static final void registerAllServerViews ()
static void registerAllServerViews (io.opencensus.stats.ViewManager)
io.opencensus.stats.View view
io.opencensus.stats.ViewManager viewManager
public static final void registerAllViews ()
static void registerAllViews (io.opencensus.stats.ViewManager)
io.opencensus.stats.ViewManager viewManager
static void <clinit> ()
}
io/opencensus/contrib/http/util/CloudTraceFormat.class
CloudTraceFormat.java
package io.opencensus.contrib.http.util
final io.opencensus.contrib.http.util.CloudTraceFormat extends io.opencensus.trace.propagation.TextFormat {
static final String HEADER_NAME
static final java.util.List FIELDS
static final char SPAN_ID_DELIMITER
static final String TRACE_OPTION_DELIMITER
static final String SAMPLED
static final String NOT_SAMPLED
static final io.opencensus.trace.TraceOptions OPTIONS_SAMPLED
static final io.opencensus.trace.TraceOptions OPTIONS_NOT_SAMPLED
static final int TRACE_ID_SIZE
static final int TRACE_OPTION_DELIMITER_SIZE
static final int SPAN_ID_START_POS
static final int MIN_HEADER_SIZE
static final int CLOUD_TRACE_IS_SAMPLED
private static final io.opencensus.trace.Tracestate TRACESTATE_DEFAULT
void <init> ()
public java.util.List fields ()
public void inject (io.opencensus.trace.SpanContext, java.lang.Object, io.opencensus.trace.propagation.TextFormat$Setter)
io.opencensus.trace.SpanContext spanContext
Object carrier
io.opencensus.trace.propagation.TextFormat$Setter setter
StringBuilder builder
public io.opencensus.trace.SpanContext extract (java.lang.Object, io.opencensus.trace.propagation.TextFormat$Getter) throws io.opencensus.trace.propagation.SpanContextParseException
String traceOptionsStr
String headerStr
io.opencensus.trace.TraceId traceId
int traceOptionsPos
CharSequence spanIdStr
io.opencensus.trace.SpanId spanId
io.opencensus.trace.TraceOptions traceOptions
IllegalArgumentException e
Object carrier
io.opencensus.trace.propagation.TextFormat$Getter getter
private static io.opencensus.trace.SpanId longToSpanId (long)
long x
java.nio.ByteBuffer buffer
private static long spanIdToLong (io.opencensus.trace.SpanId)
io.opencensus.trace.SpanId spanId
java.nio.ByteBuffer buffer
static void <clinit> ()
}
io/opencensus/contrib/http/util/HttpTraceUtil.class
HttpTraceUtil.java
package io.opencensus.contrib.http.util
public final io.opencensus.contrib.http.util.HttpTraceUtil extends java.lang.Object {
private static final io.opencensus.trace.Status STATUS_100
private static final io.opencensus.trace.Status STATUS_101
private static final io.opencensus.trace.Status STATUS_402
private static final io.opencensus.trace.Status STATUS_405
private static final io.opencensus.trace.Status STATUS_406
private static final io.opencensus.trace.Status STATUS_407
private static final io.opencensus.trace.Status STATUS_408
private static final io.opencensus.trace.Status STATUS_409
private static final io.opencensus.trace.Status STATUS_410
private static final io.opencensus.trace.Status STATUS_411
private static final io.opencensus.trace.Status STATUS_412
private static final io.opencensus.trace.Status STATUS_413
private static final io.opencensus.trace.Status STATUS_414
private static final io.opencensus.trace.Status STATUS_415
private static final io.opencensus.trace.Status STATUS_416
private static final io.opencensus.trace.Status STATUS_417
private static final io.opencensus.trace.Status STATUS_500
private static final io.opencensus.trace.Status STATUS_502
private static final io.opencensus.trace.Status STATUS_505
private void <init> ()
public static final io.opencensus.trace.Status parseResponseStatus (int, java.lang.Throwable)
int statusCode
Throwable error
String message
static void <clinit> ()
}
io/opencensus/contrib/http/util/HttpPropagationUtil.class
HttpPropagationUtil.java
package io.opencensus.contrib.http.util
public io.opencensus.contrib.http.util.HttpPropagationUtil extends java.lang.Object {
private void <init> ()
public static io.opencensus.trace.propagation.TextFormat getCloudTraceFormat ()
}
io/opencensus/contrib/http/util/HttpMeasureConstants.class
HttpMeasureConstants.java
package io.opencensus.contrib.http.util
public final io.opencensus.contrib.http.util.HttpMeasureConstants extends java.lang.Object {
private static final String UNIT_SIZE_BYTE
private static final String UNIT_LATENCY_MS
public static final io.opencensus.stats.Measure$MeasureLong HTTP_CLIENT_SENT_BYTES
public static final io.opencensus.stats.Measure$MeasureLong HTTP_CLIENT_RECEIVED_BYTES
public static final io.opencensus.stats.Measure$MeasureDouble HTTP_CLIENT_ROUNDTRIP_LATENCY
public static final io.opencensus.stats.Measure$MeasureLong HTTP_SERVER_RECEIVED_BYTES
public static final io.opencensus.stats.Measure$MeasureLong HTTP_SERVER_SENT_BYTES
public static final io.opencensus.stats.Measure$MeasureDouble HTTP_SERVER_LATENCY
public static final io.opencensus.tags.TagKey HTTP_CLIENT_HOST
public static final io.opencensus.tags.TagKey HTTP_SERVER_HOST
public static final io.opencensus.tags.TagKey HTTP_CLIENT_STATUS
public static final io.opencensus.tags.TagKey HTTP_SERVER_STATUS
public static final io.opencensus.tags.TagKey HTTP_CLIENT_PATH
public static final io.opencensus.tags.TagKey HTTP_SERVER_PATH
public static final io.opencensus.tags.TagKey HTTP_CLIENT_METHOD
public static final io.opencensus.tags.TagKey HTTP_SERVER_METHOD
public static final io.opencensus.tags.TagKey HTTP_SERVER_ROUTE
private void <init> ()
static void <clinit> ()
}
io/opencensus/contrib/http/HttpServerHandler.class
HttpServerHandler.java
package io.opencensus.contrib.http
public io.opencensus.contrib.http.HttpServerHandler extends io.opencensus.contrib.http.AbstractHttpHandler {
private final io.opencensus.trace.propagation.TextFormat$Getter getter
private final io.opencensus.trace.propagation.TextFormat textFormat
private final io.opencensus.trace.Tracer tracer
private final Boolean publicEndpoint
private final io.opencensus.stats.StatsRecorder statsRecorder
private final io.opencensus.tags.Tagger tagger
public void <init> (io.opencensus.trace.Tracer, io.opencensus.contrib.http.HttpExtractor, io.opencensus.trace.propagation.TextFormat, io.opencensus.trace.propagation.TextFormat$Getter, java.lang.Boolean)
io.opencensus.trace.Tracer tracer
io.opencensus.contrib.http.HttpExtractor extractor
io.opencensus.trace.propagation.TextFormat textFormat
io.opencensus.trace.propagation.TextFormat$Getter getter
Boolean publicEndpoint
public io.opencensus.contrib.http.HttpRequestContext handleStart (java.lang.Object, java.lang.Object)
Object carrier
Object request
io.opencensus.trace.SpanBuilder spanBuilder
String spanName
io.opencensus.trace.SpanContext spanContext
io.opencensus.trace.Span span
public void handleEnd (io.opencensus.contrib.http.HttpRequestContext, java.lang.Object, java.lang.Object, java.lang.Throwable)
io.opencensus.contrib.http.HttpRequestContext context
Object request
Object response
Throwable error
int httpCode
private void recordStats (io.opencensus.contrib.http.HttpRequestContext, java.lang.Object, int)
io.opencensus.contrib.http.HttpRequestContext context
Object request
int httpCode
double requestLatency
String methodStr
String routeStr
io.opencensus.tags.TagContext startCtx
public volatile synthetic io.opencensus.trace.Span getSpanFromContext (io.opencensus.contrib.http.HttpRequestContext)
}
io/opencensus/contrib/http/HttpRequestContext.class
HttpRequestContext.java
package io.opencensus.contrib.http
public io.opencensus.contrib.http.HttpRequestContext extends java.lang.Object {
static final long INVALID_STARTTIME
static final io.opencensus.tags.TagMetadata METADATA_NO_PROPAGATION
final long requestStartTime
final io.opencensus.trace.Span span
java.util.concurrent.atomic.AtomicLong sentMessageSize
java.util.concurrent.atomic.AtomicLong receiveMessageSize
java.util.concurrent.atomic.AtomicLong sentSeqId
java.util.concurrent.atomic.AtomicLong receviedSeqId
final io.opencensus.tags.TagContext tagContext
void <init> (io.opencensus.trace.Span, io.opencensus.tags.TagContext)
io.opencensus.trace.Span span
io.opencensus.tags.TagContext tagContext
static void <clinit> ()
}
io/opencensus/contrib/http/HttpExtractor.class
HttpExtractor.java
package io.opencensus.contrib.http
public abstract io.opencensus.contrib.http.HttpExtractor extends java.lang.Object {
public void <init> ()
public abstract java.lang.String getRoute (java.lang.Object)
public abstract java.lang.String getUrl (java.lang.Object)
public abstract java.lang.String getHost (java.lang.Object)
public abstract java.lang.String getMethod (java.lang.Object)
public abstract java.lang.String getPath (java.lang.Object)
public abstract java.lang.String getUserAgent (java.lang.Object)
public abstract int getStatusCode (java.lang.Object)
}
io/opencensus/contrib/http/AbstractHttpHandler.class
AbstractHttpHandler.java
package io.opencensus.contrib.http
abstract io.opencensus.contrib.http.AbstractHttpHandler extends java.lang.Object {
final io.opencensus.contrib.http.HttpExtractor extractor
void <init> (io.opencensus.contrib.http.HttpExtractor)
io.opencensus.contrib.http.HttpExtractor extractor
static void recordMessageEvent (io.opencensus.trace.Span, long, io.opencensus.trace.MessageEvent$Type, long, long)
io.opencensus.trace.Span span
long id
io.opencensus.trace.MessageEvent$Type type
long uncompressedMessageSize
long compressedMessageSize
io.opencensus.trace.MessageEvent messageEvent
private static void putAttributeIfNotEmptyOrNull (io.opencensus.trace.Span, java.lang.String, java.lang.String)
io.opencensus.trace.Span span
String key
String value
public final void handleMessageSent (io.opencensus.contrib.http.HttpRequestContext, long)
io.opencensus.contrib.http.HttpRequestContext context
long bytes
public final void handleMessageReceived (io.opencensus.contrib.http.HttpRequestContext, long)
io.opencensus.contrib.http.HttpRequestContext context
long bytes
void spanEnd (io.opencensus.trace.Span, int, java.lang.Throwable)
io.opencensus.trace.Span span
int httpStatus
Throwable error
final java.lang.String getSpanName (java.lang.Object, io.opencensus.contrib.http.HttpExtractor)
Object request
io.opencensus.contrib.http.HttpExtractor extractor
String path
final void addSpanRequestAttributes (io.opencensus.trace.Span, java.lang.Object, io.opencensus.contrib.http.HttpExtractor)
io.opencensus.trace.Span span
Object request
io.opencensus.contrib.http.HttpExtractor extractor
public io.opencensus.trace.Span getSpanFromContext (io.opencensus.contrib.http.HttpRequestContext)
io.opencensus.contrib.http.HttpRequestContext context
io.opencensus.contrib.http.HttpRequestContext getNewContext (io.opencensus.trace.Span, io.opencensus.tags.TagContext)
io.opencensus.trace.Span span
io.opencensus.tags.TagContext tagContext
}