8000 fix: Update ExtractedNodeRequestData to include valid query_params fo… · jcomo/sentry-javascript@f624f44 · GitHub
[go: up one dir, main page]

Skip to content

Commit f624f44

Browse files
authored
fix: Update ExtractedNodeRequestData to include valid query_params for tracesSampler (getsentry#3715)
* fix: Update ExtractedNodeRequestData to include valid query_params for tracesSampler * Update misc.ts
1 parent c95d058 commit f624f44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/types/src/misc.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { QueryParams } from './request';
2+
13
/**
24
* Data extracted from an incoming request to a node server
35
*/
@@ -16,8 +18,8 @@ export interface ExtractedNodeRequestData {
1618
/** String representing the cookies sent along with the request */
1719
cookies?: { [key: string]: string };
1820

19-
/** The request's query string, without the leading '?' */
20-
query_string?: string;
21+
/** The request's query params */
22+
query_string?: QueryParams;
2123

2224
/** Any data sent in the request's body, as a JSON string */
2325
data?: string;

0 commit comments

Comments
 (0)
0