NTP-24367 | optional chaning in metrics added

This commit is contained in:
Mayank Singh
2025-01-02 18:51:29 +05:30
parent 17c27d8a22
commit d3484f3ed3

View File

@@ -215,7 +215,7 @@ class AmeyoAdapter implements IAdapter {
_registerMessageListener = async ({data}: GenericObject) => {
if(data?.type !== MessagingType.SET_RESPONSE_WITHOUT_CORS && data?.type !== MessagingType.GET_RESPONSE_WITHOUT_CORS) {
this.metricProcessor.pushCounterMetric({
this.metricProcessor?.pushCounterMetric({
metricName: `ameyo-events-count`,
flow: 'api-events-count',
subFlow:`universal-call-sdk-${data?.type}`