lib/opentelemetry/exporter/zipkin/transformer.rb in opentelemetry-exporter-zipkin-0.21.0 vs lib/opentelemetry/exporter/zipkin/transformer.rb in opentelemetry-exporter-zipkin-0.22.0

- old
+ new

@@ -89,10 +89,10 @@ elsif span_data.status&.code == OpenTelemetry::Trace::Status::OK tags[STATUS_CODE_NAME] = STATUS_OK end end - def add_conditional_tags(zipkin_span, span_data, tags, service_name) # rubocop:disable Metrics/CyclomaticComplexity + def add_conditional_tags(zipkin_span, span_data, tags, service_name) dropped_attributes_count = span_data.total_recorded_attributes - span_data.attributes&.size.to_i dropped_events_count = span_data.total_recorded_events - span_data.events&.size.to_i dropped_links_count = span_data.total_recorded_links - span_data.links&.size.to_i tags['otel.dropped_attributes_count'] = dropped_attributes_count.to_s if dropped_attributes_count.positive? tags['otel.dropped_events_count'] = dropped_events_count.to_s if dropped_events_count.positive?