Skip to content

Report aggregate API error and operational counts. #157

@bmayd

Description

@bmayd

There are conditions under which measureConversion() is known to fail; for example:

Providing feedback indicating how often these events were happening would be helpful.

Since we're generating histogram contributions anyway, we could reserve a set of histogram buckets specifically for the browser to provide feedback by generating a contribution for the appropriate bucket each time a given event occurred. We might also include counts for non-failure scenarios, like the number of times measureConversion() ran successfully, but matchedImpressions was zero, etc.

This would allow aggregated reports to include both the results of successful attributions and counts by type of instances where measureConversion() did not successfully attribute the conversion. If we decide to include this, it would be of value to also include the total number of calls to measureConversion() (i.e. total conversion reports received) for context.

Two possibilities for implementing this (I'm sure there are others):

  • Reserve a range of buckets for error reporting at the beginning or end of the histogramIndex range.
  • Reserve all negative index values which would require changing histogramIndex from an unsigned to a signed long.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions