dotnet / dotnet/aspnetcore

Health checks should help facilitate OTEL tracing

Open
#56,028 0 comments 0 reactions 0 assignees View on GitHub
area-healthchecks
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] 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: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/issues/1855

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.