Skip to content
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

Metrics: isolate protobuf dependency #14

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

inge4pres
Copy link
Collaborator

Reason for this PR

Part of #11

Details

This is a rather big PR, where the commit history might help reviewing 🙏🏼
It is a big change because so far, all the interactions across multiple components were happening through protobuf-generated types.
With this PR, we introduce smaller and easier to use types, that are also easier to move around.

There's also a semantic change in metrics collection that is more in-line with the OTel philosophy: metrics' data points are never aggregated by the instruments, but only at collection time.
This is a small memory footprint increase traded for more accuracy and modularity in the metrics exporting.

@inge4pres inge4pres requested review from kakkoyun and Drumato February 3, 2025 22:45
@inge4pres inge4pres force-pushed the isolate-protobuf branch 2 times, most recently from 855f683 to dca029d Compare February 6, 2025 11:08
inge4pres and others added 14 commits February 13, 2025 09:50
Avoid pre-aggregating values, keep all the scalars and their attributes
as they are recorded by the instruments.
Aggregation should occur when collecting.

Signed-off-by: inge4pres <[email protected]>
Signed-off-by: inge4pres <[email protected]>
@fixme: union field access violation reported in tests,
  introduced in this commit

Signed-off-by: inge4pres <[email protected]>
@fixme: memory leak in reader/exporter tests

Signed-off-by: inge4pres <[email protected]>
Signed-off-by: inge4pres <[email protected]>
Signed-off-by: inge4pres <[email protected]>
Signed-off-by: inge4pres <[email protected]>
Signed-off-by: inge4pres <[email protected]>
Signed-off-by: inge4pres <[email protected]>
@inge4pres
Copy link
Collaborator Author

Rebased and amended examples accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant