-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Azure Application Insights #441
Comments
A client that can be wrapped: http://search.maven.org/#artifactdetails%7Ccom.microsoft.azure%7Capplicationinsights-core%7C2.0.0-BETA%7Cjar Note that the 2.0.0-BETA version contains first order dependencies on guava and httpclient. |
There is a raw API for this as well: http://apmtips.com/blog/2017/10/27/send-metric-to-application-insights/ But implementing it via wrapper would be better. @jkschneider are those dependencies problematic in this repo? |
@SergeyKanzhelev in general they are, since an application might depend on an incompatible version of the same library. Shading is appropriate for those kinds of libraries. |
@SergeyKanzhelev I actually had a chat with @dhaval24 about this yesterday. He indicated that they are relocated inside the package, so just need to strike the dependencies from the POM probably. |
@jkschneider yes that is true. They are relocated inside core and web jars. As we talked yesterday I have some ideas around this. Let's touch base again soon and understand how we can get this done. |
@jkschneider few things to point out:
For creating an exporter to send metrics to Application Insights, we would only need to wrap ApplicationInsights-core library. The main Data Structure which holds the Metric Telemetry is
I believe this would be the required pieces for this exporter. We would need to do some transformations to achieve this according to the backend schema. Let me know how would you think is the best way to proceed. |
When you're ready to test, navigate to SampleConfig and change it to |
@jkschneider thank you very much for sending all this out. I would take a look at this. |
@spencergibb and @jkschneider the POM for application insights is now fixed and it does not reference any of the dependencies like Guava / HttpClient. They are shaded and excluded from the POM now. |
See https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics#trackmetric
The text was updated successfully, but these errors were encountered: