You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "wu-sheng (via GitHub)" <gi...@apache.org> on 2026/10/17 14:38:29 UTC
Re: [PR] Sync the Envoy access log proto and leave unmeasurable sidecar internal latencies out [skywalking]
wu-sheng commented on code in PR #14148:
URL: https://github.com/apache/skywalking/pull/14148#discussion_r4303057733
##########
oap-server/server-starter/src/main/resources/oal/mesh.oal:
##########
@@ -16,21 +16,22 @@
*
*/
-service_sidecar_internal_req_latency_nanos = from(Service.sideCar.internalRequestLatencyNanos).longAvg();
-service_sidecar_internal_resp_latency_nanos = from(Service.sideCar.internalResponseLatencyNanos).longAvg();
+// A negative internal latency is one the access log could not measure, see LogEntry2MetricsAdapter#UNKNOWN_INTERNAL_LATENCY.
+service_sidecar_internal_req_latency_nanos = from(Service.sideCar.internalRequestLatencyNanos).filter(sideCar.internalRequestLatencyNanos >= 0).longAvg();
+service_sidecar_internal_resp_latency_nanos = from(Service.sideCar.internalResponseLatencyNanos).filter(sideCar.internalResponseLatencyNanos >= 0).longAvg();
Review Comment:
@kezhenxu94 @wankai123 I accidently noticed this issues. The newer Envoy has a chance to enhnace. But can't fix this in old Envoy/Istio.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org