alibaba / alibaba/Sentinel

/metric maxLines param | 实时数据获取接口maxLines不生效

Open
#2,918 2 comments 0 reactions 0 assignees View on GitHub
kind/question
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

http://localhost:8719/metric?identity=558eda66ac4940f1977220ac15313a21&startTime=1666253129000&endTime=1666253429000&maxLines=100

并没有按照预期返回10条数据
![image](https://user-images.githubusercontent.com/42227273/196893536-6cb3c7b2-0882-4a12-82b3-db9c91d050e8.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the documented /metric request with the supplied identity, time range, and maxLines parameter, then inspect the metric API entry point and the code that limits returned data. Compare the response count with the requested limit and the issue’s expected result. Done means maxLines is honored consistently by the endpoint and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.