Skip to content

Commit

Permalink
fix incorrect code removal
Browse files Browse the repository at this point in the history
  • Loading branch information
wconti27 committed Sep 30, 2024
1 parent 00d1355 commit b652631
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/dd-trace/src/datastreams/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ class StatsPoint {
}
}

class Backlog {
constructor ({ offset, ...tags }) {
this._tags = Object.keys(tags).sort().map(key => `${key}:${tags[key]}`)
this._hash = this._tags.join(',')
this._offset = offset
}

get hash () { return this._hash }

get offset () { return this._offset }

get tags () { return this._tags }

encode () {
return {
Tags: this.tags,
Value: this.offset
}
}
}

class StatsBucket {
constructor () {
Expand Down

0 comments on commit b652631

Please sign in to comment.