Skip to content

Commit 6c4ada5

Browse files
committed
Clarify method docs for #instrument
1 parent 544c29e commit 6c4ada5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/net/ldap/instrumentation.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ module Net::LDAP::Instrumentation
44

55
# Internal: Instrument a block with the defined instrumentation service.
66
#
7+
# Yields the event payload if a block is given.
8+
#
9+
# Skips instrumentation if no service is set.
10+
#
711
# Returns the return value of the block.
812
def instrument(event, payload = {})
913
if instrumentation_service

0 commit comments

Comments
 (0)