public abstract static class StackdriverTraceConfiguration.Builder extends Object
StackdriverTraceConfiguration.| Modifier and Type | Method and Description |
|---|---|
StackdriverTraceConfiguration |
build()
Builds a
StackdriverTraceConfiguration. |
abstract StackdriverTraceConfiguration.Builder |
setCredentials(com.google.auth.Credentials credentials)
Sets the
Credentials used to authenticate API calls. |
abstract StackdriverTraceConfiguration.Builder |
setDeadline(io.opencensus.common.Duration deadline)
Sets the deadline for exporting to Stackdriver Trace backend.
|
abstract StackdriverTraceConfiguration.Builder |
setFixedAttributes(Map<String,io.opencensus.trace.AttributeValue> fixedAttributes)
Sets the map of attributes that is added to all the exported spans.
|
abstract StackdriverTraceConfiguration.Builder |
setProjectId(String projectId)
Sets the cloud project id.
|
abstract StackdriverTraceConfiguration.Builder |
setTraceServiceStub(com.google.cloud.trace.v2.stub.TraceServiceStub traceServiceStub)
Sets the trace service stub used to send gRPC calls.
|
public abstract StackdriverTraceConfiguration.Builder setCredentials(com.google.auth.Credentials credentials)
Credentials used to authenticate API calls.credentials - the Credentials.public abstract StackdriverTraceConfiguration.Builder setProjectId(String projectId)
projectId - the cloud project id.public abstract StackdriverTraceConfiguration.Builder setTraceServiceStub(com.google.cloud.trace.v2.stub.TraceServiceStub traceServiceStub)
traceServiceStub - the TraceServiceStub.public abstract StackdriverTraceConfiguration.Builder setFixedAttributes(Map<String,io.opencensus.trace.AttributeValue> fixedAttributes)
fixedAttributes - the map of attributes that is added to all the exported spans.public abstract StackdriverTraceConfiguration.Builder setDeadline(io.opencensus.common.Duration deadline)
If both TraceServiceStub and Deadline are set, TraceServiceStub
takes precedence and Deadline will not be respected.
deadline - the export deadline.public StackdriverTraceConfiguration build()
StackdriverTraceConfiguration.StackdriverTraceConfiguration.