The documentation says that a single transaction should only be used in a single goroutine. In our application, though, we are using a common pattern where multiple external services are called in parallel using multiple goroutines. We’d like to be able to use segments to trace these calls. The obvious solution would be to start and end the segments in the main goroutine but that way we can’t access
http.Response structs that are supposedly the preferred way to use the
ExternalSegment API. Is there any solution? Or is not using transactions from multiple goroutines just a suggestion and not a hard limit?
Thanks for any ideas!