Package com.tnsai.quality.observability
Class TnsAITelemetry.Builder
java.lang.Object
com.tnsai.quality.observability.TnsAITelemetry.Builder
- Enclosing class:
TnsAITelemetry
Builder for TnsAITelemetry configuration.
-
Method Summary
Modifier and TypeMethodDescriptionbatchDelayMillis(int millis) Sets the batch delay in milliseconds for span export.build()Builds the TnsAITelemetry instance.enabled(boolean enabled) Enables or disables telemetry.exportTimeoutSeconds(int seconds) Sets the export timeout in seconds.maxBatchSize(int size) Sets the max batch size for span export.maxQueueSize(int size) Sets the max queue size for span batching.metricExportIntervalSeconds(int seconds) Sets the metric export interval in seconds.otlpEndpoint(String endpoint) Sets the OTLP exporter endpoint.serviceName(String serviceName) Sets the service name for telemetry.serviceVersion(String serviceVersion) Sets the service version.
-
Method Details
-
serviceName
Sets the service name for telemetry. -
serviceVersion
Sets the service version. -
otlpEndpoint
Sets the OTLP exporter endpoint. -
enabled
Enables or disables telemetry. -
exportTimeoutSeconds
Sets the export timeout in seconds. -
batchDelayMillis
Sets the batch delay in milliseconds for span export. -
maxQueueSize
Sets the max queue size for span batching. -
maxBatchSize
Sets the max batch size for span export. -
metricExportIntervalSeconds
Sets the metric export interval in seconds. -
build
Builds the TnsAITelemetry instance.
-