Skip to content

Commit

Permalink
refacto: Span meter enums
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Dec 13, 2024
1 parent 59e0d68 commit f2095f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/helpers/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def attribute(
span.set_attribute(self.value, value)


class SpanCounterEnum(str, Enum):
class SpanMeterEnum(str, Enum):
CALL_ANSWER_LATENCY = "call.answer.latency"
"""Answer latency in seconds."""
CALL_AEC_MISSED = "call.aec.missed"
Expand Down Expand Up @@ -109,9 +109,9 @@ def gauge(
)

# Init metrics
call_answer_latency = SpanCounterEnum.CALL_ANSWER_LATENCY.gauge("s")
call_aec_droped = SpanCounterEnum.CALL_AEC_DROPED.counter("frames")
call_aec_missed = SpanCounterEnum.CALL_AEC_MISSED.counter("frames")
call_answer_latency = SpanMeterEnum.CALL_ANSWER_LATENCY.gauge("s")
call_aec_droped = SpanMeterEnum.CALL_AEC_DROPED.counter("frames")
call_aec_missed = SpanMeterEnum.CALL_AEC_MISSED.counter("frames")


def gauge_set(
Expand Down

0 comments on commit f2095f5

Please sign in to comment.