-
Notifications
You must be signed in to change notification settings - Fork 306
Closed
Labels
Description
Case 1 (simple)
Given a batch query of
- insert into table1 values (1)
- insert into table1 values (2)
db.query.summary is the same for each of the queries in the batch (insert table1).
I think that db.query.summary in this case should be BATCH insert table1.
(matching db.operation.name behavior for batch queries)
Case 2 (harder)
Given a batch query of
- insert into table1 values (1)
- insert into table2 values (2)
db.query.summary is different for each of the queries in the batch (insert table1 and insert table2).
Should db.query.summary for the batch be:
BATCH(matchingdb.operation.namebehavior), or- not reported
Pros to reporting BATCH
- If you're already
db.query.summaryon other queries, it's nice to have some value fordb.query.summaryfor batch queries since we're envisioning this being a key metric attribute for (some) dashboards - I'm leaning towards this, sent Clarify
db.query.summaryfor batch queries #3287 to see what it looks like
Pros to not reporting the attribute
- Span name in this case will be only
BATCH, while if it was not reported it would fallback tooperation.namewhich happens to be common in this case, and so span name would be the slightly more descriptiveBATCH INSERT
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Need triage