forked from quic-go/quic-go
metrics: simplify constructor for the default connection tracer (#4555)
This commit is contained in:
@@ -22,15 +22,11 @@ When using multiple `Transport`s, it is recommended to use the metrics tracer st
|
||||
|
||||
Set a metrics connection tracer on the `Config`:
|
||||
```go
|
||||
tracer := metrics.DefaultTracer()
|
||||
quic.Config{
|
||||
Tracer: tracer,
|
||||
Tracer: metrics.DefaultConnectionTracer,
|
||||
}
|
||||
```
|
||||
|
||||
It is recommended to use the same connection tracer returned by `DefaultTracer` on the `Config`s for all connections.
|
||||
|
||||
|
||||
Running:
|
||||
```shell
|
||||
docker-compose up
|
||||
|
||||
Reference in New Issue
Block a user