We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48d8bf8 commit 8542031Copy full SHA for 8542031
1 file changed
src/python/hooks/appdynamics.go
@@ -217,9 +217,13 @@ func (h AppdynamicsHook) BeforeCompile(stager *libbuildpack.Stager) error {
217
func init() {
218
logger := libbuildpack.NewLogger(os.Stdout)
219
command := &libbuildpack.Command{}
220
-
221
- libbuildpack.AddHook(AppdynamicsHook{
222
- Log: logger,
223
- Command: command,
224
- })
+ if os.Getenv("APPD_AGENT") == "" {
+ logger.Warning("[DEPRECATION WARNING]: ")
+ logger.Warning("Please use AppDynamics extension buildpack for Python Application instrumentation")
+ logger.Warning("for more details: https://docs.pivotal.io/partners/appdynamics/multibuildpack.html")
+ libbuildpack.AddHook(AppdynamicsHook{
225
+ Log: logger,
226
+ Command: command,
227
+ })
228
+ }
229
}
0 commit comments