Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/symbolicator-service/src/download/sentry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl SentryDownloader {
}
}

#[tracing::instrument(skip(self, source), fields(query))]
pub async fn list_files(
&self,
source: Arc<SentrySourceConfig>,
Expand All @@ -181,6 +182,8 @@ impl SentryDownloader {
.append_pair("code_id", code_id.as_str());
}

tracing::Span::current().record("query", index_url.to_string());

// NOTE: We intentionally don't limit the query to the provided file types, even though
// the endpoint supports it. The reason is that the result of the query gets cached locally
// and we can then filter the cached results. This saves us from making individual requests to Sentry
Expand Down Expand Up @@ -225,7 +228,7 @@ impl SentryDownloader {
// TODO(flub): These queries do not handle pagination. But sentry only starts to
// paginate at 20 results so we get away with this for now.
if result.len() >= 20 {
tracing::error!(query = ?query.index_url, "Sentry API Query returned 20 results");
tracing::error!("Sentry API Query returned 20 results");
}
}

Expand Down
Loading