Class OtlpGrpcExporterModel

java.lang.Object
io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.OtlpGrpcExporterModel

@Generated("io.opentelemetry.gradle.DeclarativeConfigPojoGenerator") public class OtlpGrpcExporterModel extends Object
  • Constructor Details

    • OtlpGrpcExporterModel

      public OtlpGrpcExporterModel()
  • Method Details

    • getEndpoint

      @Nullable public String getEndpoint()
      Configure endpoint.

      If omitted or null, http://localhost:4317 is used.

    • setEndpoint

      public OtlpGrpcExporterModel setEndpoint(String endpoint)
    • getTls

      @Nullable public GrpcTlsModel getTls()
      Configure TLS settings for the exporter.

      If omitted, system default TLS settings are used.

    • setTls

      public OtlpGrpcExporterModel setTls(GrpcTlsModel tls)
    • getHeaders

      @Nullable public List<NameStringValuePairModel> getHeaders()
      Configure headers. Entries have higher priority than entries from .headers_list.

      If an entry's .value is null, the entry is ignored.

      If omitted, no headers are added.

    • setHeaders

      public OtlpGrpcExporterModel setHeaders(List<NameStringValuePairModel> headers)
    • getHeadersList

      @Nullable public String getHeadersList()
      Configure headers. Entries have lower priority than entries from .headers.

      The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options for details.

      If omitted or null, no headers are added.

    • setHeadersList

      public OtlpGrpcExporterModel setHeadersList(String headersList)
    • getCompression

      @Nullable public String getCompression()
      Configure compression.

      Known values include: gzip, none. Implementations may support other compression algorithms.

      If omitted or null, none is used.

    • setCompression

      public OtlpGrpcExporterModel setCompression(String compression)
    • getMaxRequestSize

      @Nullable public Integer getMaxRequestSize()
      Configure the maximum size of each export request message in bytes, before compression.

      Value must be non-negative. A value of 0 indicates no limit (infinity) and is not recommended.

      If omitted or null, 67108864 (64 MiB) is used.

    • setMaxRequestSize

      public OtlpGrpcExporterModel setMaxRequestSize(Integer maxRequestSize)
    • getMaxResponseSize

      @Nullable public Integer getMaxResponseSize()
      Configure the maximum size of each export response in bytes, after decompression.

      Value must be positive.

      If omitted or null, 4194304 (4 MiB) is used.

    • setMaxResponseSize

      public OtlpGrpcExporterModel setMaxResponseSize(Integer maxResponseSize)
    • getTimeout

      @Nullable public Integer getTimeout()
      Configure max time (in milliseconds) to wait for each export.

      Value must be non-negative. A value of 0 indicates no limit (infinity).

      If omitted or null, 10000 is used.

    • setTimeout

      public OtlpGrpcExporterModel setTimeout(Integer timeout)
    • getExtensionProperties

      public Map<String,Object> getExtensionProperties()
    • setExtensionProperty

      public OtlpGrpcExporterModel setExtensionProperty(String name, @Nullable Object value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object