Package codes.grow.packages.betterstack
Record Class BetterStackOtlpLogExporterOptions
java.lang.Object
java.lang.Record
codes.grow.packages.betterstack.BetterStackOtlpLogExporterOptions
- Record Components:
protocol- payload format (defaultOtlpProtocol.PROTOBUF)scopeName- instrumentation scope name (defaultOtlpLogs.DEFAULT_SCOPE_NAME)maxRequestBytes- uncompressed bytes per request, 1 to 10 MiB (default 10 MiB)
public record BetterStackOtlpLogExporterOptions(OtlpProtocol protocol, String scopeName, int maxRequestBytes)
extends Record
Options of a
BetterStackOtlpLogExporter.-
Constructor Summary
ConstructorsConstructorDescriptionBetterStackOtlpLogExporterOptions(OtlpProtocol protocol, String scopeName, int maxRequestBytes) Fills defaults fornull/ 0 values. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Defaults: protobuf, default scope, 10 MiB.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxRequestBytesrecord component.of(OtlpProtocol protocol) Defaults with another payload format.protocol()Returns the value of theprotocolrecord component.Returns the value of thescopeNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BetterStackOtlpLogExporterOptions
public BetterStackOtlpLogExporterOptions(OtlpProtocol protocol, String scopeName, int maxRequestBytes) Fills defaults fornull/ 0 values.- Parameters:
protocol- payload formatscopeName- scope namemaxRequestBytes- request limit, 0 for the default
-
-
Method Details
-
defaults
Defaults: protobuf, default scope, 10 MiB.- Returns:
- options
-
of
Defaults with another payload format.- Parameters:
protocol- payload format- Returns:
- options
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
protocol
Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
scopeName
Returns the value of thescopeNamerecord component.- Returns:
- the value of the
scopeNamerecord component
-
maxRequestBytes
public int maxRequestBytes()Returns the value of themaxRequestBytesrecord component.- Returns:
- the value of the
maxRequestBytesrecord component
-