Skip to content

Add support for configuration by environment variables #5

@nmehlei

Description

@nmehlei

Status

TASK

Checklist

  • Add configuration via environment variables

Expected behaviour

The dotnet agent for New Relic can already be configured via environment variables, e.g. NEW_RELIC_LICENSE_KEY and NEW_RELIC_APP_NAME, which can be helpful in some hosting environments like Kubernetes. It would be great if this library could also use these values IF they are not already configured explicitly in e.g. the appsettings.json file. In my specific case, I would have to configure it both in environment variables as well as inside the appsettings.json. Especially the latter is both error-prone but also quite complicated when using Docker (and thus this sensible data is inside the docker container itself).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions