Hi App Server team,

According to the code in [1], the user-agent string is parsed and some of
the information are extracted from the user-agent at event publishing time.
Could you guys please clarify why you guys haven't published the whole
user-agent string to DAS and use a UDF to extract the corresponding data at
data summarization time?

There are several concerns I see in the current approach.
1. This will add additional overhead to the server when processing each
request as it has to process the user-agent string to filter out these data.
2. We are currently limiting the information that can be extracted from the
user-agent at the data publishing time. If we publish the whole user-agent
string, then the users have the option of coming up with a new analytics
script to extract any data from the user-agent.
3. If we encounter a bug/limitation or upgrade/replace in the user-agent
processing library, then we have to change/update the event publisher code.
Having a user defined function in DAS to extract the information from the
user-agent would address this scenario as we do not have to do any changes
to the data publishers.
4. We need to parse the user-agent from all the places where we publish the
HTTP data. Based on the current plans, if we are going to integrate the
HTTP Monitoring dashboard to API Manager, then from the API Manager side,
we also have to parse the user-agent and extract the data from the gateway
nodes before publishing the data.

Therefore I see that the better approach would be to publish the whole
user-agent string and extract data from DAS data summarization time.

WDYT?

Thanks,
Janaka

[1]
https://github.com/wso2/product-as/blob/wso2as-6.0.0/modules/http-statistics-monitoring/src/main/java/org/wso2/appserver/monitoring/utils/EventBuilder.java

-- 
*Janaka Ranabahu*
Associate Technical Lead, WSO2 Inc.
http://wso2.com


*E-mail: [email protected] <http://wso2.com>**M: **+94 718370861*

Lean . Enterprise . Middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to