We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e806f5a commit 6c77a9eCopy full SHA for 6c77a9e
1 file changed
drpcclient/dialoptions.go
@@ -33,8 +33,9 @@ type dialOptions struct {
33
// tlsConfig is an optional TLS configuration for secure connections.
34
tlsConfig *tls.Config
35
36
- // metrics holds optional metrics the conn will populate. If nil, no
37
- // metrics are recorded.
+ // metrics holds optional metrics the conn will populate. No metrics are
+ // recorded if this is nil. When shouldRecord is set, metrics are recorded
38
+ // only when shouldRecord returns true.
39
metrics *drpcmetrics.ClientMetrics
40
shouldRecord func() bool
41
}
0 commit comments