DataDog / pg_tracing

Distributed Tracing for PostgreSQL
MIT License
34 stars 5 forks source link

Handle 0 query id and tune tx_block spans #42

Closed bonnefoa closed 2 months ago

bonnefoa commented 2 months ago

Query id can be set to 0 despite compute_query_id being set. Fallback to store the query string without using the hashmap in this case.

Also modify the creation of the tx_block spans: If we are in a middle of a tx_block and there's no existing tx_block span, create one.