File tree 4 files changed +9
-7
lines changed
otlphttpexporter/testdata
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ type GRPCClientSettings struct {
73
73
Compression string `mapstructure:"compression"`
74
74
75
75
// TLSSetting struct exposes TLS client configuration.
76
- TLSSetting configtls.TLSClientSetting `mapstructure:",squash "`
76
+ TLSSetting configtls.TLSClientSetting `mapstructure:"tls,omitempty "`
77
77
78
78
// The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams.
79
79
// (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams).
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ type HTTPClientSettings struct {
38
38
Endpoint string `mapstructure:"endpoint"`
39
39
40
40
// TLSSetting struct exposes TLS client configuration.
41
- TLSSetting configtls.TLSClientSetting `mapstructure:",squash "`
41
+ TLSSetting configtls.TLSClientSetting `mapstructure:"tls,omitempty "`
42
42
43
43
// ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize.
44
44
ReadBufferSize int `mapstructure:"read_buffer_size"`
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ exporters:
12
12
otlp/2 :
13
13
endpoint : " 1.2.3.4:1234"
14
14
compression : " on"
15
- ca_file : /var/lib/mycert.pem
15
+ tls :
16
+ ca_file : /var/lib/mycert.pem
16
17
timeout : 10s
17
18
sending_queue :
18
19
enabled : true
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ exporters:
8
8
otlphttp :
9
9
otlphttp/2 :
10
10
endpoint : " https://1.2.3.4:1234"
11
- insecure : true
12
- ca_file : /var/lib/mycert.pem
13
- cert_file : certfile
14
- key_file : keyfile
11
+ tls :
12
+ ca_file : /var/lib/mycert.pem
13
+ cert_file : certfile
14
+ key_file : keyfile
15
+ insecure : true
15
16
timeout : 10s
16
17
read_buffer_size : 123
17
18
write_buffer_size : 345
You can’t perform that action at this time.
0 commit comments