lib/opentelemetry/trace/span.rb in opentelemetry-api-0.12.1 vs lib/opentelemetry/trace/span.rb in opentelemetry-api-0.13.0
- old
+ new
@@ -83,12 +83,16 @@
# Record an exception during the execution of this span. Multiple exceptions
# can be recorded on a span.
#
# @param [Exception] exception The exception to recorded
+ # @param [optional Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}]
+ # attributes One or more key:value pairs, where the keys must be
+ # strings and the values may be (array of) string, boolean or numeric
+ # type.
#
# @return [void]
- def record_exception(exception); end
+ def record_exception(exception, attributes: nil); end
# Sets the Status to the Span
#
# If used, this will override the default Span status. Default is OK.
#