Skip to content

Injecting environment variables in k8s doesnt work because of the format. #780

@bozouser

Description

@bozouser

The docs for integrating sentry thru env variables - https://docs.sentry.io/clients/java/config/#configuration-via-the-runtime-environment

System Environment Variable option names require that you replace the . with _, capitalize them, and add a SENTRY_ prefix. For example, to enable sampling:

these are common options - https://docs.sentry.io/error-reporting/configuration/?platform=aspnetcore#common-options

And this translates to the following -

  1. sample.rate => SENTRY_SAMPLE_RATE
  2. max-breadcrumbs => SENTRY_MAX-BREADCRUMBS

2. fails the deployment.yaml as k8s doesnt allow for -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions