raygun - RaygunMessage does not list request data -


it critical not log post data (i.e. post body of http post requests) in raygun. however, other request data fine.

we calling overload of raygunclient.send() accepts exception, this:

client.send(myexeption, null, mycustomdata); 

this gathering data request , logging it. great, except logging post data, sensitive.

i made modifications based on this link involved calling overload of raygunclient.send() accepts raygunmessage:

var message = raygunmessagebuilder.new                 .setenvironmentdetails()                 .setmachinename(environment.machinename)                 .setexceptiondetails(myexception)                 .setclientdetails()                 .setversion("a build")                 .settags(new[] { "a tag" })                 .setusercustomdata(mycustomdata)                 .build();              raygun.send(message); 

(note haven't yet attempted nix post data.)

i'm finding logs contain no request data whatsoever! appears either:

  1. using raygunmessage prevents request data being collected
  2. i'm not configuring raygunmessage correctly

can advise should withhold post data logging logic while still getting rest of request data?

finally! after trawling on https://github.com/mindscapehq/raygun4net.

var message = raygunmessagebuilder.new                 .setenvironmentdetails()                 .setmachinename(environment.machinename)                 .setexceptiondetails(myexception)                 .setclientdetails()                 .setversion("build:")                 .settags(new[] { "tag" })                 .setusercustomdata(mycustomdata)                 .build();              var request = gethttprequest();          var requestmessage = raygunrequestmessagebuilder.build(request, null);         requestmessage.rawdata = "post data withheld";          message.details.request = requestmessage;          raygun.send(message); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -