Passed
Push — main ( 4f1914...ccb884 )
by Acho
01:30
created

otelroundtripper.defaultConfig   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 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
	}
22
}
23