Trace returns a copy of the Channel's trace data.
()
| 83 | |
| 84 | // Trace returns a copy of the Channel's trace data. |
| 85 | func (c *Channel) Trace() *ChannelTrace { |
| 86 | db.mu.RLock() |
| 87 | defer db.mu.RUnlock() |
| 88 | return c.trace.copy() |
| 89 | } |
| 90 | |
| 91 | // ChannelMetrics holds connectivity state, target and call metrics for the |
| 92 | // channel within channelz. |