Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I am trying to observe the entire operation & health of my system by using open telemetry and health checks.
Describe the solution you'd like
The following is the full objective which could be delivered in stages.
- an activity is created for each health check which can allow for analysis of duration to complete.
- The activityId is populated to the data property using a strong keyed field or alternatively dedicated property so that the activity can be connected to the publishing process.
- An event is created on the activity if monitoring is enabled (default false) with the health check result and the data fields as tags as defined in the otel spec
Additional context
Currently it is possible to to make a health check publisher which produces the otel event however what is missing is the ability to connect it to the original activity.
Discussion in the connected otel issue which would result in otel providing an interim message for the final point: open-telemetry/opentelemetry-dotnet-contrib#1855