Skip to content

Commit 8542031

Browse files
Update appdynamics.go
1 parent 48d8bf8 commit 8542031

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/python/hooks/appdynamics.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,13 @@ func (h AppdynamicsHook) BeforeCompile(stager *libbuildpack.Stager) error {
217217
func init() {
218218
logger := libbuildpack.NewLogger(os.Stdout)
219219
command := &libbuildpack.Command{}
220-
221-
libbuildpack.AddHook(AppdynamicsHook{
222-
Log: logger,
223-
Command: command,
224-
})
220+
if os.Getenv("APPD_AGENT") == "" {
221+
logger.Warning("[DEPRECATION WARNING]: ")
222+
logger.Warning("Please use AppDynamics extension buildpack for Python Application instrumentation")
223+
logger.Warning("for more details: https://docs.pivotal.io/partners/appdynamics/multibuildpack.html")
224+
libbuildpack.AddHook(AppdynamicsHook{
225+
Log: logger,
226+
Command: command,
227+
})
228+
}
225229
}

0 commit comments

Comments
 (0)