Skip to content

Commit 3810d73

Browse files
committed
Merge branch 'initial_implementation' of github.com:krakend/krakend-otel into initial_implementation
2 parents f18c1c6 + f7b311a commit 3810d73

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lura/proxy.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,17 @@ func ProxyFactory(pf proxy.Factory, gsfn state.GetterFn, opts *kotelconfig.PipeO
170170
// BackendFactory returns a backend factory that wraps the provided backend factory with the
171171
// instrumentation [Middleware] based on the configuration options.
172172
func BackendFactory(bf proxy.BackendFactory, gsfn state.GetterFn, opts *kotelconfig.BackendOpts,
173-
skipPaths []string) proxy.BackendFactory {
173+
skipPaths []string,
174+
) proxy.BackendFactory {
174175
if opts == nil || (opts.Metrics.DisableStage && opts.Traces.DisableStage) {
175176
return bf
176177
}
177178
return OTELBackendFactory(bf, gsfn, !opts.Metrics.DisableStage, !opts.Traces.DisableStage, skipPaths)
178179
}
179180

180181
func OTELBackendFactory(bf proxy.BackendFactory, gsfn state.GetterFn, metricsEnabled bool, tracesEnabled bool,
181-
skipPaths []string) proxy.BackendFactory {
182+
skipPaths []string,
183+
) proxy.BackendFactory {
182184
return func(cfg *config.Backend) proxy.Proxy {
183185
next := bf(cfg)
184186
for _, sp := range skipPaths {

0 commit comments

Comments
 (0)