Hi Kasun, I think we can send the request header as a String safely without worrying about overhead. This should be useful for someone who is having some custom values in the header to use this design.
Further as we discussed offline I think one main point is to provide ability to extend this definition or allow to change by configuration. We need to define the extention points here. Allowing to extend the tomcat valve would be a good start IMO. BAM folks, thoughts?. thanks, On Wed, May 8, 2013 at 5:53 PM, Kasun Gajasinghe <[email protected]> wrote: > Hi, > > I'm trying to finalize the webapp request stats data that AS should send > to BAM. I have come with the following list of stats to be sent to BAM as > part of the Event Data. These are categorized in to payload data and > metadata. Please share your suggestions on these, and what other data we > can send. > > We can also make it to send the request message body, and response message > body but it would add a significant overhead. > > Currently, webapp developers need to add a a context-param called > 'enable.statistics' to the web.xml in webapps. > > <context-param> > <param-name>*enable.statistics*</param-name> > <param-value>true</param-value> > </context-param> > > They can configure the webapp data agent configuration and BAM credentials > via the management console. The configuration is saved in the registry of > the given tenant. Each tenant has to configure the data agent this way. > This behavior is quite like the Service Data Agent configuration. > > > streamId='bam_webapp_statistics_publisher:3.0.0', > name='bam_webapp_statistics_publisher', > version='1.0.0', > nickName='WebappDataAgent', > description='Publish webapp statistics events', > > Payload data - > > webappName > webappDisplayName - The <display-name> set in web.xml > webappOwnerTenant > webappVersion - web-app servlet version. Ex. 2.5, 3.0 > timestamp > webappContext - ex. /t/example.com/jaxwebapps/jaxrs_basic > resourcePath - ex. For a request url of > http://localhost:9763/t/example.com/jaxwebapps/jaxrs_basic/services/customers/customerservice/customers/123, > the resource path will be /customers/customerservice/customers/123 > webappType - Possible values are JAX-WS/JAX-RS/Generic > > > Metadata - > > > httpMethod - The HTTP method of the request > contentType - Content Type of the request > responseContentType - Content Type of the response > responseHttpStatusCode - HTTP status code of the response > userAgent - client user-agent > remoteAddress - client address > referer - HTTP referer header > authType - Tomcat level authentication, if set. ex. > BASIC_AUTH. > > > > Thanks, > KasunG > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Supun Malinga, Software Engineer, WSO2 Inc. http://wso2.com http://wso2.org email - [email protected] <[email protected]> mobile - 071 56 91 321
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
