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

chore(jq): Fix metric order in JQ filters (issue #268) #275

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

lquerel
Copy link
Contributor

@lquerel lquerel commented Jul 31, 2024

The JQ filter semconv_grouped_metrics is now sorting metrics by their metric_name.

Closes #268

@@ -27,10 +27,16 @@ templates:
filter: semconv_grouped_attributes
application_mode: single
- pattern: "**/event.md"
filter: semconv_signal("event"; {}) | semconv_group_signals_by_root_namespace("events")
filter: >
semconv_signal("event"; {})
Copy link
Contributor Author

@lquerel lquerel Jul 31, 2024

Choose a reason for hiding this comment

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

We don't provide semconv_... dedicated JQ filters for events, resources, and spans (because they are not stable yet in the context of semconv codegen). So in this generic unit test, I'm using a custom filter for internal purposes only.

@jsuereth jsuereth merged commit 7199c5b into open-telemetry:main Jul 31, 2024
23 checks passed
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.

Metrics are not sorted after running JQ filters
3 participants