Skip to content

feat: Add grain_type tag to app-request timeout/cancel counters#10178

Merged
ReubenBond merged 1 commit into
dotnet:mainfrom
Cluster7ck:metrics/grain-type-app-request-counters
Jun 4, 2026
Merged

feat: Add grain_type tag to app-request timeout/cancel counters#10178
ReubenBond merged 1 commit into
dotnet:mainfrom
Cluster7ck:metrics/grain-type-app-request-counters

Conversation

@Cluster7ck

@Cluster7ck Cluster7ck commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a grain_type label to the per-request counters on ApplicationRequestInstruments:

  • orleans-app-requests-timedout
  • orleans-app-requests-canceled

Bug fix included

CallbackData.OnCancellation() incremented the timed-out counter instead of the canceled counter.

@Cluster7ck Cluster7ck marked this pull request as ready for review June 4, 2026 10:24
@Cluster7ck Cluster7ck force-pushed the metrics/grain-type-app-request-counters branch from 1162f04 to 37776f2 Compare June 4, 2026 10:27
@Cluster7ck Cluster7ck changed the title Add grain_type tag to app-request timeout/cancel counters feat: Add grain_type tag to app-request timeout/cancel counters Jun 4, 2026
Tag orleans-app-requests-timedout and orleans-app-requests-canceled
with the target grain implementation type (msg.TargetGrain.Type), so
timeouts and cancellations can be broken down by grain type. Default
grain types are reported as "unknown".

Also fix a mis-wiring in CallbackData.OnCancellation(): it incremented
the timed-out counter instead of the canceled counter, so cancellations
were counted as timeouts and orleans-app-requests-canceled never emitted.
@Cluster7ck Cluster7ck force-pushed the metrics/grain-type-app-request-counters branch from 37776f2 to 1b59e8b Compare June 4, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants