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

feature: allow object manifest to define custom DSN #72

Merged
merged 9 commits into from
Dec 13, 2023

Conversation

Jiahui-Zhang-20
Copy link
Contributor

@Jiahui-Zhang-20 Jiahui-Zhang-20 commented Dec 9, 2023

Previous:

All events must be sent to a single project corresponding to the DSN specified in the environment variable.

Now:

The manifest may contain a custom DSN in the annotations so the event may be sent to a different corresponding project instead (this works with both Issues and Crons).

k8s/errors/cronjob-basic-error.yaml Outdated Show resolved Hide resolved
sentry_dsn_data.go Outdated Show resolved Hide resolved
sentry_dsn_data.go Outdated Show resolved Hide resolved
sentry_dsn_data.go Outdated Show resolved Hide resolved
watcher_events.go Outdated Show resolved Hide resolved
sentry_dsn_data.go Outdated Show resolved Hide resolved
sentry_dsn_data.go Outdated Show resolved Hide resolved
k8s/errors/cronjob-basic-error.yaml Outdated Show resolved Hide resolved
sentry_dsn_data.go Outdated Show resolved Hide resolved
sentry_dsn_data.go Show resolved Hide resolved
crons.go Outdated Show resolved Hide resolved
Copy link
Contributor

@tonyo tonyo left a comment

Choose a reason for hiding this comment

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

A few minor comments, ok to merge when resolved 👍

sentry_dsn_data.go Outdated Show resolved Hide resolved
watcher_pods.go Outdated Show resolved Hide resolved
sentry_dsn_data.go Outdated Show resolved Hide resolved
@Jiahui-Zhang-20 Jiahui-Zhang-20 merged commit da92dca into master Dec 13, 2023
3 checks passed
@Jiahui-Zhang-20 Jiahui-Zhang-20 deleted the jz-multiple-dsns branch December 13, 2023 23:39
Jiahui-Zhang-20 added a commit that referenced this pull request Dec 13, 2023
* allow custom dsn in manifest

* fix errors of sending to wrong projects

* clients inherit old options with only dsn changed

* change transport mock to remove last event

* refactor dsn code

* fix event watcher to pass unit test

* perform minor code cleanup

* add flag for custom dsn

* add minor changes to sentry dsn data
Jiahui-Zhang-20 added a commit that referenced this pull request Dec 14, 2023
* add unit test for pod enhancer

* Make aliasing more explicit

* feature: allow object manifest to define custom DSN (#72)

* allow custom dsn in manifest

* fix errors of sending to wrong projects

* clients inherit old options with only dsn changed

* change transport mock to remove last event

* refactor dsn code

* fix event watcher to pass unit test

* perform minor code cleanup

* add flag for custom dsn

* add minor changes to sentry dsn data

* downgrade client-go version

* fix dependency issues

---------

Co-authored-by: Anton Ovchinnikov <anton@tonyo.info>
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.

2 participants