# README
azure-application-insights-cnb
The Cloud Foundry Azure Application Insights Buildpack is a Cloud Native Buildpack V3 that provides the Application Insights agent and configuration to applications.
This buildpack is designed to work in collaboration with bound service instances.
Detection
The detection phase passes if
- A service is bound with a payload containing a
binding_name
,instance_name
,label
, ortag
containingazure-application-insights
as a substring and build plan containsjvm-application
- Contributes
azure-application-insights-java
to the build plan
- Contributes
Build
If the build plan contains
azure-application-insights-java
- Contributes an Azure Application Insights agent and
AI-Agent.xml
to a layer markedlaunch
- Sets
-javaagent
JAVA_OPTS
- Contributes an Azure Application Insights agent and
License
This buildpack is released under version 2.0 of the Apache License.