Skip to content

ABaboshin/DotNetCoreProfiler

Repository files navigation

Inject DevOps-things using ICorProfilerCallback

Build Status

This project has a goal to demonstrate injection of the following devops-related things into .net core 3.1 apps:

Limitations

Project structure

ICorProfilerCallback implementation

See src/profiler.

Interceptors

See samples/Interception:

Observers

See src/Interception.Observers:

  • EntityFrameworkCoreObserver observers and measure execution time of entity framework core queries
  • HttpHandlerDiagnostrics observers and measure execution time of outgoing http requests

Method parameter validation

See src/Interception.Attributes:

  • NotNullAttribute checks if a passed parameter value is not null,
  • GreatThenZeroAttribute checks if a passed int value is positive

Prometheus/Statsd reporter

See src/Interception.OpenTracing.Statd is an implementation of OpenTracing to report the metrics into statsd.

(max by (traceId) (finishDate{quantile="0.99"}) - on (traceId) min by (traceId) (startDate{quantile="0.99"})) * on(traceId) group_left(service, type) metric_info{quantile="0.99"}

Samples

See samples.

Development environment

See devenv.md.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published