Update tests in opentelemetry_distributed

This commit is contained in:
sundy-li 2021-01-23 12:41:53 +08:00
parent 685210e02b
commit c4ef31ba64

View File

@ -104,9 +104,8 @@ wait
${CLICKHOUSE_CLIENT} -q "system flush logs" ${CLICKHOUSE_CLIENT} -q "system flush logs"
${CLICKHOUSE_CLIENT} -q " ${CLICKHOUSE_CLIENT} -q "
with count(*) as c
-- expect 200 * 0.1 = 20 sampled events on average -- expect 200 * 0.1 = 20 sampled events on average
select if(c > 1 and c < 50, 'OK', 'fail: ' || toString(c)) select if(count() > 1 and count() < 50, 'OK', 'Fail')
from system.opentelemetry_span_log from system.opentelemetry_span_log
array join attribute.keys as name, attribute.values as value array join attribute.keys as name, attribute.values as value
where name = 'clickhouse.query_id' where name = 'clickhouse.query_id'