public final class CensusHttpModule extends Object
Constructor and Description |
---|
CensusHttpModule(io.opencensus.trace.Tracer tracer,
boolean isRecordEvents)
Creates a
CensusHttpModule with given parameters. |
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequestInitializer |
getHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer initializer)
Returns the
HttpExecuteInterceptor used when initializing the HttpRequest . |
io.opencensus.trace.Tracer |
getTracer()
Returns the tracing component of OpenCensus.
|
boolean |
isRecordEvents()
Returns whether spans are stored locally.
|
public CensusHttpModule(io.opencensus.trace.Tracer tracer, boolean isRecordEvents)
CensusHttpModule
with given parameters.tracer
- the OpenCensus Tracer
.isRecordEvents
- whether spans are stored locally.public io.opencensus.trace.Tracer getTracer()
public boolean isRecordEvents()
public com.google.api.client.http.HttpRequestInitializer getHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer initializer)
HttpExecuteInterceptor
used when initializing the HttpRequest
.initializer
- the original initializer which will be executed before this initializer.HttpExecuteInterceptor
.Copyright © 2019 Google LLC. All rights reserved.