Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor sentry config #7757

Merged
merged 2 commits into from
Oct 25, 2022
Merged

refactor sentry config #7757

merged 2 commits into from
Oct 25, 2022

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Oct 25, 2022

https://app.shortcut.com/chainlinklabs/story/23679/prefix-all-env-vars-with-cl

Refactor sentry init to read from config instead of direct env vars.

@github-actions
Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@@ -5,4 +5,4 @@ cd "$(dirname "$0")"
COMMIT_SHA=${COMMIT_SHA:-$(git rev-parse HEAD)}
VERSION=${VERSION:-$(cat "../../VERSION")}

echo "-X github.com/smartcontractkit/chainlink/core/static.Version=$VERSION -X github.com/smartcontractkit/chainlink/core/static.Sha=$COMMIT_SHA -X github.com/smartcontractkit/chainlink/core/static.SentryDSN=$SENTRY_DSN"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

static.SentryDSN actually doesn't exist 🤷

@jmank88 jmank88 marked this pull request as ready for review October 25, 2022 18:40
pinebit
pinebit previously approved these changes Oct 25, 2022
core/cmd/client.go Outdated Show resolved Hide resolved
sentryrelease = static.Version
}

return sentry.Init(sentry.ClientOptions{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Uff, initialising global variable from application instance. In theory we could have multiple application instances, can you think of any way around this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In theory yes, but in implementation no, because we use an EmptyRunner in tests. Also, empirically, the gin stuff would have the same problem, but has been here over a year without flagging any races.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 2022

Solana Smoke Test Results

1 tests   1 ✔️  6m 5s ⏱️
1 suites  0 💤
1 files    0

Results for commit dbcc457.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 2022

EVM Smoke Test Results

82 tests   34 ✔️  6m 18s ⏱️
  1 suites  48 💤
  1 files      0

Results for commit dbcc457.

♻️ This comment has been updated with latest results.

@jmank88 jmank88 merged commit 149d2b2 into develop Oct 25, 2022
@jmank88 jmank88 deleted the sc-23679-sentry-env branch October 25, 2022 22:12
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