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

config.go   A

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 14
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A otelroundtripper.defaultConfig 0 4 1
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