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

Add option for direct Beyla spanmetric generation #731

Merged
merged 9 commits into from
Apr 11, 2024

Conversation

grcevski
Copy link
Contributor

@grcevski grcevski commented Apr 10, 2024

Adds configuration option to generate span metrics directly from Beyla, allowing tools which use span metrics for visualization to consume data directly from Beyla.

Span graphs will be done through separate PR

TODO:

  • Docs
  • Integration Tests

@grcevski grcevski added the do-not-merge WIP or something that musn't be merged label Apr 10, 2024
@grcevski grcevski removed the do-not-merge WIP or something that musn't be merged label Apr 10, 2024
@@ -46,6 +50,7 @@ const (

FeatureNetwork = "network"
FeatureApplication = "application"
FeatureSpan = "span"
Copy link
Contributor

Choose a reason for hiding this comment

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

Being picky here. Isn't "span" a subset of "application" feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you are right :), what should I call it? Maybe trace_span_metrics? Technically the application now is application_otel the new one is application_trace_span_metrics.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at it twice, I think it's fine just span or application_span.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like application_span a lot, thanks for the suggestion. It will remove confusion from the network metrics.

@grcevski
Copy link
Contributor Author

From the current integration test failure, it seems I have two choices, implement this for Prometheus scraping or limit the tests to not run this path when we Prom scape. I'm leaning towards adjusting the tests, because without pushing OTel metrics and directly scraping from Beyla, I think we may not get the needed labels (like, job and instance) which are required for proper visualization.

@grcevski grcevski merged commit 64c90d4 into grafana:main Apr 11, 2024
6 checks passed
@grcevski grcevski deleted the span_metrics branch April 11, 2024 15:10
mattdurham pushed a commit to mattdurham/beyla that referenced this pull request Jan 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.

2 participants