Skip to content

Ability to programmatically control config settings #825

@ejsmith

Description

@ejsmith

My environment in aspnetcore is set to staging, but I want to change it to something more specific for Elastic APM. I know that I can control it via environment variables, but I need to set it programmatically based on other settings. It appears that you do not allow just passing a configuration object into UseElasticApm and force me to pass an IConfiguration object. Seems like it would be very useful to be able to read settings from IConfiguration and then be able to additionally change something programmatically before I give it to the UseElasticApm method and start the instrumentation process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions