Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query protocol and codebase for log type record #2449

Merged
merged 12 commits into from
Apr 7, 2019
Merged

Query protocol and codebase for log type record #2449

merged 12 commits into from
Apr 7, 2019

Conversation

wu-sheng
Copy link
Member

@wu-sheng wu-sheng commented Apr 5, 2019

I just created http_access_log metric, with queryLogs protocol, see GraphQL here.

@peng-yongsheng @TinyAllen @liuhaoyang @hanahmily
This PR includes codebase only but would use it in any case. In the future, I may want to open a receiver for log collector, such as logstash, etc.
Do you think is it sensible to add traceId too for the future? Including in query protocol.

@TinyAllen
The query protocol is related to UI more, let's add some new page? maybe. Use could query logs through time, (service, instance, endpoint)IDs, status, response time(2xx,4xx,5xx are expected codes)
We need a discussion about this. If others thing traceid should be added, then I will adjust protocol.

@wu-sheng wu-sheng added backend OAP backend related. protocol agent->collector or UI->collector protocols related. feature New feature labels Apr 5, 2019
@wu-sheng wu-sheng added this to the 6.1.0 milestone Apr 5, 2019
Copy link
Member

@JaredTan95 JaredTan95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, query by traceId in the condition and included in the response would be more friendly to the user.

@coveralls
Copy link

coveralls commented Apr 5, 2019

Coverage Status

Coverage decreased (-0.07%) to 15.349% when pulling 4ce4d1e on log into c3cc3d2 on master.

@wu-sheng
Copy link
Member Author

wu-sheng commented Apr 5, 2019

@JaredTan95 I will add it tomorrow. Any object?

@JaredTan95
Copy link
Member

@JaredTan95 I will add it tomorrow. Any object?

Okay.

@wu-sheng
Copy link
Member Author

wu-sheng commented Apr 5, 2019

@TinyAllen Done.

@wu-sheng wu-sheng requested a review from JaredTan95 April 5, 2019 18:36
Copy link
Member

@JaredTan95 JaredTan95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@TinyAllen TinyAllen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a new page i think it is OK

@wu-sheng wu-sheng merged commit df362b1 into master Apr 7, 2019
@wu-sheng wu-sheng deleted the log branch April 7, 2019 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend OAP backend related. feature New feature protocol agent->collector or UI->collector protocols related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants