abpframework / abpframework/abp
Introduce ABP Diagnostics Module
@hikalkan is already working on this.
Since Mar 13, 2023.
- Dominant language
- C#
- Stars
- 14.4k
- Forks
- 3.7k
- Avg merge
- 15h 32m
- Merged PRs (30d)
- 106
Description
Describe the solution you'd like
An ideal solution would be to use a new Volo.Abp.Diagnostics module like:
[DependsOn(typeof(AbpDiagnosticsModule))]
// Or even
[DependsOn(typeof(AbpDiagnosticsOpenTelemetryModule))]
this should register interceptors for diagnostics.
Then in any class
[Diagnostics]
public class Worker : ITransientDependency
{
[Diagnostics("Doing work")]
public async Task DoWork()
{
// code
}
}
this should intercept this method and start an Activity with the name Worker : Doing work
And if AbpDiagnosticsOpenTelemetryModule is used, then send tracing information to the OpenTelemetry Collector
Additional context
Diagnostics is a critical concept in shipping a product.
Diagnostics can help to analyze and fix applications' performance issues.
I have already implemented it for use in our company and can contribute to it by creating a PR.
Here is an example of what you get:


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.