# US 2025/0156292 A1 · Duplication Avoidance For Mutable Event Based Metrics

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156292 A1
- Document ID: US20250156292A1
- Status: Published application
- Kind: A1
- Application number: 18/389,383
- Filed: 2023-11-14
- Published: 2025-05-15
- Earliest claimed: 2023-11-14
- Assignees: Datadog, Inc.
- Applicants: Datadog, Inc.
- Inventors: Karim Bogtob; Emmanuel Manousack Tran; Amina Bouabdallah; Louis Jolibois
- Web page: https://patentgrep.com/patent/US20250156292A1

## CPC

- G06F 11/3075: {the data filtering being achieved in order to maintain consistency among the monitored data, e.g. ensuring that the monitored data belong to the same timeframe, to the same system or component}
- G06F 11/3082: {the data filtering being achieved by aggregating or compressing the monitored data}
- G06F 2201/86: Event-based monitoring
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The technology disclosed herein provides a mechanism to avoid double counting when generating metrics from monitoring events received from an endpoint (e.g., end user's web browser, or mobile application). A unique identifier is assigned to each monitoring event matching a metric definition. When the number of unique identifiers assigned is below a predetermined threshold, a deduplication system determines whether the unique identifier for a given monitoring event is duplicative of any other unique identifiers, corresponding to other monitoring events, using a hash set. When the number of unique identifiers exceeds the predetermined threshold, the unique identifiers are automatically added to a probabilistic data structure, such as a scalable Bloom filter. In this scenario, the deduplication system would determine whether the unique identifier for the given monitoring event is duplicative of any other identifiers in the probabilistic data structure.

## Claims

### Claim 1

A system comprising:
memory; and
one or more processors in communication with the memory and configured to:
receive a defined set of one or more metric definitions for monitoring events associated with user interaction;
detect events that satisfy the one or more metric definitions;
assign a unique identifier to each event that satisfies the one or more metric definitions;
determine, for a first number of events, whether the assigned unique identifier is duplicative of any other identifiers in a hash set;
determine when a second number of events is received, wherein the second number exceeds a threshold; and
determine, for the second number of events, whether the assigned unique identifier is duplicative of any other identifiers in a probabilistic data structure.

### Claim 2 (depends on 1)

The system of claim 1, wherein the probabilistic data structure comprises a scalable bloom filter based on one or more hash functions.

### Claim 3 (depends on 1)

The system of claim 1, wherein the probabilistic data structure is initialized to a size to accommodate a third number of unique identifiers, and resized when a fourth number of unique identifiers is received.

### Claim 4 (depends on 1)

The system of claim 1, wherein detecting the events that satisfy the one or more metric definitions comprises filtering the events to retain mutable events and omit non-mutable events, and grouping the filtered mutable events into a specific stream, wherein the specific stream is read by a first reducer having access to the defined set of one or more metric definitions and processed to produce an aggregation request in an aggregation stream.

### Claim 5 (depends on 4)

The system of claim 4, wherein the aggregation stream is partitioned by metric definition and timestamp.

### Claim 6 (depends on 5)

The system of claim 5, wherein the aggregation request is received by a second reducer, wherein for each partition the second reducer determines whether the aggregation request was already received, and aggregates the aggregation request into a bucket if it was not already received.

### Claim 7 (depends on 6)

The system of claim 6, wherein determining, for the first number of events, whether the assigned unique identifier is duplicative of any other identifiers in the hash set comprises maintaining the hash set of unique identifiers in the bucket.

### Claim 8 (depends on 7)

The system of claim 7, wherein determining when the second number of events is reached comprises determining when the hash set of unique identifiers includes the second number of identifiers.

### Claim 9 (depends on 8)

The system of claim 8, wherein the one or more processors are configured to add the unique identifiers from the hash set into the probabilistic data structure when the hash set includes the second number of unique identifiers.

### Claim 10 (depends on 1)

The system of claim 1, wherein the user interaction comprises communication between a user device and at least one of a web site, web application, web service, web Application Programing Interface (API), mobile application, or program.

### Claim 11 (depends on 1)

The system of claim 1, wherein a first event associated with a first set of data, and a second event associated with the first set of data, will produce the same unique identifier if the first event and the second event satisfy the same metric definition.

### Claim 12 (depends on 1)

The system of claim 1, wherein a single event meeting multiple different metric definitions is deduplicated using a first memory for the first metric definition and a second memory for the second metric definition.

### Claim 13

A computer-implemented method, comprising:
receiving, at one or more processors, a defined set of one or more metric definitions for monitoring events associated with user interaction;
detecting, with the one or more processors, events that satisfy the one or more metric definitions;
assigning, with the one or more processors, a unique identifier to each event that satisfies the one or more metric definitions;
determining, with the one or more processors for a first number of events, whether the assigned unique identifier is duplicative of any other identifiers in a hash set;
determining, with the one or more processors, when a second number of events is received, wherein the second number exceeds a threshold; and
determining, with the one or more processors for the second number of events, whether the assigned unique identifier is duplicative of any other identifiers in a probabilistic data structure.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, wherein the probabilistic data structure comprises a scalable bloom filter based on one or more hash functions.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, wherein detecting the events that satisfy the one or more metric definitions comprises filtering the events to retain mutable events and omit non-mutable events, and grouping the filtered mutable events into a specific stream, wherein the specific stream is read by a first reducer having access to the defined set of one or more metric definitions and processed to produce an aggregation request in an aggregation stream.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein the aggregation stream is partitioned by metric definition and timestamp, and wherein the aggregation request is received by a second reducer, wherein for each partition the second reducer determines whether the aggregation request was already received, and aggregates the aggregation request into a bucket if it was not already received.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein determining, for the first number of events, whether the assigned unique identifier is duplicative of any other identifiers in the hash set comprises maintaining the hash set of unique identifiers in the bucket.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein determining when the second number of events is reached comprises determining when the hash set of unique identifiers includes the second number of identifiers.

### Claim 19 (depends on 18)

The computer-implemented method of claim 18, further comprising adding the unique identifiers from the hash set to the probabilistic data structure when the hash set includes the second number of unique identifiers.

### Claim 20 (depends on 13)

The computer-implemented method of claim 13, wherein the user interaction comprises communication between a user device and at least one of a web site, web application, web service, web Application Programing Interface (API), mobile application, or program.

### Claim 21 (depends on 13)

The computer-implemented method of claim 13, wherein a first event associated with a first set of data, and a second event associated with the first set of data, will produce the same unique identifier if the first event and the second event satisfy the same metric definition.

### Claim 22 (depends on 13)

The computer-implemented method of claim 13, wherein a single event meeting multiple different metric definitions is deduplicated using a first memory for the first metric definition and a second memory for the second metric definition.

### Claim 23

A non-transitory computer-readable medium storing instructions executable by one or more processors for performing a method, comprising:
receiving a defined set of one or more metric definitions for monitoring events associated with user interaction;
detecting events that satisfy the one or more metric definitions;
assigning a unique identifier to each event that satisfies the one or more metric definitions;
determining, for a first number of events, whether the assigned unique identifier is duplicative of any other identifiers in a hash set;
determining when a second number of events is received, wherein the second number exceeds a threshold; and
determining, for the second number of events, whether the assigned unique identifier is duplicative of any other identifiers in a probabilistic data structure.
