request attribute only use value filter

Hi all,

See below options you can use in the “only use if it” filter. Am I missing the null/empty value? Or is “” always skipped?

@henridb

KR Henk

Hi @henk_stobbe

This is an optional configuration and if you do not enable it, it is, as you write, “skipped”

Radek

Hi Radek,

In a case you get “” returned from the method, and you want to say please skip?

Or you get “” returned, and the you want to skip the rest but keep “”?

KR Henk

Sorry I misunderstood you…I understand now that when a method returns null you want to skip collecting this RA? The method returns null or " " (whitespaces)?

Empty parameters should not be captured.
I’ve checked that whispace should also be skipped.

Unfortunately that does not work in our case:

Here you see the config for 4. that is not working because when you save this postprocessing it is reverted to “begins with”. You end up with empty RA’s when there is no code between the bouderies.

Hello Henri,

So in short, if the return value is an empty string, there in no way to prevent Dynatrace from creating the attribute (with empty sring)

So in this case I agree with you, there should be an option “skip if empty”

KR Henk