# README
Modified Batch Span Processor
Since the original BatchSpanProcessor does not send metrics for spans received and spans dropped, the modified BatchSpanProcessor creates and populates those metrics so the user can track whether there are spans being dropped.
We have kept track of the original files modified so it's easier to figure out the changes we added. When upgrading, copy the newer files into their go.original counterparts and then do a diff with the modified.go files to figure out what changes to make in order to upgrade the modified files.
The paths of the files modified:
Since we cannot use the internal logger, we have adapted it at logger.go.
# Functions
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.
No description provided by the author
Debug prints messages about all internal changes in the API or SDK.
Error prints messages about exceptional states of the API or SDK.
Info prints messages about the general state of the API or SDK.
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.
NewBatchSpanProcessor creates a new SpanProcessor that will send completed span batches to the exporter with the supplied options.
SpanAttributeCount returns the environment variable value for the OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT key if it exists.
SpanAttributeValueLength returns the environment variable value for the OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT key if it exists.
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.
Warn prints messages about warnings in the API or SDK.
WithBatchTimeout returns a BatchSpanProcessorOption that configures the maximum delay allowed for a BatchSpanProcessor before it will export any held span (whether the queue is full or not).
WithBlocking returns a BatchSpanProcessorOption that configures a BatchSpanProcessor to wait for enqueue operations to succeed instead of dropping data when the queue is full.
WithExportTimeout returns a BatchSpanProcessorOption that configures the amount of time a BatchSpanProcessor waits for an exporter to export before abandoning the export.
WithMaxExportBatchSize returns a BatchSpanProcessorOption that configures the maximum export batch size allowed for a BatchSpanProcessor.
WithMaxQueueSize returns a BatchSpanProcessorOption that configures the maximum queue size allowed for a BatchSpanProcessor.
# Constants
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.
BatchSpanProcessorMaxExportBatchSizeKey is the maximum batch size (i.e.
BatchSpanProcessorMaxQueueSizeKey is the maximum queue size (i.e.
BatchSpanProcessorScheduleDelayKey is the delay interval between two consecutive exports (i.e.
Defaults for BatchSpanProcessorOptions.
Defaults for BatchSpanProcessorOptions.
Defaults for BatchSpanProcessorOptions.
Defaults for BatchSpanProcessorOptions.
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.