You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g. if ENV['OTEL_ATTRIBUTE_COUNT_LIMIT'] == '2' then the following code should produce a span with attributes {"a" => 1, "b" => 2} but instead it contains {"b" => 2, "c" => 3}:
Description of the bug
See #1533 (comment) for background. open-telemetry/opentelemetry-specification#1130 added span limits to the spec. A key requirement is:
Our implementation of span limits instead drops attributes added earlier when the attribute count limit is exceeded:
opentelemetry-ruby/sdk/lib/opentelemetry/sdk/trace/span.rb
Lines 347 to 354 in afc7bc5
E.g. if
ENV['OTEL_ATTRIBUTE_COUNT_LIMIT'] == '2'
then the following code should produce a span with attributes{"a" => 1, "b" => 2}
but instead it contains{"b" => 2, "c" => 3}
:Share a simplified reproduction if possible
The text was updated successfully, but these errors were encountered: