-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce metrics based on system diagnostics (#84)
* feat: introduce metrics based on system diagnostics * closes: #58 --------- Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com> Co-authored-by: Gabriele Santomaggio <G.santomaggio@gmail.com> Co-authored-by: Luke Bakken <luke@bakken.io>
- Loading branch information
1 parent
bcdee01
commit f47744a
Showing
30 changed files
with
950 additions
and
78 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
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
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,40 @@ | ||
// This source code is dual-licensed under the Apache License, version | ||
// 2.0, and the Mozilla Public License, version 2.0. | ||
// Copyright (c) 2017-2023 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. | ||
|
||
using System; | ||
|
||
namespace RabbitMQ.AMQP.Client | ||
{ | ||
public interface IMetricsReporter | ||
{ | ||
enum PublishDispositionValue | ||
{ | ||
ACCEPTED, | ||
REJECTED, | ||
RELEASED | ||
}; | ||
|
||
enum ConsumeDispositionValue | ||
{ | ||
ACCEPTED, | ||
DISCARDED, | ||
REQUEUED | ||
}; | ||
|
||
void ConnectionOpened(); | ||
void ConnectionClosed(); | ||
|
||
void PublisherOpened(); | ||
void PublisherClosed(); | ||
|
||
void ConsumerOpened(); | ||
void ConsumerClosed(); | ||
|
||
void Published(TimeSpan elapsed); | ||
void PublishDisposition(PublishDispositionValue disposition); | ||
|
||
void Consumed(TimeSpan elapsed); | ||
void ConsumeDisposition(ConsumeDispositionValue disposition); | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.