Repository navigation
[logger.logstore] Add log retrieval via GetProbeStatus gRPC - #1286
Merged
Merged
Conversation
manugarg
force-pushed
the
add-log-store-grpc
branch
2 times, most recently
from
April 8, 2026 06:58
01099fb to
90e2e1d
Compare
manugarg
force-pushed
the
add-log-store-core
branch
3 times, most recently
from
April 8, 2026 18:28
175db24 to
a76454a
Compare
Extend GetProbeStatus to optionally include recent log entries: - Add include_logs and log_limit fields to GetProbeStatusRequest - Add LogEntry message with timestamp, level, message, attributes - Add repeated LogEntry logs to ProbeStatus response - Query LogStore per probe name in serviceimpl
manugarg
force-pushed
the
add-log-store-grpc
branch
from
April 9, 2026 02:55
90e2e1d to
2c4dba7
Compare
Contributor
Author
|
I asked Claude to run the manual test as well: Manual E2E Test: grpcurl GetProbeStatus with logsStarted cloudprober with two HTTP probes ( 1. Without
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GetProbeStatusgRPC to optionally include recent log entriesDetails
Proto changes (
prober/proto/service.proto):GetProbeStatusRequest: addedinclude_logs(bool) andlog_limit(int32, default 100)LogEntrymessage with timestamp_sec/nsec, level, message, attributes mapProbeStatus: addedrepeated LogEntry logsImplementation: When
include_logs=true, querieslogger.DefaultLogStore()per probe name and includes entries in the response.All new fields are optional — fully backward compatible.
Test plan
go test ./prober/...— existing tests passgo build ./...— full build passesgrpcurlcallGetProbeStatuswithinclude_logs=true