Convert storage system to use service tracing.

This converts the storage system service to use a service trace provider.
This commit is contained in:
Daniël Franke
2023-07-28 10:54:20 +02:00
parent 44d9c50f1e
commit 83c90b60ef
5 changed files with 24 additions and 36 deletions
@@ -10,13 +10,6 @@ import (
// StorageSystemFromStruct will adapt an oCIS config struct into a reva mapstructure to start a reva service.
func StorageSystemFromStruct(cfg *config.Config) map[string]interface{} {
rcfg := map[string]interface{}{
"core": map[string]interface{}{
"tracing_enabled": cfg.Tracing.Enabled,
"tracing_exporter": cfg.Tracing.Type,
"tracing_endpoint": cfg.Tracing.Endpoint,
"tracing_collector": cfg.Tracing.Collector,
"tracing_service_name": cfg.Service.Name,
},
"shared": map[string]interface{}{
"jwt_secret": cfg.TokenManager.JWTSecret,
"gatewaysvc": cfg.Reva.Address,