Package io.opentelemetry.sdk.logs
Class LogLimits
java.lang.Object
io.opentelemetry.sdk.logs.LogLimits
Class that holds limits enforced during log recording.
Note: To allow dynamic updates of LogLimits you should register a Supplier with SdkLogEmitterProviderBuilder.setLogLimits(Supplier) which supplies
dynamic configs when queried.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogLimitsBuilderbuilder()Returns a newLogLimitsBuilderto construct aLogLimits.static LogLimitsReturns the defaultLogLimits.abstract intReturns the max number of characters for string attribute values.abstract intReturns the max number of attributes perLogData.Returns aLogLimitsBuilderinitialized to the same property values as the current instance.
-
Method Details
-
getDefault
Returns the defaultLogLimits. -
builder
Returns a newLogLimitsBuilderto construct aLogLimits. -
getMaxNumberOfAttributes
public abstract int getMaxNumberOfAttributes()Returns the max number of attributes perLogData.- Returns:
- the max number of attributes per
LogData.
-
getMaxAttributeValueLength
public abstract int getMaxAttributeValueLength()Returns the max number of characters for string attribute values. For string array attribute values, applies to each entry individually.- Returns:
- the max number of characters for attribute strings.
-
toBuilder
Returns aLogLimitsBuilderinitialized to the same property values as the current instance.- Returns:
- a
LogLimitsBuilderinitialized to the same property values as the current instance.
-