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:
- using
raygunmessage
prevents request data being collected - 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
Post a Comment