[ 
https://issues.apache.org/jira/browse/SOLR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495077
 ] 

Yonik Seeley commented on SOLR-232:
-----------------------------------

What's the effect of req.setAttribute() and how is it better/different from the 
logging Solr already does?

I don't even see the setAttribute method... is this Tomcat only, or am I 
looking in the wrong spot?

Also, rather than adding new methods to SolrQueryResponse, you might consider 
using SolrQueryRequest.getContext()

> let Solr set request headers (for logging)
> ------------------------------------------
>
>                 Key: SOLR-232
>                 URL: https://issues.apache.org/jira/browse/SOLR-232
>             Project: Solr
>          Issue Type: New Feature
>         Environment: tomcat?
>            Reporter: Ian Holsman
>            Priority: Minor
>         Attachments: meta.patch
>
>
> I need the ability to log certain information about a request so that I can 
> feed it into performance and capacity monitoring systems.
> I would like to know things like
> - how long the request took 
> - how many rows were fetched and returned
> - what handler was called.
> per request.
> the following patch is 1 way to implement this, I'm sure there are better 
> ways.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to