Goroutine ID for debugging purposes

Hello, I want to add logging/debugging to our app server, and I need goroutine ID for that (just for logging purposes).
There is code out there, which pretty much does what is being done below.

Is there any plan of giving us the GoRoutineID from go-sdk?

This code looks like an ugly hack.

Can you tell use why exactly you need to acces the ID of a goroutine?

In our API-Server, for ease of debugging we want to put the goroutine id so we can differentiate the logs and debug problems more easily. We want to just log the go-routine id in all the debug messages.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.