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

Provide API to access span IDs in profiles #3343

Open
simonswine opened this issue Jun 6, 2024 · 0 comments
Open

Provide API to access span IDs in profiles #3343

simonswine opened this issue Jun 6, 2024 · 0 comments

Comments

@simonswine
Copy link
Contributor

Currently there is no way of accessing the SpanIDs which are existing in Pyroscope profile table. We should provide an endpoint that can list span IDs for a given profile series label selector and time window. It also should optionally accept filtering for span IDs, to test their existence and total value.

// Ability to list span ids by profile series selector, and optionally a list of spanIDs
message ListSpanIDRequest {
  repeated string matchers = 1;
  // Milliseconds since epoch. If missing or zero, only the ingesters will be
  // queried.
  int64 start = 2;
  // Milliseconds since epoch. If missing or zero, only the ingesters will be
  // queried.
  int64 end = 3;
  // if given restrict to those span IDs
  repeated string span_ids = 4;
  // TODO: Pagination
}

message ListSpanIDsResponse {
  repeated string span_ids = 1;
  repeated string total_values = 2;
}

This could provde a good integration into getting extra span information from Tempo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant