Skip to content

The only tool you need to know what is happening and how to fix it.

fix: cloudflare otel endpoint path

dduxcb1492261e95
diff --git a/backend/app/controllers/otelcontrollers/trace_converter.go b/backend/app/controllers/otelcontrollers/trace_converter.go
index f8da0544..2cb25d71 100644
--- a/backend/app/controllers/otelcontrollers/trace_converter.go
+++ b/backend/app/controllers/otelcontrollers/trace_converter.go
@@ -81,7 +81,7 @@ func convertTraces(projectId uuid.UUID, req *coltracepb.ExportTraceServiceReques
func hasHTTPAttributes(attrs []*commonpb.KeyValue) bool {
for _, kv := range attrs {
switch kv.Key {
- case "http.request.method", "http.method", "http.route":
+ case "http.request.method", "http.method", "http.route", "url.path":
return true
}
}
@@ -139,6 +139,9 @@ func getHTTPEndpoint(attrs []*commonpb.KeyValue, fallback string) string {
method = getStringAttribute(attrs, "http.method")
}
route := getStringAttribute(attrs, "http.route")
+ if route == "" {
+ route = getStringAttribute(attrs, "url.path")
+ }
if method != "" && route != "" {
return method + " " + route