markusstephanides / Marble

A .NET Core microservices framework
Apache License 2.0
0 stars 0 forks source link

Tracing + Logging + Metrics #26

Open Rijak0 opened 3 years ago

Rijak0 commented 3 years ago

Use a CallbackInterface/Class which provides methods which are called by framework where the logic for logging/tracing/metrics is handled by the dudes. Provide Jäger UI default implementation. Provide Elastic Search default implementation.

markusstephanides commented 3 years ago

OnApplicationStarting # Useful for connecting to database, rabbit etc. OnApplicationStarted # Called when application

IHookListener { optional void OnMessageReceived(); }

IHookManager : IHookListener {

}

builder.AddHookListener();

----------------------------------------------------------- Signed by Christoph Reichahrdt

AppLifetime { OnApplicationStarted; (TBD) OnApplicationStopping; OnApplicationStopped; }

For things like database that need to be instanced right away on application startup/cronjob add them via .AddEagleSingleton();