Parameterized queries shouldn't be sanitized (because the user self-sanitizes through parameters), and collecting parameter values will be an opt in config
For all other queries, text should only be captured if it's sanitized. Literal values should be replaced by ?
Batch
New attribute to capture batch size
Operation name should be prepended with BATCH for homogenous operations, or be just BATCH for heterogenous operations. If the DB system has a native name that makes sense we can use that (ex. our API names for ReadMany, TransactionalBatch etc.)
Span name
Change span name to "" where target is the collection name if available
This removes the or account name in our case from the span name
Few open requests for reference (might or might not be relevant):
Query sanitization
Batch
Span name
Few open requests for reference (might or might not be relevant):