x/net/trace: Printing events in a trace #30524
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?1.11.4
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?darwin/amd64
go env
OutputWhat did you do?
I have a service(Service-B) which talks to another service(service-A) via GRPC. The GRPC server(service-A) is coded to return an error on every request. In the client, I have implemented a retry mechanism to retry calls to the server on every error max of 10 times. I am trying to print the logs of how many times the call was retried. I am doing this in my client(service-B).
What did you expect to see?
Some logs of how many times the calls were retried.
What did you see instead?
No logs. However, when I print the context(
ctx
) or the trace(currentTrace
), I do see the trace in the log. I also saw anEvents()
method in both theTrace
andEventLog
files. But it is not in the interface, so I cannot make use of the method. I need some help as to how I can print the trace of the retries.The text was updated successfully, but these errors were encountered: