Skip to content

extension: Batch log events

Warren Gifford requested to merge ef/log-events into main

Created by: efritz

This PR adds LogEvents to the GraphQL Mutations, which is simply a multiple-event version of LogEvent. We want this mutation in order to make it so that we can batch insertions from the code intelligence extensions (which generate a lot of network traffic).

This PR writes an efficient method to insert into the database, and rewrites the existing methods to use the batch inserter as the "one implementation". We also try to batch insert dot-com events (amplitude allows it but pubsub does not).

@tjkandala may like to alter the TelemetryService to perform a batch GraphQL query before merge. Once complete, fixes https://github.com/sourcegraph/code-intel-extensions/issues/702.

Merge request reports

Loading