cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exclude Specific Browsers From Query Results

cwinkler109
Participant

We use the following query in Data Explorer to monitor LCP:

builtin:apps.web.action.largestContentfulPaint.load.userType.geo:filter(and(or(in("dt.entity.application_method",entitySelector("type(application_method),entityName.equals(~"loading of pdp~")"))))):splitBy("dt.entity.application_method"):percentile(95.0):sort(value(percentile(95.0),descending)):limit(20)

 

Is it possible to modify that query to exclude LCP data from the "FacebookBot" browser?

 

 

7 REPLIES 7

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

I would say no, as you can see, browser is not a metric dimension:

AntonPineiro_0-1746168813998.png

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Yes, for me Browsers is a dimension:

cwinkler109_0-1746204379498.png

 

Hi,

Yes, I was checking another metric. Which options appears to you in filter field?

AntonPineiro_0-1746436423188.png

Is not there?

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Yes, I can filter by browser. Many different types of browsers are available for me to filter the results by. 

My question is how can I exclude one of those browsers from the results. For example, how would I write my query to retieve and trend LCP metrics for everything EXCEPT the "facebookbot" browser.

Hi,

I see your point. @mark_bley has already pointing you in the right direction. You need to use "not" to exclude it.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

mark_bley
Dynatrace Champion
Dynatrace Champion

You will need to adapt the query and negate the browsers you are not interested in, here an example:

builtin:apps.web.action.largestContentfulPaint.load.browser
:filter(
    and(not(in("dt.entity.browser",entitySelector("type(browser),entityName.in(~"Chrome 100~",~"Chrome 101~",~"Chrome~")")))
)
)
:splitBy("dt.entity.browser"):sort(value(auto,descending)):limit(20)

 

cwinkler109
Participant

Perfect. Thank you!

Featured Posts