NTP-24367 | optional chaning in metrics added
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user