opentelemetry-go This Week: BatchProcessor queue_full Metric and Attribute Hashing Fix

I looked at the last week of commits in opentelemetry-go, the Go SDK for OpenTelemetry tracing, metrics and logs. 23 commits landed, 230 files changed with about 3.7k insertions. Most of it is dependency churn, but three changes matter if you run the SDK in production: a queue observability fix in the log BatchProcessor, an attribute hashing correction, and validation of OTLP timeout environment variables.

BatchProcessor now records queue_full synchronously

If you use the log SDK with a BatchProcessorOnEmit, dropped log records used to show up in the queue_full metric late, or not at all when the pipeline was closing down. The change in sdk/log: record queue_full metric synchronously in BatchProcessor.OnEmit (#9524) moves the accounting into OnEmit itself. When the queue is full, the counter increments right away instead of waiting for background processing.

This matters for alerting. If you alert on otel.sdk.log.record.queue_full or a similar drop counter, the signal is now closer to real time. Before this change, a burst that overflowed the queue could look smaller in metrics than it actually was.

Worth checking: whether your dashboards assumed the earlier, delayed behavior. Dropping records is the normal overload response of the batch processor, the metric just reports it more honestly now.

Attribute hashing gets string delimiters

A quieter but important fix is Delimit strings in attribute hashing (#9508). Attribute sets are keyed by hashing the keys and values. Without delimiters, two different key and value pairs could hash the same way, for example a key ending where a value begins colliding with a different split. The change adds explicit boundaries between the strings before hashing.

Practical effect: fewer false “same attribute set” matches, which affects internal map keys and deduplication paths in the metric SDK. No public API changed. If you noticed rare, unexplainable attribute set merges in previous versions, this is the fix for that class of bug.

OTLP timeout environment values are now validated

Both the trace and metric OTLP exporters read a timeout from the environment (OTEL_EXPORTER_OTLP_TIMEOUT and per signal variants). The fix in reject negative and overflowing timeout env values (#9338) makes the otlptrace and otlpmetric exporters reject negative values and values that overflow the duration type. Previously a nonsense value could produce confusing behavior instead of a clear error.

If you configure exporters through environment variables, this is a footgun removed. A bad value now fails fast with a clear message rather than silently misbehaving.

Semantic conventions v1.45.0 and dependency week

The semconv package adopted v1.45.0 in semconv: adopt v1.45.0 (#9492). If you import go.opentelemetry.io/otel/semconv, the new constants are there after the next release. The rest of the window was renovation:

On top of that, a new runnable example landed in the trace package: ExampleContextWithRemoteSpanContext (#9544). It shows that a span context you attach as a remote context reads back as remote, which is a small but useful reference for anyone wiring extracted contexts manually.

What to watch

  • The semconv v1.45.0 constants are merged but reach you through the next tagged release. Check the CHANGELOG before bumping imports.
  • The bound Sum aggregation work in sdk/metric (#9278) looks like the start of more aggregation performance work. Expect follow up commits in that area.
  • If you set OTLP timeout environment variables from deployment tooling, make sure the values are plain positive integers in milliseconds. Negative or overflowing values now error instead of being tolerated.

← All updates