Skip to content

Precedence order when setting app release #623

Closed
@rodolfoBee

Description

@rodolfoBee

When working with the Symfony SDK I noticed that the app version set in composer.json as below is prioritised over the SENTRT_RELEASE environment variable set in .env file.

{
    "type": "project",
    "license": "proprietary",
    "version": "1.58.1",
    "minimum-stability": "stable",
}

The precedence order according to my tests was:

  1. Release set in config/packages/sentry.yaml
  2. “Version” tag added to composer.json
  3. SENTRY_RELEASE environment variable set in .env

Because only the environment variable and sentry.yaml options are documented, I would expect these two to take precedence over all other automatically detected releases. Is this intended behaviour?

I’m using:
Sentry Symfony SDK v4.2.9
Composer v2.0.9
Symfony v5.4.8
PHP v7.4.29

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions