Discussion:
[Stripes-users] Stripes Interceptors for Azure Application Insight tool
D. Salvatore
2017-01-23 02:28:46 UTC
Permalink
Hi everyone,
I would like to to test the Application Insight tool of Microsoft Azure.
For this reason, I took a Java EE application, jpetshop (
https://github.com/mybatis/jpetstore-6), and I am trying to set up the
Application Insight on top of it following this guide:
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-java-get-started

I added the Maven dependency and repository and, thanks to Eclipse, I
created the ApplicationInsights.xml file with my InstrumentationKey. The
only thing that I am not sure about is how to add is the HTTP filter on
this application (point 4).

For Struts 2 I should add this code to its XML file:

* <interceptors>*
* <interceptor name="ApplicationInsightsRequestNameInterceptor"
class="com.microsoft.applicationinsights.web.struts.RequestNameInterceptor"
/>*
* </interceptors>*
* <default-interceptor-ref
name="ApplicationInsightsRequestNameInterceptor" />*

However I don't know how to provide the some information to Stripes.



Do you know how can I do that?

Thank you
Nestor Hernandez
2017-01-23 12:17:54 UTC
Permalink
Hi, in order to use interceptors you can check this page, it's very well
explained:

https://stripesframework.atlassian.net/wiki/display/STRIPES/Intercept+Execution
Post by D. Salvatore
Hi everyone,
I would like to to test the Application Insight tool of Microsoft Azure.
For this reason, I took a Java EE application, jpetshop (
https://github.com/mybatis/jpetstore-6), and I am trying to set up the
https://docs.microsoft.com/en-us/azure/application-insights/
app-insights-java-get-started
I added the Maven dependency and repository and, thanks to Eclipse, I
created the ApplicationInsights.xml file with my InstrumentationKey. The
only thing that I am not sure about is how to add is the HTTP filter on
this application (point 4).
* <interceptors>*
* <interceptor name="ApplicationInsightsRequestNameInterceptor"
class="com.microsoft.applicationinsights.web.struts.RequestNameInterceptor"
/>*
* </interceptors>*
* <default-interceptor-ref
name="ApplicationInsightsRequestNameInterceptor" />*
However I don't know how to provide the some information to Stripes.
Do you know how can I do that?
Thank you
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Stripes-users mailing list
https://lists.sourceforge.net/lists/listinfo/stripes-users
Loading...