File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ describe('request utils', () => {
631631 } ) ;
632632 } ) ;
633633
634- it ( 'filters comprehensive list of sensitive headers when $description ' , ( ) => {
634+ it ( 'always filters comprehensive list of sensitive headers' , ( ) => {
635635 const headers = {
636636 'Content-Type' : 'application/json' ,
637637 'User-Agent' : 'test-agent' ,
Original file line number Diff line number Diff line change 11import type { Span , WebFetchHeaders } from '@sentry/core' ;
2- import { getClient , httpHeadersToSpanAttributes , winterCGHeadersToDict } from '@sentry/core' ;
2+ import { httpHeadersToSpanAttributes , winterCGHeadersToDict } from '@sentry/core' ;
33
44/**
55 * Extracts HTTP request headers as span attributes and optionally applies them to a span.
@@ -12,9 +12,6 @@ export function addHeadersAsAttributes(
1212 return { } ;
1313 }
1414
15- const client = getClient ( ) ;
16- const sendDefaultPii = client ?. getOptions ( ) . sendDefaultPii ?? false ;
17-
1815 const headersDict : Record < string , string | string [ ] | undefined > =
1916 headers instanceof Headers || ( typeof headers === 'object' && 'get' in headers )
2017 ? winterCGHeadersToDict ( headers as Headers )
You can’t perform that action at this time.
0 commit comments