Repository navigation
Description
Existing documentation URL(s)
What changes are you suggesting?
Show readers how to choose the format of $start and $end based on the query's GraphQL variable type. This would let readers copy the right format for daily counts, hourly volume, and individual events while keeping both kinds of ranges within the documented retention window.
Additional information
Summary
The Email Service analytics examples give a date-only format for the shared variables $start and $end. The hourly sending query and both individual-event queries use the GraphQL Time scalar and datetime filters.
Steps to reproduce
- Open Examples on the linked Metrics and analytics page and read the shared
$startand$endinstructions. - Compare the variable declarations and filters in Email sending operations with those in Hourly volume, Individual email events, and Individual routing events.
- Read the note below Individual routing events that explains the input types. This comparison requires only the published documentation.
Expected behavior
Readers should be able to prepare YYYY-MM-DD values for Date variables and timezone-qualified timestamps such as YYYY-MM-DDTHH:MM:SSZ for Time variables. The 31-day retention window should be clear for both formats.
Actual behavior
The shared instructions show only YYYY-MM-DD. The daily sending example declares both variables as Date! and uses date_geq and date_leq. The hourly example and both individual-event examples declare both variables as Time! and use datetime range filters. The note after the routing example describes the difference and shows the timestamp format. This conflict was observed in the published documentation and production source. An authenticated query was outside this check, so the server response to date-only input is unknown.
Evidence
- Expected source: GraphQL Analytics filtering demonstrates timestamp values for datetime filters. The note below Individual routing events gives the same pattern and distinguishes the two filter types.
- Failure source: The shared guidance on the linked page and its source at
src/content/docs/email-service/observability/metrics-analytics.mdx:135–149. Compare the query signatures at lines 156, 230, 254, and 361. - Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
Restoration check
Use the published variable instructions to prepare a date range for Email sending operations and timestamp ranges for Hourly volume, Individual email events, and Individual routing events. Each format should match the declared type, and all ranges should be within the documented retention window.
Runtime or environment
Published Cloudflare Developer Docs and the checked production revision cd5bf82ac1d0d34fe13997eb15c6727b498cd926.
Triage assessment
- Impact level: P2
- Assessment status: supported
- Impact basis: Readers following the shared instructions can miss the timestamp format for the hourly and individual-event queries used to inspect email volume and troubleshoot delivery.
- Workaround status: available
- Workaround basis: The note below the individual routing example and the general GraphQL filtering reference show the timestamp form.
References
- fix(email-service): analytics sample dates fall outside the documented retention window #35767 — tracked the expired fixed sample range for the day-level examples.
- [Email Service] Replace out-of-retention analytics sample dates #35829 — replaced that range with placeholders and introduced the shared date-only instruction that conflicts with the
Timeexamples.
Activity
[Email Service] Fix postmaster, limits, and GraphQL analytics docs