Class OtlpHttpExporterModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanConfigure compression.Configure the encoding used for messages.Configure endpoint, including the signal specific path.Configure headers.Configure headers.Configure max time (in milliseconds) to wait for each export.getTls()Configure TLS settings for the exporter.inthashCode()toString()withCompression(String compression) withEncoding(OtlpHttpEncodingModel encoding) withEndpoint(String endpoint) withHeaders(List<NameStringValuePairModel> headers) withHeadersList(String headersList) withTimeout(Integer timeout) withTls(HttpTlsModel tls)
-
Constructor Details
-
OtlpHttpExporterModel
public OtlpHttpExporterModel()
-
-
Method Details
-
getEndpoint
Configure endpoint, including the signal specific path.If omitted or null, the http://localhost:4318/v1/{signal} (where signal is 'traces', 'logs', or 'metrics') is used.
-
withEndpoint
-
getTls
Configure TLS settings for the exporter.If omitted, system default TLS settings are used.
-
withTls
-
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
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
-
getCompression
Configure compression.Known values include: gzip, none. Implementations may support other compression algorithms.
If omitted or null, none is used.
-
withCompression
-
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
-
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
-
toString
-
hashCode
public int hashCode() -
equals
-