Skip to content

Commit

Permalink
Disable unused telemetry types (#10443)
Browse files Browse the repository at this point in the history
  • Loading branch information
skubakdj authored Sep 1, 2023
1 parent c206d9c commit 0ab6fef
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions core/services/ocr2/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,8 @@ func (d *Delegate) newServicesOCR2Functions(
ReportingPluginFactory: nil, // To be set by NewFunctionsServices
}

noopMonitoringEndpoint := telemetry.NoopAgent{}

thresholdOracleArgs := libocr2.OCR2OracleArgs{
BinaryNetworkEndpointFactory: d.peerWrapper.Peer2,
V2Bootstrappers: bootstrapPeers,
Expand All @@ -1222,11 +1224,12 @@ func (d *Delegate) newServicesOCR2Functions(
Database: thresholdOcrDB,
LocalConfig: lc,
Logger: ocrLogger,
MonitoringEndpoint: d.monitoringEndpointGen.GenMonitoringEndpoint(spec.ContractID, synchronization.OCR2Threshold),
OffchainConfigDigester: thresholdProvider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
ReportingPluginFactory: nil, // To be set by NewFunctionsServices
// Telemetry ingress for OCR2Threshold is currently not supported so a noop monitoring endpoint is being used
MonitoringEndpoint: &noopMonitoringEndpoint,
OffchainConfigDigester: thresholdProvider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
ReportingPluginFactory: nil, // To be set by NewFunctionsServices
}

s4OracleArgs := libocr2.OCR2OracleArgs{
Expand All @@ -1237,11 +1240,12 @@ func (d *Delegate) newServicesOCR2Functions(
Database: s4OcrDB,
LocalConfig: lc,
Logger: ocrLogger,
MonitoringEndpoint: d.monitoringEndpointGen.GenMonitoringEndpoint(spec.ContractID, synchronization.OCR2S4),
OffchainConfigDigester: s4Provider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
ReportingPluginFactory: nil, // To be set by NewFunctionsServices
// Telemetry ingress for OCR2S4 is currently not supported so a noop monitoring endpoint is being used
MonitoringEndpoint: &noopMonitoringEndpoint,
OffchainConfigDigester: s4Provider.OffchainConfigDigester(),
OffchainKeyring: kb,
OnchainKeyring: kb,
ReportingPluginFactory: nil, // To be set by NewFunctionsServices
}

encryptedThresholdKeyShare := d.cfg.Threshold().ThresholdKeyShare()
Expand Down

0 comments on commit 0ab6fef

Please sign in to comment.