-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Sentry にユーザ情報を追加 #674
Sentry にユーザ情報を追加 #674
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
爆速対応ありがとうございます!こちら困っていたので助かります。
今回の変更ですが、App.vue
や main.ts
に書くのはどうでしょうか?
「Sentry に User 情報を送信する」という初期化処理のような内容は Layout.vue
にあるよりも、Google Tag Manager や Sentry のその他の初期化と同じ App.vue
や main.ts
にあるほうが見通しやメンテナンス性の観点から有利かと感じました。
src/ui/templates/Layout.vue
Outdated
ports.userRepository | ||
.getUser() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#673 (comment) と同様に UseCase
を介して参照し、現行のアーキテクチャに合わせたいです。
ただ現在は User を取得する UseCase が存在しないので、手間ですがそれも合わせて作る必要があります。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
現在のアーキテクチャだとUseCase
を介す必要があります。
ただ、めんどくさいんですよね。何かいい方法があれば言ってください!
@kichi2004 フィードバックがあったときに、User ID でエラーログが残っていないか確かめたいことが多く、早めに Merge できるといいなと考えています。 |
@HosokawaR 修正しましたので確認お願いします! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます!こちらで Sentry 動作確認もできました。
これからはエラー調査が楽になりそうで助かります!
ちょうどユーザ数が少なそうでデプロイにいい時間帯なのでこちらで Merge & Deploy しちゃいますね |
Sentry.setUser
を使ってユーザ情報を追加これでうまく動くかはわからないので様子見が必要かもしれないです