Use camelCase for tags.

This commit is contained in:
Sam Rose 2023-12-19 16:26:09 +00:00
parent 0b683876f8
commit 056214c984
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ export default async (ctx: UserCtx, next: any) => {
if (requestAppId) { if (requestAppId) {
const span = tracer.scope().active() const span = tracer.scope().active()
span?.setBaggageItem("app_id", requestAppId) span?.setBaggageItem("appId", requestAppId)
} }
// deny access to application preview // deny access to application preview
@ -79,9 +79,9 @@ export default async (ctx: UserCtx, next: any) => {
if (ctx.user) { if (ctx.user) {
const span = tracer.scope().active() const span = tracer.scope().active()
if (ctx.user._id) { if (ctx.user._id) {
span?.setBaggageItem("user_id", ctx.user._id) span?.setBaggageItem("userId", ctx.user._id)
} }
span?.setBaggageItem("tenant_id", ctx.user.tenantId) span?.setBaggageItem("tenantId", ctx.user.tenantId)
} }
const userId = ctx.user ? generateUserMetadataID(ctx.user._id!) : undefined const userId = ctx.user ? generateUserMetadataID(ctx.user._id!) : undefined