Hi Sabra,

The above approach is correct. The idea is to enable custom attributes as
arbitrary key/value pairs. Please check if those attributes get persisted
in DAS side.

thank you.

On Tue, May 24, 2016 at 2:21 PM, Sabra Ossen <[email protected]> wrote:

> Hi All,
>
> I have a requirement to publish custom attributes to WSO2 DAS. This
> feature is not available in the current MSF4J release which is version
> 1.0.0. I checked out the latest code from github related to version
> 1.1.0-SNAPSHOT.
>
> I included log messages after [1] to identify the event being published to
> DAS and I rebuilt the projects msf4j analytics [2] and msf4j core [3]. By
> adding the built jars above I created a new service similar to [4].
>
> I started the micro service with the following arguments.
>
> *-DMETRICS_REPORTING_DAS_DATAAGENTCONFIGPATH=data-agent-conf.xml*
> *-DHTTP_MONITORING_DAS_DATAAGENTCONFIGPATH=data-agent-conf.xml*
> *-DCUSTOM_TENANTID=1234*
>
> By the log messages I was able to see that the event included the
> arbitrary attribute with key CUSTOM_TENANTID and with value 1234 as seen by
> the attached image.
>
> Is this the correct approach to take when publishing arbitrary attributes
> to WSO2 DAS? Any clarification is appreciated. Can anyone share links to
> blog posts related to $subject.
>
> [1]
> https://github.com/wso2/msf4j/blob/master/analytics/msf4j-analytics/src/main/java/org/wso2/msf4j/analytics/httpmonitoring/HTTPMonitoringDataPublisher.java#L183
> [2] https://github.com/wso2/msf4j/tree/master/analytics/msf4j-analytics
> [3] https://github.com/wso2/msf4j/tree/master/core
> [4]
> https://github.com/wso2/msf4j/blob/master/samples/metrics-httpmon/metrics-httpmon-fatjar/src/main/java/org/wso2/msf4j/example/service/StudentService.java
>
> Thanks and Regards.
> --
> *Sabra Ossen*
> *Software Engineer*
> Email: [email protected]
> Mobile: +94 767 837356
>



-- 
Manjula Rathnayaka
Associate Technical Lead
WSO2, Inc.
Mobile:+94 77 743 1987
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to