package env
Import Path
go.opentelemetry.io/otel/sdk/internal/env (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
Package env provides types and functionality for environment variable support
in the OpenTelemetry SDK.
Package-Level Functions (total 11)
BatchSpanProcessorExportTimeout returns the environment variable value for
the OTEL_BSP_EXPORT_TIMEOUT key if it exists, otherwise defaultValue is
returned.
BatchSpanProcessorMaxExportBatchSize returns the environment variable value for
the OTEL_BSP_MAX_EXPORT_BATCH_SIZE key if it exists, otherwise defaultValue
is returned.
BatchSpanProcessorMaxQueueSize returns the environment variable value for
the OTEL_BSP_MAX_QUEUE_SIZE key if it exists, otherwise defaultValue is
returned.
BatchSpanProcessorScheduleDelay returns the environment variable value for
the OTEL_BSP_SCHEDULE_DELAY key if it exists, otherwise defaultValue is
returned.
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.
SpanAttributeCount returns the environment variable value for the
OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT key if it exists. Otherwise, the
environment variable value for OTEL_ATTRIBUTE_COUNT_LIMIT is returned or
defaultValue if that is not set.
SpanAttributeValueLength returns the environment variable value for the
OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT key if it exists. Otherwise, the
environment variable value for OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT is
returned or defaultValue if that is not set.
SpanEventAttributeCount returns the environment variable value for the
OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT key if it exists, otherwise defaultValue
is returned.
SpanEventCount returns the environment variable value for the
OTEL_SPAN_EVENT_COUNT_LIMIT key if it exists, otherwise defaultValue is
returned.
SpanLinkAttributeCount returns the environment variable value for the
OTEL_LINK_ATTRIBUTE_COUNT_LIMIT key if it exists, otherwise defaultValue is
returned.
SpanLinkCount returns the environment variable value for the
OTEL_SPAN_LINK_COUNT_LIMIT key if it exists, otherwise defaultValue is
returned.
Package-Level Constants (total 12)
AttributeCountKey is the maximum allowed span attribute count.
AttributeValueLengthKey is the maximum allowed attribute value size.
BatchSpanProcessorExportTimeoutKey is the maximum allowed time to
export data (i.e. 3000).
BatchSpanProcessorMaxExportBatchSizeKey is the maximum batch size (i.e.
512). Note: it must be less than or equal to
BatchSpanProcessorMaxQueueSize.
BatchSpanProcessorMaxQueueSizeKey is the maximum queue size (i.e. 2048).
BatchSpanProcessorScheduleDelayKey is the delay interval between two
consecutive exports (i.e. 5000).
SpanAttributeCountKey is the maximum allowed span attribute count for a
span.
SpanAttributeValueLengthKey is the maximum allowed attribute value size
for a span.
SpanEventAttributeCountKey is the maximum allowed attribute per span
event count.
SpanEventCountKey is the maximum allowed span event count.
SpanLinkAttributeCountKey is the maximum allowed attribute per span
link count.
SpanLinkCountKey is the maximum allowed span link count.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |