Merged in chore/redirect-counter (pull request #3302)
Counter name is now searchable and add counter for redirects * refactor: createCounter() only takes one argument, the name of the counter. Makes it easier to search for * feat: add counter when we do a redirect from redirect-service Approved-by: Linus Flood
This commit is contained in:
@@ -157,8 +157,7 @@ export const userMutationRouter = router({
|
||||
ctx,
|
||||
}) {
|
||||
const generatePreferencesLinkCounter = createCounter(
|
||||
"trpc.user",
|
||||
"generatePreferencesLink"
|
||||
"trpc.user.generatePreferencesLink"
|
||||
)
|
||||
|
||||
const metricsGeneratePreferencesLink = generatePreferencesLinkCounter.init()
|
||||
@@ -196,7 +195,7 @@ export const userMutationRouter = router({
|
||||
ctx,
|
||||
input,
|
||||
}) {
|
||||
const signupCounter = createCounter("trpc.user", "signup")
|
||||
const signupCounter = createCounter("trpc.user.signup")
|
||||
const metricsSignup = signupCounter.init()
|
||||
|
||||
const apiResponse = await api.post(api.endpoints.v2.Profile.profile, {
|
||||
@@ -224,8 +223,7 @@ export const userMutationRouter = router({
|
||||
.input(profilingConsentInput)
|
||||
.mutation(async function ({ ctx, input }) {
|
||||
const profilingConsentCounter = createCounter(
|
||||
"trpc.user",
|
||||
"profilingConsent"
|
||||
"trpc.user.profilingConsent"
|
||||
)
|
||||
const metricsProfilingConsent = profilingConsentCounter.init()
|
||||
|
||||
@@ -252,8 +250,7 @@ export const userMutationRouter = router({
|
||||
.input(profilingConsentPromptDateInput)
|
||||
.mutation(async function ({ ctx, input }) {
|
||||
const profilingConsentPromptDateCounter = createCounter(
|
||||
"trpc.user",
|
||||
"profilingConsentPromptDate"
|
||||
"trpc.user.profilingConsentPromptDate"
|
||||
)
|
||||
const metricsProfilingConsentPromptDate =
|
||||
profilingConsentPromptDateCounter.init()
|
||||
|
||||
Reference in New Issue
Block a user