Skip to content

Commit 229214f

Browse files
committed
Remove the option to manually configure full endpoint
1 parent a6fdbb1 commit 229214f

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/workflows/util/zocalo/configuration.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)