-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[goreleaser]
- Loading branch information
Showing
2 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package listener | ||
|
||
import ( | ||
"github.com/synapsecns/sanguine/core/metrics" | ||
"go.opentelemetry.io/otel/metric" | ||
) | ||
|
||
const meterName = "github.com/synapsecns/sanguine/ethergo/listener" | ||
|
||
// generate an interface for otelRecorder that exports the public method. | ||
// this allows us to avoid using recordX externally anad makes the package less confusing. | ||
// | ||
// ============================================================================= | ||
// ============================================================================= | ||
// IMPORTANT: DO NOT REMOVE THIS COMMENT. | ||
// NOTICE: PLEASE MAKE SURE YOU UPDATE BOTH THE DOCS AND THE GRAFANA DASHBOARD (IF NEEDED) AFTER UPDATING METRICS. | ||
// ============================================================================= | ||
// ============================================================================= | ||
// | ||
//go:generate go run github.com/vburenin/ifacemaker -f metrics.go -s otelRecorder -i iOtelRecorder -p submitter -o metrics_generated.go -c "autogenerated file" | ||
type otelRecorder struct { | ||
metrics metrics.Handler | ||
// meter is the metrics meter. | ||
meter metric.Meter | ||
// confirmedQueueGauge is the gauge for the confirmed queue. | ||
confirmedQueueGauge metric.Int64ObservableGauge | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters