diff --git a/Makefile b/Makefile index 3f2c728db..176f58cee 100644 --- a/Makefile +++ b/Makefile @@ -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) .PHONY: dev dev: prereqs generate compile-for-coverage diff --git a/pkg/export/otel/traces.go b/pkg/export/otel/traces.go index d05c95ab3..cfe80c638 100644 --- a/pkg/export/otel/traces.go +++ b/pkg/export/otel/traces.go @@ -672,11 +672,11 @@ func traceAttributes(span *request.Span, optionalAttrs map[attr.Name]struct{}) [ func spanKind(span *request.Span) trace2.SpanKind { switch span.Type { - case request.EventTypeHTTP, request.EventTypeGRPC, request.EventTypeRedisServer: + case request.EventTypeHTTP, request.EventTypeGRPC, request.EventTypeRedisServer, request.EventTypeKafkaServer: return trace2.SpanKindServer case request.EventTypeHTTPClient, request.EventTypeGRPCClient, request.EventTypeSQLClient, request.EventTypeRedisClient: return trace2.SpanKindClient - case request.EventTypeKafkaClient, request.EventTypeKafkaServer: + case request.EventTypeKafkaClient: switch span.Method { case request.MessagingPublish: return trace2.SpanKindProducer