env

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BatchLogsProcessorScheduleDelayKey is the delay interval between two
	// consecutive exports (i.e. 5000).
	BatchLogsProcessorScheduleDelayKey = "OTEL_BLRP_SCHEDULE_DELAY"
	// BatchLogsProcessorExportTimeoutKey is the maximum allowed time to
	// export data (i.e. 3000).
	BatchLogsProcessorExportTimeoutKey = "OTEL_BLRP_EXPORT_TIMEOUT"
	// BatchLogsProcessorMaxQueueSizeKey is the maximum queue size (i.e. 2048).
	BatchLogsProcessorMaxQueueSizeKey = "OTEL_BLRP_MAX_QUEUE_SIZE"
	// BatchLogsProcessorMaxExportBatchSizeKey is the maximum batch size (i.e.
	// 512). Note: it must be less than or equal to
	// EnvBatchLogsProcessorMaxQueueSize.
	BatchLogsProcessorMaxExportBatchSizeKey = "OTEL_BLRP_MAX_EXPORT_BATCH_SIZE"
)

Environment variable names.

Variables

This section is empty.

Functions

func BatchLogsProcessorExportTimeout

func BatchLogsProcessorExportTimeout(defaultValue int) int

BatchLogsProcessorExportTimeout returns the environment variable value for the OTEL_BLRP_EXPORT_TIMEOUT key if it exists, otherwise defaultValue is returned.

func BatchLogsProcessorMaxExportBatchSize

func BatchLogsProcessorMaxExportBatchSize(defaultValue int) int

BatchLogsProcessorMaxExportBatchSize returns the environment variable value for the OTEL_BLRP_MAX_EXPORT_BATCH_SIZE key if it exists, otherwise defaultValue is returned.

func BatchLogsProcessorMaxQueueSize

func BatchLogsProcessorMaxQueueSize(defaultValue int) int

BatchLogsProcessorMaxQueueSize returns the environment variable value for the OTEL_BLRP_MAX_QUEUE_SIZE key if it exists, otherwise defaultValue is returned.

func BatchLogsProcessorScheduleDelay

func BatchLogsProcessorScheduleDelay(defaultValue int) int

BatchLogsProcessorScheduleDelay returns the environment variable value for the OTEL_BLRP_SCHEDULE_DELAY key if it exists, otherwise defaultValue is returned.

func IntEnvOr

func IntEnvOr(key string, defaultValue int) int

IntEnvOr returns the int value of the environment variable with name key if it exists, it is not empty, and the value is an int. Otherwise, defaultValue is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL