To define a request attribute based on web request data:
This will potentially access personal data.
Have a look at the example request attribute rule below. Note that the request attribute destination
can obtain its value from two different sources, either an HTTP Post
parameter (iceform:destination
) or an HTTP GET
parameter (destination
). Rules are executed in order. If a request meets the criteria for both rules, its value will be taken from the first rule.
Each rule needs a source. In the example below, the request attribute source is a web request HTTP GET
parameter (destination
).
This GET
parameter will be captured on all monitored processes that support code-level insight and it will be reported on all requests that are monitored by Dynatrace.
While this is convenient, it’s not always what’s needed. This is why you can restrict rules to a subset of process groups and services. To do this, select process group and service names from the four drop-lists above to reduce the number of process groups and services that the rule applies to.
You may not be interested in capturing every value. In other cases, a value may contain a prefix that you want to check against. To do this, specify that the designated parameter should only be used if its value matches a certain value. You can also opt to not use an entire value, but instead extract a portion of a value. The example below is set up to only consider iceform:destination
HTTP POST
parameters that begin with the string Journey :
. This approach will extract everything that follows the string Journey:
and store it in the request attribute.
Requests can have as many attributes as you want.
Request attribute data sources for web requests include
Technology-independent sources, such as:
In the last two cases, you can also choose the side of the web request on which to capture and store the attribute.
OneAgent is always required at capture.
Option | Request type | Capture side | Store side |
---|---|---|---|
Capture on the client side of a web request service and store on the calling service | Full service call1 | Client | Server |
Capture on server side of a web request service | Full service call | Server | Server |
Capture on the client side of a web request service | External service call2 | Client | Client |
Capture from both client and server side and store where found | Full service call | Server | Server |
External service call | Client | Client |
Full service call: request that is fully monitored by Dynatrace.
External service call: request that goes to external resources.
Technology-specific sources.
In most cases, a captured value will contain what it is you’re looking for. However, you may not want an entire value, or even every value. With post processing you can manipulate the captured value.
Expand the Optionally restrict or process the captured parameter(s) further option to see the processing steps. The steps are executed in the presented order—each step is applied to the result of the previous step.
You don't have to apply all the steps. Each step becomes active once you provide a value for it or select the option box.
Step 1 enables you to extract something from the resulting string based on delimited characters.
Step 2 can split the captured value into several values based on a delimited character.
Step 3 removes whitespaces.
Step 4 enables you to filter out captured values that don't fit the provided criterion.
Step 5 enables you to extract something from the resulting string based a regular expression.