Skip to content

fix(explore): Reduce time window in trace item details#118566

Open
k-fish wants to merge 1 commit into
masterfrom
fix/explore-tracce-item-detail-time
Open

fix(explore): Reduce time window in trace item details#118566
k-fish wants to merge 1 commit into
masterfrom
fix/explore-tracce-item-detail-time

Conversation

@k-fish

@k-fish k-fish commented Jun 26, 2026

Copy link
Copy Markdown
Member

Adds an option for the trace item details endpoint time buffer. Item details are used for a particular item which happens in a fixed point in time (unlike a trace, which doesn't strictly have a start and end), so we don't need a large time window. We can potentially make this way lower, but this should speed it up significantly for now.

Original source for this bug was that +/- 3 day was causing timeouts on large orgs.

Fixes LOGS-897

Adds an option for the trace item details endpoint time buffer. Item
details are used for a particular item which happens in a fixed point in
time (unlike a trace, which doesn't strictly have a start and end), so
we don't need a large time window. We can potentially make this way
lower, but this should speed it up significantly for now.

Original source for this bug was that +/- 3 day was causing timeouts on large orgs.

Fixes LOGS-897
@k-fish k-fish requested review from a team as code owners June 26, 2026 16:12
@linear-code

linear-code Bot commented Jun 26, 2026

Copy link
Copy Markdown

LOGS-897

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 26, 2026
@k-fish k-fish requested a review from wmak June 26, 2026 16:12
assert trace_details_response.status_code == 404, trace_details_response.content

@override_options({"performance.traces.trace-item-details-timebuffer-minutes": 1.0})
def test_timestamp_respects_timebuffer_option(self) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we add a test that tests going through the default option of 5 mins?

@adrianviquez adrianviquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small test suggestion but otherwise lgtm 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants