Skip to content

Commit b0be419

Browse files
cursoragentclaude
andcommitted
fix(deno): Use local sendDefaultPii variable for consistency
Use the already-resolved sendDefaultPii local variable instead of re-accessing client.getOptions().sendDefaultPii without nullish coalescing. This ensures consistency with the existing pattern and matches the Bun implementation approach. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a1144ba commit b0be419

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/deno/src/wrap-deno-request-handler.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ export const wrapDenoRequestHandler = <Addr extends Deno.Addr = Deno.Addr>(
9898
status_code: res.status,
9999
});
100100
span.setAttributes(
101-
httpHeadersToSpanAttributes(
102-
Object.fromEntries(res.headers),
103-
client.getOptions().sendDefaultPii,
104-
'response',
105-
),
101+
httpHeadersToSpanAttributes(Object.fromEntries(res.headers), sendDefaultPii, 'response'),
106102
);
107103
} catch (e) {
108104
span.end();

0 commit comments

Comments
 (0)