Skip to content

Commit

Permalink
fix: in_span performance (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlaurin committed Aug 15, 2023
1 parent 062f688 commit e654d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/lib/opentelemetry/trace/tracer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Tracer
#
# @yield [span, context] yields the newly created span and a context containing the
# span to the block.
def in_span(name, attributes: nil, links: nil, start_timestamp: nil, kind: nil, &block)
def in_span(name, attributes: nil, links: nil, start_timestamp: nil, kind: nil)
span = nil
span = start_span(name, attributes: attributes, links: links, start_timestamp: start_timestamp, kind: kind)
Trace.with_span(span) { |s, c| yield s, c }
Expand Down

0 comments on commit e654d73

Please sign in to comment.