-
Notifications
You must be signed in to change notification settings - Fork 465
Commit 98c29b8
authored
[Instrumentation] Add D1 spans (#5218)
Instruments D1 calls using the new internal JS tracing module
Adds the following spans and attributes:
d1_batch
db.system.name
db.operation.name
db.query.text
db.operation.batch.size
cloudflare.binding.type
cloudflare.d1.query.bookmark
cloudflare.d1.response.bookmark
cloudflare.d1.response.size_after
cloudflare.d1.response.rows_read
cloudflare.d1.response.rows_written
cloudflare.d1.response.last_row_id
cloudflare.d1.response.changed_db
cloudflare.d1.response.changes
cloudflare.d1.response.served_by_region
cloudflare.d1.response.served_by_primary
cloudflare.d1.response.sql_duration_ms
cloudflare.d1.response.total_attempts
d1_exec
db.system.name
db.operation.name
db.query.text
cloudflare.binding.type
cloudflare.d1.response.size_after
cloudflare.d1.response.rows_read
cloudflare.d1.response.rows_written
cloudflare.d1.response.last_row_id
cloudflare.d1.response.changed_db
cloudflare.d1.response.changes
cloudflare.d1.response.served_by_region
cloudflare.d1.response.served_by_primary
cloudflare.d1.response.sql_duration_ms
cloudflare.d1.response.total_attempts
d1_first
db.system.name
db.operation.name
db.query.text
cloudflare.binding.type
cloudflare.d1.query.bookmark
cloudflare.d1.response.bookmark
cloudflare.d1.response.size_after
cloudflare.d1.response.rows_read
cloudflare.d1.response.rows_written
cloudflare.d1.response.last_row_id
cloudflare.d1.response.changed_db
cloudflare.d1.response.changes
cloudflare.d1.response.served_by_region
cloudflare.d1.response.served_by_primary
cloudflare.d1.response.sql_duration_ms
cloudflare.d1.response.total_attempts
d1_run
db.system.name
db.operation.name
db.query.text
cloudflare.binding.type
cloudflare.d1.query.bookmark
cloudflare.d1.response.bookmark
cloudflare.d1.response.size_after
cloudflare.d1.response.rows_read
cloudflare.d1.response.rows_written
cloudflare.d1.response.last_row_id
cloudflare.d1.response.changed_db
cloudflare.d1.response.changes
cloudflare.d1.response.served_by_region
cloudflare.d1.response.served_by_primary
cloudflare.d1.response.sql_duration_ms
cloudflare.d1.response.total_attempts
d1_all
db.system.name
db.operation.name
db.query.text
cloudflare.binding.type
cloudflare.d1.query.bookmark
cloudflare.d1.response.bookmark
cloudflare.d1.response.size_after
cloudflare.d1.response.rows_read
cloudflare.d1.response.rows_written
cloudflare.d1.response.last_row_id
cloudflare.d1.response.changed_db
cloudflare.d1.response.changes
cloudflare.d1.response.served_by_region
cloudflare.d1.response.served_by_primary
cloudflare.d1.response.sql_duration_ms
cloudflare.d1.response.total_attempts
d1_raw
db.system.name
db.operation.name
db.query.text
cloudflare.binding.type
cloudflare.d1.query.bookmark
cloudflare.d1.response.bookmark
cloudflare.d1.response.size_after
cloudflare.d1.response.rows_read
cloudflare.d1.response.rows_written
cloudflare.d1.response.last_row_id
cloudflare.d1.response.changed_db
cloudflare.d1.response.changes
cloudflare.d1.response.served_by_region
cloudflare.d1.response.served_by_primary
cloudflare.d1.response.sql_duration_ms
cloudflare.d1.response.total_attempts1 parent df9779b commit 98c29b8Copy full SHA for 98c29b8
File tree
Expand file treeCollapse file tree
2 files changed
+880
-186
lines changedOpen diff view settings
Filter options
- src/cloudflare/internal
- test/d1
Expand file treeCollapse file tree
2 files changed
+880
-186
lines changedOpen diff view settings
0 commit comments