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

Kafka server spans shouldn't be producers and consumers #1452

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

grcevski
Copy link
Contributor

We were marking Kafka server spans the same as client spans, so if Kafka itself was monitored we might be getting confusing spans in Tempo. This PR changes the kafka server spans to be server, rather than client.

Relates to #1423

@@ -211,6 +211,9 @@ compile-cache:
@echo "### Compiling Beyla K8s cache"
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -mod vendor -ldflags="-X '$(BUILDINFO_PKG).Version=$(RELEASE_VERSION)' -X '$(BUILDINFO_PKG).Revision=$(RELEASE_REVISION)'" -a -o bin/$(CACHE_CMD) $(CACHE_MAIN_GO_FILE)

.PHONY: debug
debug:
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -mod vendor -gcflags "-N -l" -ldflags="-X '$(BUILDINFO_PKG).Version=$(RELEASE_VERSION)' -X '$(BUILDINFO_PKG).Revision=$(RELEASE_REVISION)'" -a -o bin/$(CMD) $(MAIN_GO_FILE)
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the difference of a binary compiled with this target?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It compiles with no optimizations and disabled inlining. It's useful if we want to debug Beyla itself.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.02%. Comparing base (e05d16c) to head (21bfb66).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1452      +/-   ##
==========================================
+ Coverage   80.92%   81.02%   +0.10%     
==========================================
  Files         149      149              
  Lines       15255    15255              
==========================================
+ Hits        12345    12361      +16     
+ Misses       2302     2289      -13     
+ Partials      608      605       -3     
Flag Coverage Δ
integration-test 59.85% <50.00%> (+0.11%) ⬆️
k8s-integration-test 60.57% <50.00%> (+1.27%) ⬆️
oats-test 33.91% <100.00%> (ø)
unittests 51.96% <100.00%> (-0.02%) ⬇️

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.

@grcevski grcevski merged commit d4d8ecf into grafana:main Dec 12, 2024
13 checks passed
@grcevski grcevski deleted the fix_kafka_naming branch December 12, 2024 20:46
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