Skip to content

Conversation

@thompson-tomo
Copy link

@thompson-tomo thompson-tomo commented Jun 1, 2024

What this PR does / why we need it:
With these changes the health entries will now have the data attribute populated with some attributes which are keyed following OTLP semantic conventions. These can be used in otel events via a publisher.

Which issue(s) this PR fixes:
Closes #2205
Closes #2227

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing
  • End-to-end tests passing
  • Extended the documentation
  • Provided sample for the feature

@thompson-tomo
Copy link
Author

@sungam3r &/or @adamsitnik any chance you could take a look please. Change is focused on adding metadata to the health reports so we can know what the report is for etc.


foreach (var (topicName, subscriptions) in _snsOptions.TopicsAndSubscriptions.Select(x => (x.Key, x.Value)))
{
currentTopic = topicName;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can only be added to unhealthy due to checking multiple topic/Subscription.


foreach (string? subscription in subscriptions)
{
currentSubscription = subscription;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can only be added to unhealthy due to checking multiple Subscription.

using var client = CreateSqsClient();
foreach (var queueName in _sqsOptions.Queues)
{
currentQueue = queueName;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can only be added to unhealthy due to checking multiple queue.

@adamsitnik adamsitnik requested a review from eerhardt July 28, 2025 10:00
public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
{
var checkDetails = new Dictionary<string, object>{
{ "health_check.task", "ready" },
Copy link

@lmolkova lmolkova Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the health check conventions (spans? events? metrics?) is a great candidate to be defined in semantic conventions. We'd probably have a discussion on whether health_check operation is also a messaging/db/etc and it would need a project/group to own and prototype it across different frameworks.

Copy link
Author

@thompson-tomo thompson-tomo Jul 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the signal types with semconv issue already existing open-telemetry/semantic-conventions#1106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants