public abstract static class StackdriverTraceConfiguration.Builder extends Object
StackdriverTraceConfiguration.| Modifier and Type | Method and Description |
|---|---|
abstract 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 |
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 build()
StackdriverTraceConfiguration.StackdriverTraceConfiguration.