Skip to content

Commit

Permalink
Check if tracing is enabled (#582)
Browse files Browse the repository at this point in the history
* Check if tracing is enabled

* fmt
  • Loading branch information
pepoviola authored Nov 11, 2022
1 parent c25a1e6 commit 8896fe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion javascript/packages/orchestrator/src/orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,10 @@ export async function start(

const monitorIsAvailable = await client.isPodMonitorAvailable();
let jaegerUrl: string;
if (client.providerName === "podman") {
if (
client.providerName === "podman" &&
networkSpec.settings.enable_tracing
) {
const jaegerIp = await client.getNodeIP("tempo");
jaegerUrl = `${jaegerIp}:6831`;
} else if (
Expand Down

0 comments on commit 8896fe7

Please sign in to comment.