You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/11/22 00:45:13 UTC
[GitHub] [couchdb] jaydoane commented on a change in pull request #2323: Add
operation names for all HTTP endpoints
jaydoane commented on a change in pull request #2323: Add operation names for all HTTP endpoints
URL: https://github.com/apache/couchdb/pull/2323#discussion_r349366269
##########
File path: src/chttpd/src/chttpd.erl
##########
@@ -1246,12 +1246,16 @@ start_span(Req) ->
path_parts = PathParts
} = Req,
{OperationName, ExtraTags} = get_action(Req),
+ Path = case PathParts of
+ [] -> <<"">>;
+ [_ | _] -> filename:join(PathParts)
+ end,
Tags = maps:merge(#{
peer => Peer,
'http.method' => Method,
nonce => Nonce,
'http.url' => MochiReq:get(raw_path),
- path_parts => PathParts,
+ path_parts => Path,
Review comment:
Why leave the field named `path_parts` here when it's now a binary and not a list?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services