Add missing tracing references to multiple services. (#7110)

This commit is contained in:
Daniel Swärd
2023-08-23 15:17:17 +02:00
committed by GitHub
parent 55127fe413
commit 49fc22d532
28 changed files with 162 additions and 83 deletions
+6 -1
View File
@@ -37,7 +37,11 @@ func Server(opts ...Option) (http.Service, error) {
return http.Service{}, fmt.Errorf("could not initialize http service: %w", err)
}
gatewaySelector, err := pool.GatewaySelector(options.Config.GatewayAddress, pool.WithRegistry(registry.GetRegistry()))
gatewaySelector, err := pool.GatewaySelector(
options.Config.GatewayAddress,
pool.WithRegistry(registry.GetRegistry()),
pool.WithTracerProvider(options.TraceProvider),
)
if err != nil {
return http.Service{}, err
}
@@ -67,6 +71,7 @@ func Server(opts ...Option) (http.Service, error) {
cors.AllowCredentials(options.Config.HTTP.CORS.AllowCredentials),
),
),
svc.TraceProvider(options.TraceProvider),
)
{