Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
11-17-2020 12:23 AM
Hi!
I would like to fetch HTTP request properties (not headers, not parameters) - according to attached picture; like RawUrl, UrlReferrer, or any other HTTP request property. Looking into transaction snapshots -> any given segment -> More -> Properties they're all there - but how do I go about creating a data collector for fetching any of these properties? Been looking into https://docs.appdynamics.com/display/PRO45/Using+Getter+Chains which seemed promising, and thinking about method invocation data collectors - but haven't really succeeded yet.
Anyone been able to create a data collector fetching HTTP request properties?
Thanks!
/Mattias
Solved! Go to Solution.
11-17-2020 01:12 PM
Hi Mattias,
Here is an MIDC example to get the UrlReferrer property of the Request in an MVC app. You would use the Invoked Object and a Getter Chain that simply uses the Request object and any property.
11-18-2020 01:17 AM
Thank you very much! Will give it a shot right away
11-18-2020 01:24 AM - edited 11-18-2020 01:44 AM
Method signature? Guess it depends on the application? Examples:
11-18-2020 02:05 AM
Ended up fetching HTTPContext from System.Web.UI.Page.ProcessRequest - and Request is a property of the context:
11-18-2020 04:38 AM
Unfortunately no data is being collected based on System.Web.UI.Page.ProcessRequest (https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.page.processrequest?view=netframework-4.8#...) - Parameter @ index 0 = HttpContext, fetching property Request from HttpContext and UrlReferrer from Request.
Am I missing something?
11-18-2020 05:02 AM
11-18-2020 11:43 PM
Unfortunately I can't get my data collector to pick up any HTTP request properties. Using Current.Request.UrlReferrer, also tried Request.UrlReferrer etc. Either I'm doing something wrong, or I've stumbled upon a bug! Any advice would be highly appreciated.
12-07-2020 08:42 AM
Weren't able to get the MIDC working - therefore fetched HTTP header Referer instead as a workaround.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form