Skip to content

Conversation

@teg-atlassian
Copy link
Contributor

@teg-atlassian teg-atlassian commented Jan 6, 2026

What Is This Change?

This PR introduces Sentry logging.

  • It has encapulated the Sentry logging logic in sentry.ts.
  • We only log errors to Sentry.
  • Currently this logic is behind a feature flag atlascode-sentry-logging.
  • Sentry configuration is in .env.example. To run it locally, please copy the configuration to your local .env file

the logs in sentry can be seen at https://atlassian-2y.sentry.io/issues/errors-outages/?project=4510634894688256

Screenshot 2026-01-06 at 2 47 18 PM

How Has This Been Tested?

sentry.test.ts with result shown below
Screenshot 2026-01-06 at 2 41 44 PM

logger.test.ts with result shown below
Screenshot 2026-01-06 at 2 40 53 PM

Basic checks:

  • npm run lint
  • npm run test

Advanced checks:

  • If Atlassian employee & Bitbucket changes: did you test with DC in mind? See Instructions

Recommendations:

  • Update the CHANGELOG if making a user facing change

@teg-atlassian teg-atlassian force-pushed the AXON-1721-sentry-logging branch 2 times, most recently from 33c6ece to 4c22752 Compare January 6, 2026 22:52
@teg-atlassian teg-atlassian changed the title introducing Sentry Logging [AXON-1721]-sentry-logging Jan 6, 2026
@teg-atlassian teg-atlassian force-pushed the AXON-1721-sentry-logging branch 2 times, most recently from 920ba1b to 6a13da7 Compare January 6, 2026 23:24
@teg-atlassian teg-atlassian force-pushed the AXON-1721-sentry-logging branch 2 times, most recently from f14b4dd to 34d39a4 Compare January 7, 2026 19:42
@teg-atlassian teg-atlassian force-pushed the AXON-1721-sentry-logging branch from 34d39a4 to 26a49b8 Compare January 7, 2026 19:45
Copy link
Contributor

@jwang19-atlassian jwang19-atlassian left a comment

Choose a reason for hiding this comment

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

lgtm

@teg-atlassian teg-atlassian enabled auto-merge (squash) January 8, 2026 19:11
@teg-atlassian teg-atlassian merged commit 00efab2 into main Jan 8, 2026
13 checks passed
@teg-atlassian teg-atlassian deleted the AXON-1721-sentry-logging branch January 8, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants