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

flaky language detection test: add extra logs #1275

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

mariomac
Copy link
Contributor

Checking the logs of the tests that fail because Beyla does not properly seem to detect the language, I observe that actually the language is correctly detected.

However, at some point, the svc.ID.SDKLanguage field is not properly copied along with the rest of the svc.ID struct, then its value remains to 0, which was the value of InstrumentableGolang.

This PR just adds extra logging information to try to see where this might be failing.

URL string
Host string
Peer string
Service svc.ID
Copy link
Contributor Author

@mariomac mariomac Oct 26, 2024

Choose a reason for hiding this comment

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

This field was set, but never read outside the unit tests. Deleting it.

@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.63%. Comparing base (750eab0) to head (0d8e3e8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1275      +/-   ##
==========================================
+ Coverage   77.80%   80.63%   +2.83%     
==========================================
  Files         133      133              
  Lines       13596    13600       +4     
==========================================
+ Hits        10578    10967     +389     
+ Misses       2488     2121     -367     
+ Partials      530      512      -18     
Flag Coverage Δ
integration-test 60.64% <100.00%> (-0.02%) ⬇️
k8s-integration-test 57.72% <100.00%> (?)
oats-test 36.23% <57.14%> (-0.01%) ⬇️
unittests 52.80% <42.85%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM!

@mariomac mariomac merged commit e2e9c3f into grafana:main Oct 27, 2024
10 checks passed
@mariomac mariomac deleted the logs-flaky-lang branch October 27, 2024 14:26
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.

3 participants