Skip to content

Commit d1e5b5e

Browse files
estolfopicandocodigo
authored andcommitted
Inline documentation
1 parent ca6ffcd commit d1e5b5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch/lib/elasticsearch.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def method_missing(name, *args, &block)
6161
# The signature for perform_request is:
6262
# method, path, params, body, headers, opts
6363
# The last arg is opts, which shouldn't be sent when `perform_request` is called
64-
# directly.
64+
# directly. Check if :endpoint is a key, which means it's the extra identifier
65+
# used for OpenTelemetry.
6566
args.pop if args[-1][:endpoint]
6667
if (opaque_id = args[2]&.delete(:opaque_id))
6768
headers = args[4] || {}

0 commit comments

Comments
 (0)