Dynatrace / libbuildpack-dynatrace

Common resources used for Dynatrace integration in Cloudfoundry Buildpacks.
Apache License 2.0
1 stars 5 forks source link

Add application id env variable #31

Open photo-art-melanie-frei opened 3 weeks ago

photo-art-melanie-frei commented 3 weeks ago

Add DT_APPLICATIONID env variable

The application id environment variable represents the web application id.

This is done in the Java buildpack as well: the application id is set to the VCAP_APPLICATION: name.

arthfl commented 2 weeks ago

Thanks for PR.

Since this might be quite the breaking change: can you explain the use case for this change? Because the actual CF app name is already getting picked up by the OneAgent anyways.

photo-art-melanie-frei commented 1 week ago

Thanks for PR.

Since this might be quite the breaking change: can you explain the use case for this change? Because the actual CF app name is already getting picked up by the OneAgent anyways.

Hi,

I created this change to be in-line with the (https://github.com/cloudfoundry/java-buildpack/blob/main/lib/java_buildpack/framework/dynatrace_one_agent.rb#L146 just for completeness and as fallback :-)