Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package otelroundtripper |
||
2 | |||
3 | import ( |
||
4 | "net/http" |
||
5 | |||
6 | "go.opentelemetry.io/otel/attribute" |
||
7 | "go.opentelemetry.io/otel/metric" |
||
8 | ) |
||
9 | |||
10 | type config struct { |
||
11 | name string |
||
12 | parent http.RoundTripper |
||
13 | meter metric.Meter |
||
14 | attributes []attribute.KeyValue |
||
15 | } |
||
16 | |||
17 | func defaultConfig() *config { |
||
18 | return &config{ |
||
19 | name: "http.client", |
||
20 | parent: http.DefaultTransport, |
||
21 | } |
||
23 |