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 18e4fa3 commit 164ddc4
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 @@ -86,7 +86,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 164ddc4

Please sign in to comment.