Skip to content

Commit

Permalink
Use VERCEL_REGION system env var instead of reading internal header
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks committed Dec 9, 2024
1 parent faeb349 commit e17838b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/otel/src/vercel-request-context/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getVercelRequestContextAttributes(

"vercel.request_id": parseRequestId(context.headers["x-vercel-id"]),
"vercel.matched_path": context.headers["x-matched-path"],
"vercel.edge_region": context.headers["x-vercel-edge-region"],
"vercel.edge_region": process.env.VERCEL_REGION,

...rootAttrs,
});
Expand Down

0 comments on commit e17838b

Please sign in to comment.