tracing: decide if each mutation should trigger a new span event to deal with the case of excessive mutations and storage #1269
Labels
api: spanner
Issues related to the googleapis/python-spanner API.
In our tracing update reviews, everyone initially raised the need to record a span event whenever a new mutation had been added and I spun up some pull requests. However, @harshachinta wisely noted that if a customer creates 40,000 mutations to be added before invoking .commit(), 40,000 separate events would be created hence this would constitute a horrible user experience and also lots of data that a customer could be charged for spans per https://github.com/googleapis/python-spanner/pull/1259/files#r1875359721
Facts
num_mutations
when invoking .commit() that I had added as a span attribute perpython-spanner/google/cloud/spanner_v1/batch.py
Line 189 in a6811af
This issue is left as a reference for future decisions and to gain consensus with clear thought in time.
The text was updated successfully, but these errors were encountered: