Skip to content

Commit dd1287d

Browse files
style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in 52885ad according to the output from Go fmt and Gofumpt. Details: #1
1 parent 52885ad commit dd1287d

File tree

3 files changed

+24
-28
lines changed

3 files changed

+24
-28
lines changed

lura/backend.go

+16-18
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,22 @@ import (
1414
clienthttp "github.com/krakend/krakend-otel/http/client"
1515
)
1616

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+
}
3533

3634
// HTTPRequestExecutorFromConfig creates an HTTPRequestExecutor to be used
3735
// for the backend requests.

router/gin/endpoint.go

+6-8
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ import (
1717
"github.com/krakend/krakend-otel/state"
1818
)
1919

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+
}
2826

2927
// defaultRouterOpts return the default options when no options
3028
// are provided

router/gin/propagation.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
)
1212

1313
func PropagationMiddleware(next gin.HandlerFunc,
14-
prop propagation.TextMapPropagator) gin.HandlerFunc {
15-
14+
prop propagation.TextMapPropagator,
15+
) gin.HandlerFunc {
1616
if prop == nil {
1717
return next
1818
}

0 commit comments

Comments
 (0)