Skip to content

Commit c591e70

Browse files
committed
First draft of new ad-provider-request-stats ping
1 parent 9e4e0f0 commit c591e70

File tree

2 files changed

+169
-0
lines changed

2 files changed

+169
-0
lines changed

telemetry/glean/metrics.yaml

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ ad_client:
268268
send_in_pings:
269269
- interaction
270270
- request-stats
271+
- ad-provider-request-stats
271272
notification_emails:
272273
- gleonard@mozilla.com
273274
bugs:
@@ -284,6 +285,7 @@ ad_client:
284285
lifetime: application
285286
send_in_pings:
286287
- interaction
288+
- ad-provider-request-stats
287289
notification_emails:
288290
- gleonard@mozilla.com
289291
bugs:
@@ -293,6 +295,51 @@ ad_client:
293295
- https://bugzilla.mozilla.org/show_bug.cgi?id=1900898
294296
expires: never
295297

298+
country_code:
299+
type: string
300+
description: >
301+
The client's country code.
302+
lifetime: application
303+
send_in_pings:
304+
- ad-provider-request-stats
305+
notification_emails:
306+
- mlifshin@mozilla.com
307+
bugs:
308+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
309+
data_reviews:
310+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
311+
expires: never
312+
313+
region_code:
314+
type: string
315+
description: >
316+
The client's region code.
317+
lifetime: application
318+
send_in_pings:
319+
- ad-provider-request-stats
320+
notification_emails:
321+
- mlifshin@mozilla.com
322+
bugs:
323+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
324+
data_reviews:
325+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
326+
expires: never
327+
328+
dma_code:
329+
type: string
330+
description: >
331+
The client's DMA code. May be null
332+
lifetime: application
333+
send_in_pings:
334+
- ad-provider-request-stats
335+
notification_emails:
336+
- mlifshin@mozilla.com
337+
bugs:
338+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
339+
data_reviews:
340+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
341+
expires: never
342+
296343
technical_operations:
297344
user_agent:
298345
type: string
@@ -454,3 +501,113 @@ technical_operations:
454501
data_reviews:
455502
- https://bugzilla.mozilla.org/show_bug.cgi?id=1928158
456503
expires: never
504+
505+
provider:
506+
name:
507+
type: string
508+
description: >
509+
The name of the ad provider
510+
lifetime: application
511+
send_in_pings:
512+
- ad-provider-request-stats
513+
notification_emails:
514+
- mlifshin@mozilla.com
515+
bugs:
516+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
517+
data_reviews:
518+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
519+
expires: never
520+
521+
request:
522+
count_requested:
523+
type: quantity
524+
unit: ads
525+
description: >
526+
The number of ads requested from the provider
527+
lifetime: application
528+
send_in_pings:
529+
- ad-provider-request-stats
530+
notification_emails:
531+
- mlifshin@mozilla.com
532+
bugs:
533+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
534+
data_reviews:
535+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
536+
expires: never
537+
538+
count_returned:
539+
type: quantity
540+
unit: ads
541+
description: >
542+
The number of ads returned by the provider.
543+
lifetime: application
544+
send_in_pings:
545+
- ad-provider-request-stats
546+
notification_emails:
547+
- mlifshin@mozilla.com
548+
bugs:
549+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
550+
data_reviews:
551+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
552+
expires: never
553+
554+
products_requested:
555+
type: string_list
556+
description: >
557+
The type of ad requested. Possible values are from Shepherd's Canonical Mozilla Ad Products:
558+
Tile, Native, Billboard, Rectangle, Skyscraper, Leaderboard.
559+
lifetime: application
560+
send_in_pings:
561+
- ad-provider-request-stats
562+
notification_emails:
563+
- mlifshin@mozilla.com
564+
bugs:
565+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
566+
data_reviews:
567+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
568+
expires: never
569+
570+
ids_returned:
571+
type: string_list
572+
description: >
573+
The ids of the creatives returned by the provider.
574+
lifetime: application
575+
send_in_pings:
576+
- ad-provider-request-stats
577+
notification_emails:
578+
- mlifshin@mozilla.com
579+
bugs:
580+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
581+
data_reviews:
582+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
583+
expires: never
584+
585+
request_timestamp:
586+
type: datetime
587+
description:
588+
The timestamp of the request to the provider.
589+
lifetime: application
590+
send_in_pings:
591+
- ad-provider-request-stats
592+
notification_emails:
593+
- mlifshin@mozilla.com
594+
bugs:
595+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
596+
data_reviews:
597+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
598+
expires: never
599+
600+
response_timestamp:
601+
type: datetime
602+
description:
603+
The timestamp of the response from the provider.
604+
lifetime: application
605+
send_in_pings:
606+
- ad-provider-request-stats
607+
notification_emails:
608+
- mlifshin@mozilla.com
609+
bugs:
610+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
611+
data_reviews:
612+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
613+
expires: never

telemetry/glean/pings.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,15 @@ interaction:
2929
- https://bugzilla.mozilla.org/show_bug.cgi?id=1928158
3030
data_reviews:
3131
- https://bugzilla.mozilla.org/show_bug.cgi?id=1928158
32+
33+
ad-provider-request-stats:
34+
description: >
35+
Request stats for MARS interactions with third party services that provide
36+
ads.
37+
include_client_id: false
38+
notification_emails:
39+
- mlifshin@mozilla.com
40+
bugs:
41+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO
42+
data_reviews:
43+
- https://bugzilla.mozilla.org/show_bug.cgi?id=TODO

0 commit comments

Comments
 (0)