KB Article #179641

Duplicate records appear in Analytics for calls to an API method.

Problem

Duplicate records appear in Analytics for calls to an API method.

Resolution


Under examination these duplicate records are written against the same API method but for different service names.

When an API Gateway instance is configured to write to Analytics (metrics table), it will write a record every time there is a 'Set Service context' filter in the Policy (or Policies) invoked by the API call.

If you check the duplicate records written for the same method, you should see they have different 'service' names. If you ensure that the policy invoked (after the API call) has only one 'Set Service Context' filter then only one record for the API call should be written to the Analytics table.