In T376026 the event platform started to override the meta.dt of any producer setting it.
The instrumentation code of WDQS SPARQL queries relies on an event generator that uses meta.dt to capture the time the query was received. This system does use a buffer and the timestamp of when the query hits the backend and the timestamp of when the event enters eventgate might now differ since T376026. This might be the source of some inaccuracies in the SPARQL query logs.
If this inaccuracy is acceptable then we should only stop setting meta.dt from the event generator. If not we should introduce a new top-level dt field to capture the time the query was received in the backend.
Link to code: QueryEventGenerator.
AC:
- Decide if using the meta.dt (as set by eventgate) is acceptable for WDQS sparql query log analysis
- If yes: stop populating meta.dt from the QueryEventGenerator
- If not:
- https://schema.wikimedia.org/#!//secondary/jsonschema/sparql/query is updated to have a new top-level dt field
- QueryEventGenerator is updated to use this new schema and set the dt instead of meta.dt