Skip to content

OTLP Metrics - update to delta aggregation #12752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2025
Merged

Conversation

etiennejouan
Copy link
Contributor

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Updated OpenTelemetry metrics configuration to use delta aggregation temporality for improved performance and memory efficiency in high-cardinality metrics collection.

  • Modified packages/twenty-server/src/instrument.ts to switch from cumulative to delta temporality for OpenTelemetry metrics reporting
  • Change reduces memory usage by not requiring clients to maintain cumulative state for high-cardinality metrics
  • Shifts responsibility for cumulative calculations to downstream collectors if needed
  • Enables more efficient rate calculations by providing direct delta values between collection intervals

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@etiennejouan etiennejouan requested a review from AMoreaux June 20, 2025 07:51
@etiennejouan etiennejouan enabled auto-merge (squash) June 20, 2025 08:00
@etiennejouan etiennejouan merged commit 901cc1f into main Jun 20, 2025
42 checks passed
@etiennejouan etiennejouan deleted the ej/otlp-metrics-delta branch June 20, 2025 08:03
Copy link
Contributor

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:36296

This environment will automatically shut down when the PR is closed or after 5 hours.

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