Skip to content

Commit 98c29b8

Browse files
[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_attempts
1 parent df9779b commit 98c29b8

File tree

2 files changed

+880
-186
lines changed

2 files changed

+880
-186
lines changed

0 commit comments

Comments
 (0)