Skip to content

A Cloud Native Buildpack that contributes the Elastic APM Agent and configures it to connect to the service

License

Notifications You must be signed in to change notification settings

paketo-buildpacks/elastic-apm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

docker.io/paketobuildpacks/elastic-apm

The Paketo Buildpack for Elastic APM is a Cloud Native Buildpack that contributes the Elastic APM Agent and configures it to connect to the service.

Behavior

This buildpack will participate if all the following conditions are met

  • A binding exists with type of ElasticAPM

The buildpack will do the following for Java applications:

  • Contributes a Java agent to a layer and configures $JAVA_TOOL_OPTIONS to use it
  • Transforms the contents of the binding secret to environment variables with the pattern ELASTIC_APM_<KEY>=<VALUE>

The buildpack will do the following for NodeJS applications:

  • Contributes a NodeJS agent to a layer and configures $NODE_MODULES to use it
  • If main module does not already require elastic-apm-node module, prepends the main module with require('elastic-apm-node').start();
  • Transforms the contents of the binding secret to environment variables with the pattern ELASTIC_APM_<KEY>=<VALUE>

Bindings

The buildpack optionally accepts the following bindings:

Type: dependency-mapping

Key Value Description
<dependency-digest> <uri> If needed, the buildpack will fetch the dependency with digest <dependency-digest> from <uri>

License

This buildpack is released under version 2.0 of the Apache License.

About

A Cloud Native Buildpack that contributes the Elastic APM Agent and configures it to connect to the service

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published