This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch oal-v2
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit b5e8a5e63013c661702e0a8f0778d3d602c2177c
Author: Wu Sheng <[email protected]>
AuthorDate: Tue Feb 10 16:05:23 2026 +0800

    Fix incorrect avg() to longAvg() in OAL documentation example
    
    The avg() function doesn't exist in OAL - only longAvg() and doubleAvg()
    are available. This fixes the example to use the correct function name.
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
---
 docs/en/concepts-and-designs/oal.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/en/concepts-and-designs/oal.md 
b/docs/en/concepts-and-designs/oal.md
index 038f14dc3f..ce035f225a 100644
--- a/docs/en/concepts-and-designs/oal.md
+++ b/docs/en/concepts-and-designs/oal.md
@@ -174,7 +174,7 @@ endpoint_p99 = from(Endpoint.latency).filter(name in 
("Endpoint1", "Endpoint2"))
 serv_Endpoint_p99 = from(Endpoint.latency).filter(name like 
"serv%").percentile2(10)
 
 // Calculate the avg response time of each Endpoint
-endpoint_resp_time = from(Endpoint.latency).avg()
+endpoint_resp_time = from(Endpoint.latency).longAvg()
 
 // Calculate the p50, p75, p90, p95 and p99 of each Endpoint by 50 ms steps.
 endpoint_percentile = from(Endpoint.latency).percentile2(10)

Reply via email to