Skip to content

Output of mix sentry.send_test_event has no environment name #707

@krns

Description

@krns

Environment

What version are you running? Etc.

  • OTP 26.2.3
  • Elixir 1.16.2
  • sentry-elixir 10.2.1

Steps to Reproduce

  • Configure sentry (set DSN and environment_name to staging)
  • Sending a test event via mix sentry.send_test_event

Expected Result

Display current environment_name (staging) in the output of the mix command.

Actual Result

root:/opt/app# mix sentry.send_test_event
Client configuration:
server: <url>
public_key: <public_key>
secret_key:
current environment_name: ""
hackney_opts: [pool: :sentry_pool]

Although the current environment is set to staging the output shows "". In the iex I get the correct value for environment_name:

iex(5)> Sentry.Config.environment_name()
"staging"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions