Elastic APM in ASP.NET Framework Configuration

How can I change the configuration values programmtically/change them at runtime, e.g.:

Instead of setting in the Web.config in node the environment like this:
<add key="ElasticApm:Environment" value="MYENV" />
I want something like this in the Web.config:

<add key="Apm.Environment.Test" value="TEST-ENV" />
<add key="Apm.Environment.Int" value="INT-ENV" />
<add key="Apm.Environment.Prod" value="PROD-ENV" />

and then I would change the value based on the environment which in return I can read out on the host based on an already existing environmental variable.
Is this somehow possible?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.