lib/opentelemetry/sdk/trace/span.rb in opentelemetry-sdk-1.5.0 vs lib/opentelemetry/sdk/trace/span.rb in opentelemetry-sdk-1.6.0

- old
+ new

@@ -269,9 +269,12 @@ if @ended OpenTelemetry.logger.warn('Calling finish on an ended Span.') return self end @end_timestamp = relative_timestamp(end_timestamp) + @span_processors.each do |processor| + processor.on_finishing(self) if processor.respond_to?(:on_finishing) + end @attributes = validated_attributes(@attributes).freeze @events.freeze @links.freeze @ended = true end