Skip to content

Commit

Permalink
chore: avoid sending scene id in the comms metrics for other than sce…
Browse files Browse the repository at this point in the history
…ne data messages (#6049)

avoid sending scene id for other than scene data
  • Loading branch information
hugoArregui authored Jan 9, 2024
1 parent c36aeb3 commit 554e14d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export function incrementAvatarSceneMessages(value: number) {
}

export function incrementCommsMessageSent(type: string, size: number, sceneId?: string) {
if (!sceneId) {
if (!sceneId || type !== 'scene') {
// if type is not scene, we don't care about scene id and we prevent extra cardinality in the metric
sceneId = 'noscene'
}
const key = `${sceneId}-${type}`
Expand Down

0 comments on commit 554e14d

Please sign in to comment.