Loading

"Analytics event is dropped" warning messages are seen in API console logs

公開日: Jul 28, 2025
解決策

SYMPTOM

When API auto-discovery is enabled and the API is paired with the API Manager, many warning messages are seen in logs.
14:08:02.656 06/15/2018 Worker-1 [app].api-httpListenerConfig.worker.01 WARN 
Error collecting analytics for api xxxxxxxxx and uri https://app.au-s1.cloudhub.io/console/. Analytics event is dropped. 
14:08:02.819 06/15/2018 Worker-1 [app].api-httpListenerConfig.worker.01 WARN 
Error collecting analytics for api xxxxxxxxx and uri https://app.au-s1.cloudhub.io/console/scripts/api-console-vendor.min.js. Analytics event is dropped. 
14:08:03.024 06/15/2018 Worker-1 [app].api-httpListenerConfig.worker.01 WARN 
Error collecting analytics for api xxxxxxxxx and uri https://app.au-s1.cloudhub.io/console/scripts/api-console.min.js. Analytics event is dropped.

CAUSE

The API auto-discovery is configured pointing to the API console flow, like:
<api-platform-gw:api apiName="${apiName}" version="${apiVersion}" flowRef="api-console" create="true" apikitRef="api-config" 
doc:name="API Autodiscovery" />

By design, API Console events are not collected and thus dropped. The warning messages are printed for this configuration as the events are getting dropped.

SOLUTION

The correct configuration is to point to the APIKit flow. A sample API auto-discovery configuration referring to the APIKit flow is as shown below: 
<api-platform-gw:api apiName="${apiName}" version="${apiVersion}" flowRef="api-flow" create="true" apikitRef="api-config" 
doc:name="API Autodiscovery" />
ナレッジ記事番号

001117974

 
読み込み中
Salesforce Help | Article