-
Notifications
You must be signed in to change notification settings - Fork 5
feat: introduce metrics based on system diagnostics #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Gsantomaggio
merged 31 commits into
rabbitmq:main
from
aygalinc:feat/introduce_metrics_based_on_system_diagnostics
Nov 19, 2024
Merged
Changes from 3 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
ea97eb6
feat: add message publishing metrics
aygalinc a4638b5
chore: add more metrics
aygalinc 8f51146
formatting
Gsantomaggio bb4e334
fix: use only dotnet 8 ImeterFactory for implementation
aygalinc ea925ab
chore: format
aygalinc 40e0ae6
use rabbitmq:4.0.2-management
Gsantomaggio 653b1b2
use rabbitmq:4.0.2-management
Gsantomaggio 136aa04
merge
Gsantomaggio 0b4b623
merge
Gsantomaggio 19e834f
Modify Tests.csproj to use net462 since (supposedly) `Microsoft.Exten…
lukebakken 2e91b4f
* `dotnet format` fixes
lukebakken 3723713
* Suppress TFM support build warnings in Tests.csproj
lukebakken 9dc565a
* Use `Stopwatch` in a netstandard2.0 compatible way.
lukebakken ecef22c
* Change `AmqpEnvironment` to non-async `Create` method.
lukebakken 3270d7a
* Only create `Stopwatch` instance if `IMetricsReporter` is not null.
lukebakken 01a24a2
fixup
lukebakken db3cabe
chore: add example projet to integrate metric in Open telemetry sdk
aygalinc 3ddf4ab
chore: apply format
aygalinc a3c073c
chore: update example readme
aygalinc aa4f348
chore: remove unecessary code
aygalinc e24ca87
* Move some stuff around
lukebakken abec929
* Combine metrics context data classes into the same class.
lukebakken 330ce0c
* Start bringing the metrics in-line with the Java AMQP 1.0 client.
lukebakken c39559a
*Combine metrics tests into a single test suite
lukebakken 7fdf08a
* Add elapsed timespan to publish measurements
lukebakken 1206875
fixup
lukebakken 925c6ae
Thanks @aygalinc for noticing that a call to `Pause` is missing in a …
lukebakken 94edb0d
* Collect consume elapsed time duration.
lukebakken 1e566fd
* Use seconds instead of milliseconds.
lukebakken c594cff
* Ensure all of the new metrics are tested.
lukebakken 75ba9a8
* Misc fixes, add `InternalBugException`
lukebakken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| using System; | ||
aygalinc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| using Amqp; | ||
|
|
||
| namespace RabbitMQ.AMQP.Client.Impl | ||
| { | ||
| public interface IMetricsReporter | ||
| { | ||
| void ReportMessageSendSuccess(PublisherContext context, long startTimestamp); | ||
| void ReportMessageSendFailure(PublisherContext context, long startTimestamp, AmqpException amqpException); | ||
| public void ReportMessageDeliverSuccess(ConsumerContext context, long startTimestamp); | ||
| void ReportMessageDeliverFailure(ConsumerContext consumerContext, long startTimestamp, Exception exception); | ||
| sealed class ConsumerContext | ||
| { | ||
| public ConsumerContext(string? destination, string serverAddress, int serverPort) | ||
| { | ||
| Destination = destination; | ||
| ServerAddress = serverAddress; | ||
| ServerPort = serverPort; | ||
| } | ||
|
|
||
| public string? Destination { get; } | ||
| public string ServerAddress { get; } | ||
| public int ServerPort { get; } | ||
| } | ||
|
|
||
| sealed class PublisherContext | ||
| { | ||
| public PublisherContext(string? destination, string serverAddress, int serverPort) | ||
| { | ||
| Destination = destination; | ||
| ServerAddress = serverAddress; | ||
| ServerPort = serverPort; | ||
| } | ||
|
|
||
| public string? Destination { get; } | ||
| public string ServerAddress { get; } | ||
| public int ServerPort { get; } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.