Skip to content

Commit

Permalink
add metrics interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Lin committed Apr 15, 2024
1 parent b18b52e commit 2d6bb17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions metrics/metrics.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package metrics

// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

// Emitter emits different types of metrics
type Emitter interface {
EmitCounter(metricName string, value float64, labels map[string]string)
EmitGauge(metricName string, value float64, labels map[string]string)
}

0 comments on commit 2d6bb17

Please sign in to comment.