From 358477a6f7c65c7210298c49b20f780c9dd05b78 Mon Sep 17 00:00:00 2001 From: Raul Zamora Date: Fri, 1 Nov 2024 21:52:19 +0100 Subject: [PATCH] fix otel params --- src/managers/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/managers/config.py b/src/managers/config.py index fae6c218..454cfd28 100644 --- a/src/managers/config.py +++ b/src/managers/config.py @@ -284,7 +284,9 @@ def kafka_opts(self) -> str: f"-Djava.security.auth.login.config={self.workload.paths.zk_jaas}", ] - opts.append(f"-javaagent:{self.workload.paths.telemetry_jar}") + opts.append( + f"-javaagent:{self.workload.paths.telemetry_jar} -Dotel.traces.exporter=otlp -Dotel.service.name={self.state.model.app.name}-{self.state.model.unit.name}" + ) http_proxy = os.environ.get("JUJU_CHARM_HTTP_PROXY") https_proxy = os.environ.get("JUJU_CHARM_HTTPS_PROXY")