Skip to content

Commit

Permalink
fix otel params
Browse files Browse the repository at this point in the history
  • Loading branch information
zmraul committed Nov 1, 2024
1 parent 013e7cd commit 358477a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/managers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 358477a

Please sign in to comment.