Skip to content

fix: force aggregate temporarility for updown counters#8174

Merged
BrynCooke merged 9 commits intodevfrom
bryn/up_down_counters
Sep 4, 2025
Merged

fix: force aggregate temporarility for updown counters#8174
BrynCooke merged 9 commits intodevfrom
bryn/up_down_counters

Conversation

@BrynCooke
Copy link
Contributor

@BrynCooke BrynCooke commented Sep 2, 2025

When providing functionality to override the temporarilty selector for OTLP export we did not take into account that updown counters are always aggregate rather than delta. This now restores the aggregation with that of the regular OTLP exporter.

Note that this won't fix drift that may occur over reloads. This will be tackled separately.


Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • PR description explains the motivation for the change and relevant context for reviewing
  • PR description links appropriate GitHub/Jira tickets (creating when necessary)
  • Changeset is included for user-facing changes
  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Metrics and logs are added3 and documented
  • Tests added and passing4
    • Unit tests
    • Integration tests
    • Manual tests, as necessary

Exceptions

Note any exceptions here

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. A lot of (if not most) features benefit from built-in observability and debug-level logs. Please read this guidance on metrics best-practices.

  4. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

@apollo-librarian
Copy link

apollo-librarian bot commented Sep 2, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 2 changed, 0 removed
* graphos/routing/(latest)/observability/client-id-enforcement.mdx
* graphos/routing/(latest)/errors.mdx

Build ID: 345ed333abb9994b7e00a85d
Build Logs: View logs

URL: https://www.apollographql.com/docs/deploy-preview/345ed333abb9994b7e00a85d

@github-actions

This comment has been minimized.

When providing functionality to override the temporarilty selector for OTLP export we did not take into account that updown counters are always aggregate rather than delta. This now restores the aggregation with that of the regular OTLP exporter.
@BrynCooke BrynCooke force-pushed the bryn/up_down_counters branch from d1c411c to cb62a42 Compare September 2, 2025 12:38
@BrynCooke BrynCooke force-pushed the bryn/up_down_counters branch from 5798a85 to 7174adc Compare September 2, 2025 15:45
@BrynCooke BrynCooke force-pushed the bryn/up_down_counters branch from 4b0d666 to 75ac35c Compare September 3, 2025 09:23
@BrynCooke BrynCooke marked this pull request as ready for review September 3, 2025 09:32
@BrynCooke BrynCooke requested a review from a team September 3, 2025 09:32
@BrynCooke BrynCooke requested a review from a team as a code owner September 3, 2025 09:32
@BrynCooke BrynCooke requested a review from bnjjj September 3, 2025 10:07
Copy link
Member

Choose a reason for hiding this comment

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

this file looks unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I had some integration tests earlier but they seemed like overkill.
ffcf40f

Copy link
Member

Choose a reason for hiding this comment

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

this file looks unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This reverts commit c048c5c.
@BrynCooke BrynCooke enabled auto-merge (squash) September 4, 2025 10:48
@BrynCooke BrynCooke merged commit 8d564f6 into dev Sep 4, 2025
15 checks passed
@BrynCooke BrynCooke deleted the bryn/up_down_counters branch September 4, 2025 11:02
@abernix abernix mentioned this pull request Sep 22, 2025
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.

3 participants