jersey - Azure ApplicationInsights conflict with Swagger UI -


i use swagger ui jersey app on tomcat 8. here configuration web.xml:

<servlet>     <servlet-name>jersey2config</servlet-name>     <servlet-class>io.swagger.jersey.config.jerseyjaxrsconfig</servlet-class>     <init-param>         <param-name>api.version</param-name>         <param-value>1.0.0</param-value>     </init-param>     <init-param>         <param-name>swagger.api.basepath</param-name>         <param-value>http://localhost:8080/api</param-value>     </init-param>     <load-on-startup>2</load-on-startup>     <async-supported>true</async-supported> </servlet> 

this works fine, both locally , on azure. add applicationinsight filter however, swagger ui fails load swagger.json file:

<filter>     <filter-name>applicationinsightswebfilter</filter-name>     <filter-class>         com.microsoft.applicationinsights.web.internal.webrequesttrackingfilter     </filter-class> </filter> <filter-mapping>     <filter-name>applicationinsightswebfilter</filter-name>     <url-pattern>/api/*</url-pattern> </filter-mapping> 

i'm not experienced servlet filters, guys have idea try solve it?


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -