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

chore: debugging earn issue #3252

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/servers/event-handlers/kratos.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cors from "cors"
import express from "express"

import { wrapAsyncToRunInSpan } from "@services/tracing"
import { addAttributesToCurrentSpan, wrapAsyncToRunInSpan } from "@services/tracing"
import { baseLogger } from "@services/logger"

import { createAccountFromRegistrationPayload } from "@app/authentication"
Expand Down Expand Up @@ -31,10 +31,9 @@ kratosCallback.post(
fn: async (req: express.Request, res: express.Response) => {
const secret = req.headers.authorization
const body = req.body
baseLogger.info(
{ transient_payload: body.transient_payload },
"transient_payload callback kratos router",
)
addAttributesToCurrentSpan({
"registration.body": JSON.stringify(body),
})

const account = await createAccountFromRegistrationPayload({ secret, body })
if (account instanceof Error) {
Expand Down