From 0f75d29c2205248feb16cd97a13bc4a3fe8e0aea Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Fri, 23 Aug 2024 13:35:40 +0000 Subject: [PATCH] fix: read tel options when starting prover_node --- yarn-project/aztec/src/cli/cmds/start_prover_node.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/yarn-project/aztec/src/cli/cmds/start_prover_node.ts b/yarn-project/aztec/src/cli/cmds/start_prover_node.ts index 539fc44bffa..21d8a54f3f9 100644 --- a/yarn-project/aztec/src/cli/cmds/start_prover_node.ts +++ b/yarn-project/aztec/src/cli/cmds/start_prover_node.ts @@ -9,10 +9,7 @@ import { createProverNodeRpcServer, proverNodeConfigMappings, } from '@aztec/prover-node'; -import { - createAndStartTelemetryClient, - getConfigEnvVars as getTelemetryClientConfig, -} from '@aztec/telemetry-client/start'; +import { createAndStartTelemetryClient, telemetryClientConfigMappings } from '@aztec/telemetry-client/start'; import { mnemonicToAccount } from 'viem/accounts'; @@ -70,7 +67,9 @@ export const startProverNode = async ( proverConfig.l1Contracts = await createAztecNodeClient(nodeUrl).getL1ContractAddresses(); } - const telemetry = await createAndStartTelemetryClient(getTelemetryClientConfig()); + const telemetry = await createAndStartTelemetryClient( + extractRelevantOptions(options, telemetryClientConfigMappings, 'tel'), + ); const proverNode = await createProverNode(proverConfig, { telemetry }); services.push({ node: createProverNodeRpcServer(proverNode) });