googleapis / nodejs-spanner

Node.js client for Google Cloud Spanner: the world’s first fully managed relational database service to offer both strong consistency and horizontal scalability.
https://cloud.google.com/spanner/
Apache License 2.0
135 stars 99 forks source link

all: instrument with traces for observability #2079

Open odeke-em opened 2 months ago

odeke-em commented 2 months ago

Customers are asking for traces to be added to this package so that they can properly diagnose latency issues and have observability for their systems.

I am tasked with implementing tracing for this library and this issue serves as the reference. I have implemented this functionality in my fork https://github.com/orijtech/nodejs-spanner/pull/3 and I shall progressively send code changes to this repository to make the software development process much more scalable and easier to merge.

Samples of results

Screenshot 2024-07-14 at 1 52 25 AM

with PII acknowledgement and annotations added

Screenshot 2024-07-14 at 1 52 47 AM