Skip to content

Commit

Permalink
chore: add method comments
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlaurin committed May 8, 2024
1 parent 3094910 commit 5cf97d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/lib/opentelemetry/common/utilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ def truncate_attribute_value(value, limit)
end
end

# Disables tracing within the provided block.
# Disables tracing within the provided block
# If no block is provided instead returns an
# untraced ctx.
#
# @param [optional Context] context Accepts an explicit context, defaults to current
def untraced(context = Context.current)
context = context.set_value(UNTRACED_KEY, true)
if block_given?
Expand Down

0 comments on commit 5cf97d5

Please sign in to comment.