sentry-rust icon indicating copy to clipboard operation
sentry-rust copied to clipboard

request query string & cookies should support structured data

Open boxxxie opened this issue 3 years ago • 0 comments

relevant docs: https://develop.sentry.dev/sdk/event-payloads/types/#request

query_string (optional): null | (string | (Array<Array<(null | string)> | null> | { [key: string]: null | string })) The query string component of the URL. Can be given as unparsed string, dictionary, or list of tuples.

& cookies too

cookies (optional): null | (Array<Array<(null | string)> | null> | { [key: string]: null | string }) The cookie values. Can be given unparsed as string, as dictionary, or as a list of tuples.

bug example:

{
"request" : 
    "query_string": {
      "foo": "bar",
      "foo": "bars",
      "lol": "ha"
    }
}

sentry-cli output: error: invalid type: map, expected a string at line 3 column 21

boxxxie avatar Jul 21 '22 19:07 boxxxie