Skip to content

Conversation

@MimiDumpling
Copy link
Contributor

@MimiDumpling MimiDumpling commented May 7, 2020

Customer wrote into Support about confusion over setDist. This PR gives a code example of how to use setDist.

Before:
image

After:
image

: This is the version code or build ID depending on your platform. So for instance just set this to whatever is set in your _Info.plist_ or what your Gradle setup generates (For example, `52`).

```js
Sentry.setDist(`dist`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We mention in the previous paragraph that an example is 52, should this match?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example directly above this section for setting releases uses: Sentry.setRelease(RELEASE_NAME)`

Should we match that and use
Sentry.setDist(DISTRIBUTION_NAME)

instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O yeah @mbauer404 's suggestion makes more sense since you would never hardcode a 52

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great suggestion, @mbauer404 ! Let me know if there are other changes we should address. If not, feel free to approve. ;)

@MimiDumpling MimiDumpling merged commit 1146223 into master May 8, 2020
@MimiDumpling MimiDumpling deleted the update/mimi-native-dist branch May 8, 2020 23:08
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants