I use LoggingWinston with nodejs Cloud functions. LoggingWinston does not add a LogEntry for span_id when used with Cloud Trace. I created a shim that adds this.
I have been using this technique for the last 2 years and I was hoping that it would be added at some point but I am not seeing any new tracking for span_id in latest LoggingWinston.
I am not sure if I am misguided with this approach or if this is something that could be handy. If misguided, I could use some direction as to how I should be thinking about spans and traces or if there is another best practice/preferred technique for tracking activity though Cloud Functions that can be used with Cloud Trace.
If the shim is of interest, I could work on submitting a PR to @google-cloud/logging-winston to be included. I would like to get rid of my shim preferring a library that handles this for me.