Class GrpcExporterBuilder<T extends Marshaler>
java.lang.Object
io.opentelemetry.exporter.internal.grpc.GrpcExporterBuilder<T>
A builder for
GrpcExporter.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGrpcExporterBuilder(String exporterName, String type, long defaultTimeoutSecs, URI defaultEndpoint, Supplier<BiFunction<io.grpc.Channel, String, MarshalerServiceStub<T, ?, ?>>> grpcStubFactory, String grpcEndpointPath) -
Method Summary
Modifier and TypeMethodDescriptionaddConstantHeader(String key, String value) build()copy()setChannel(io.grpc.ManagedChannel channel) setCompression(Compressor compressor) setConnectTimeout(long timeout, TimeUnit unit) setEndpoint(String endpoint) setHeadersSupplier(Supplier<Map<String, String>> headerSupplier) setKeyManagerFromCerts(byte[] privateKeyPem, byte[] certificatePem) setMeterProvider(Supplier<MeterProvider> meterProviderSupplier) setRetryPolicy(RetryPolicy retryPolicy) setSslContext(SSLContext sslContext, X509TrustManager trustManager) setTimeout(long timeout, TimeUnit unit) setTimeout(Duration timeout) setTrustManagerFromCerts(byte[] trustedCertificatesPem) toString()toString(boolean includePrefixAndSuffix)
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT_SECS
public static final long DEFAULT_CONNECT_TIMEOUT_SECS- See Also:
-
-
Constructor Details
-
GrpcExporterBuilder
public GrpcExporterBuilder(String exporterName, String type, long defaultTimeoutSecs, URI defaultEndpoint, Supplier<BiFunction<io.grpc.Channel, String, MarshalerServiceStub<T, ?, ?>>> grpcStubFactory, String grpcEndpointPath)
-
-
Method Details
-
setChannel
-
setTimeout
-
setTimeout
-
setConnectTimeout
-
setEndpoint
-
setCompression
-
setTrustManagerFromCerts
-
setKeyManagerFromCerts
-
setSslContext
-
addConstantHeader
-
setHeadersSupplier
-
setRetryPolicy
-
setMeterProvider
-
copy
-
build
-
toString
-
toString
-