File tree Expand file tree Collapse file tree
src/workflows/util/zocalo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,25 +14,17 @@ class OTEL:
1414 class Schema (PluginSchema ):
1515 host = fields .Str (required = True )
1616 port = fields .Int (required = True )
17- endpoint = fields .Str (required = False )
1817 timeout = fields .Int (required = False , load_default = 10 )
1918
2019 # Store configuration for access by services
2120 config = {}
2221
2322 @staticmethod
2423 def activate (configuration ):
25- # Build the full endpoint URL if not provided
26- if "endpoint" not in configuration :
27- endpoint = (
28- f"https://{ configuration ['host' ]} :{ configuration ['port' ]} /v1/traces"
29- )
30- else :
31- endpoint = configuration ["endpoint" ]
32-
24+ # Build the full endpoint URL
25+ endpoint = f"https://{ configuration ['host' ]} :{ configuration ['port' ]} /v1/traces"
3326 OTEL .config ["endpoint" ] = endpoint
3427 OTEL .config ["timeout" ] = configuration .get ("timeout" , 10 )
35-
3628 return OTEL .config
3729
3830
You can’t perform that action at this time.
0 commit comments