public abstract static class OcAgentTraceExporterConfiguration.Builder extends Object
OcAgentTraceExporterConfiguration.| Modifier and Type | Method and Description |
|---|---|
abstract OcAgentTraceExporterConfiguration |
build()
Builds a
OcAgentTraceExporterConfiguration. |
abstract OcAgentTraceExporterConfiguration.Builder |
setEnableConfig(boolean enableConfig)
Sets whether
OcAgentTraceExporter should handle the config streams. |
abstract OcAgentTraceExporterConfiguration.Builder |
setEndPoint(String endPoint)
Sets the end point of OC-Agent server.
|
abstract OcAgentTraceExporterConfiguration.Builder |
setRetryInterval(io.opencensus.common.Duration retryInterval)
Sets the retry time interval when trying to connect to Agent.
|
abstract OcAgentTraceExporterConfiguration.Builder |
setServiceName(String serviceName)
Sets the service name to be used for this
OcAgentTraceExporter. |
abstract OcAgentTraceExporterConfiguration.Builder |
setSslContext(io.netty.handler.ssl.SslContext sslContext)
Sets the
SslContext for secure TLS gRPC connection. |
abstract OcAgentTraceExporterConfiguration.Builder |
setUseInsecure(Boolean useInsecure)
Sets whether to disable client transport security for the exporter's gRPC connection or not.
|
public abstract OcAgentTraceExporterConfiguration.Builder setEndPoint(String endPoint)
endPoint - the end point of OC-Agent.public abstract OcAgentTraceExporterConfiguration.Builder setUseInsecure(Boolean useInsecure)
useInsecure - whether disable client transport security for the exporter's gRPC
connection.public abstract OcAgentTraceExporterConfiguration.Builder setSslContext(io.netty.handler.ssl.SslContext sslContext)
SslContext for secure TLS gRPC connection.sslContext - the SslContext.public abstract OcAgentTraceExporterConfiguration.Builder setServiceName(String serviceName)
OcAgentTraceExporter.serviceName - the service name.public abstract OcAgentTraceExporterConfiguration.Builder setRetryInterval(io.opencensus.common.Duration retryInterval)
retryInterval - the retry time interval.public abstract OcAgentTraceExporterConfiguration.Builder setEnableConfig(boolean enableConfig)
OcAgentTraceExporter should handle the config streams.enableConfig - whether OcAgentTraceExporter should handle the config streams.public abstract OcAgentTraceExporterConfiguration build()
OcAgentTraceExporterConfiguration.OcAgentTraceExporterConfiguration.