Interface OtlpExporterConfig

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
OtlpExporterConfig.BuilderBase.OtlpExporterConfigImpl

public interface OtlpExporterConfig extends Prototype.Api
Settings for OpenTelemetry OTLP exporters.
See Also:
  • Method Details

    • builder

      static OtlpExporterConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static OtlpExporterConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static OtlpExporterConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static OtlpExporterConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • timeout

      Optional<Duration> timeout()
      Exporter timeout.
      Returns:
      exporter timeout
    • endpoint

      Optional<URI> endpoint()
      Endpoint of the collector to which the exporter should transmit.
      Returns:
      collector endpoint
    • compression

      Optional<CompressionType> compression()
      Compression the exporter uses.
      Returns:
      compression type
    • headers

      Map<String,String> headers()
      Headers added to each export message.
      Returns:
      added headers
    • clientTlsPrivateKeyPem

      Optional<Resource> clientTlsPrivateKeyPem()
      TLS client key.
      Returns:
      TLS client key
    • clientTlsCertificatePem

      Optional<Resource> clientTlsCertificatePem()
      TLS certificate.
      Returns:
      TLS certificate
    • trustedCertificatesPem

      Optional<Resource> trustedCertificatesPem()
      Trusted certificates.
      Returns:
      trusted certificates
    • retryPolicy

      Optional<io.opentelemetry.sdk.common.export.RetryPolicy> retryPolicy()
      Retry policy.
      Returns:
      retry policy
    • protocol

      Exporter protocol type.
      Returns:
      exporter protocol type
    • sslContext

      Optional<SSLContext> sslContext()
      SSL context for the exporter.
      Returns:
      SSL context
    • trustManager

      Optional<X509TrustManager> trustManager()
      X509 trust manager for the exporter.
      Returns:
      X509 trust manager
    • meterProvider

      Optional<io.opentelemetry.api.metrics.MeterProvider> meterProvider()
      Meter provider for the exporter.
      Returns:
      meter provider