Class OtlpHttpMetricExporterModel

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

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

    • OtlpHttpMetricExporterModel

      public OtlpHttpMetricExporterModel()
  • Method Details

    • getEndpoint

      @Nullable public String getEndpoint()
      Configure endpoint.

      If omitted or null, http://localhost:4318/v1/metrics is used.

    • withEndpoint

      public OtlpHttpMetricExporterModel withEndpoint(String endpoint)
    • getTls

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

      If omitted, system default TLS settings are used.

    • withTls

    • 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.

    • withHeaders

    • 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.

    • withHeadersList

      public OtlpHttpMetricExporterModel withHeadersList(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.

    • withCompression

      public OtlpHttpMetricExporterModel withCompression(String compression)
    • 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.

    • withTimeout

      public OtlpHttpMetricExporterModel withTimeout(Integer timeout)
    • getEncoding

      @Nullable public OtlpHttpEncodingModel getEncoding()
      Configure the encoding used for messages.

      Implementations may not support json.

      Values include:

      * json: Protobuf JSON encoding.

      * protobuf: Protobuf binary encoding.

      If omitted, protobuf is used.

    • withEncoding

      public OtlpHttpMetricExporterModel withEncoding(OtlpHttpEncodingModel encoding)
    • getTemporalityPreference

      @Nullable public ExporterTemporalityPreferenceModel getTemporalityPreference()
      Configure temporality preference.

      Values include:

      * cumulative: Use cumulative aggregation temporality for all instrument types.

      * delta: Use delta aggregation for all instrument types except up down counter and asynchronous up down counter.

      * low_memory: Use delta aggregation temporality for counter and histogram instrument types. Use cumulative aggregation temporality for all other instrument types.

      If omitted, cumulative is used.

    • withTemporalityPreference

      public OtlpHttpMetricExporterModel withTemporalityPreference(ExporterTemporalityPreferenceModel temporalityPreference)
    • getDefaultHistogramAggregation

      @Nullable public ExporterDefaultHistogramAggregationModel getDefaultHistogramAggregation()
      Configure default histogram aggregation.

      Values include:

      * base2_exponential_bucket_histogram: Use base2 exponential histogram as the default aggregation for histogram instruments.

      * explicit_bucket_histogram: Use explicit bucket histogram as the default aggregation for histogram instruments.

      If omitted, explicit_bucket_histogram is used.

    • withDefaultHistogramAggregation

      public OtlpHttpMetricExporterModel withDefaultHistogramAggregation(ExporterDefaultHistogramAggregationModel defaultHistogramAggregation)
    • 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