Skip to content

Commit

Permalink
Fixed trace_sampled casing
Browse files Browse the repository at this point in the history
refs https://cloud.google.com/logging/docs/structured-logging

- apparently the casing is different from what I read somewhere
  • Loading branch information
daniellockyer committed Nov 19, 2024
1 parent 03ed279 commit ef6c407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ app.use(async (ctx, next) => {
extra['logging.googleapis.com/trace'] =
`projects/ghost-activitypub/traces/${traceId}`;
extra['logging.googleapis.com/spanId'] = spanId;
extra['logging.googleapis.com/traceSampled'] = sampled;
extra['logging.googleapis.com/trace_sampled'] = sampled;
}

ctx.set('logger', logging.with(extra));
Expand Down

0 comments on commit ef6c407

Please sign in to comment.