Skip to content

Sentry log creates new release with incorrect release name #805

@andre-krueger

Description

@andre-krueger

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native
  • react-native-sentry

SDK version: 1.3.3
react-native version: 0.61.5

@sentry/cli: 1.51.1,

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

Configuration:

Sentry.init({ dsn: sentryDSN });
Sentry.setTags({ environment });
Sentry.setRelease(`${nativeVersion}-${bundleVersion}`);

The release is created by the following command:

./node_modules/.bin/sentry-cli releases files ${NATIVE_VERSION}-${BUNDLE_VERSION} upload-sourcemaps --bundle ./release/main.jsbundle --bundle-sourcemap ./release/main.jsbundle.map --rewrite

I have following issue:

An issue doesn't get logged to the correct release, which should be of following format:
{VERSION_CODE}-{BUNDLE_VERSION}
Example: 12-3

However, if an error is logged to Sentry, a new release gets created with the following format:
{APPLICATION_ID}@{VERSION_NAME}+{VERSION_CODE}
Example: com.example.app@1.12+12
The issue then appears only in this incorrect release.

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