File tree 3 files changed +24
-28
lines changed
3 files changed +24
-28
lines changed Original file line number Diff line number Diff line change @@ -14,24 +14,22 @@ import (
14
14
clienthttp "github.com/krakend/krakend-otel/http/client"
15
15
)
16
16
17
- var (
18
- defaultOpts = otelconfig.BackendOpts {
19
- Metrics : & otelconfig.BackendMetricOpts {
20
- DisableStage : false ,
21
- RoundTrip : true ,
22
- ReadPayload : true ,
23
- DetailedConnection : true ,
24
- StaticAttributes : make (map [string ]string ),
25
- },
26
- Traces : & otelconfig.BackendTraceOpts {
27
- DisableStage : false ,
28
- RoundTrip : true ,
29
- ReadPayload : true ,
30
- DetailedConnection : true ,
31
- StaticAttributes : make (map [string ]string ),
32
- },
33
- }
34
- )
17
+ var defaultOpts = otelconfig.BackendOpts {
18
+ Metrics : & otelconfig.BackendMetricOpts {
19
+ DisableStage : false ,
20
+ RoundTrip : true ,
21
+ ReadPayload : true ,
22
+ DetailedConnection : true ,
23
+ StaticAttributes : make (map [string ]string ),
24
+ },
25
+ Traces : & otelconfig.BackendTraceOpts {
26
+ DisableStage : false ,
27
+ RoundTrip : true ,
28
+ ReadPayload : true ,
29
+ DetailedConnection : true ,
30
+ StaticAttributes : make (map [string ]string ),
31
+ },
32
+ }
35
33
36
34
// HTTPRequestExecutorFromConfig creates an HTTPRequestExecutor to be used
37
35
// for the backend requests.
Original file line number Diff line number Diff line change @@ -17,14 +17,12 @@ import (
17
17
"github.com/krakend/krakend-otel/state"
18
18
)
19
19
20
- var (
21
- defaultSkipPaths = []string {
22
- "/healthz" ,
23
- "/_ah/health" ,
24
- "/__debug" ,
25
- "/__echo" ,
26
- }
27
- )
20
+ var defaultSkipPaths = []string {
21
+ "/healthz" ,
22
+ "/_ah/health" ,
23
+ "/__debug" ,
24
+ "/__echo" ,
25
+ }
28
26
29
27
// defaultRouterOpts return the default options when no options
30
28
// are provided
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import (
11
11
)
12
12
13
13
func PropagationMiddleware (next gin.HandlerFunc ,
14
- prop propagation.TextMapPropagator ) gin. HandlerFunc {
15
-
14
+ prop propagation.TextMapPropagator ,
15
+ ) gin. HandlerFunc {
16
16
if prop == nil {
17
17
return next
18
18
}
You can’t perform that action at this time.
0 commit comments