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

[APM] Default time range overrides fetched range for link-to/trace URLs without range parameters #114942

Closed
ryanrupp opened this issue Oct 14, 2021 · 3 comments · Fixed by #115449
Assignees
Labels
bug Fixes for quality problems that affect the customer experience good first issue low hanging fruit Team:APM - DEPRECATED Use Team:obs-ux-infra_services.

Comments

@ryanrupp
Copy link

See forum post here for more context.

Kibana version:
7.15.0

Elasticsearch version:
7.15.0

Server OS version:
Ubuntu 20.04

Browser version:
OSX Chrome

Browser OS version:
93.0.4577.82

Original install method (e.g. download page, yum, from source, etc.):
Docker

Describe the bug:
In 7.12.1 I had setup trace.id field to link to the APM page via apm#/link-to/trace/{{value}} - this worked correctly and when you opened the page it would open the root transaction and narrow the date range filter around the time of the transaction.

After upgrading to 7.15.0, linking to traces that are older than 15 minutes fails to work. I noticed the date range is set to from: now-15m, to: now which I think is the issue even though the API call to look up transaction_root works it fails to render the transaction due to it not being within the date range. I believe this is due to the change here where a default time range is now being used paired with the link builder here gives precedence over the rangeFrom input over transaction.timestamp.

As a temporary workaround if I change the field URL template to:

apm#/link-to/trace/{{value}}?rangeFrom=now-7d

I can continue to view the trace provided the trace occurred within the last 7 days.

Steps to reproduce:

  1. Find a trace that occurred over 15 minutes ago
  2. Take the trace ID and navigate to /app/apm#/link-to/trace/{{traceId}}

Expected behavior:
The trace opens in the transactions view with the date range of the transaction focused.

@ryanrupp ryanrupp added the bug Fixes for quality problems that affect the customer experience label Oct 14, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 14, 2021
@ryanrupp
Copy link
Author

Relates to change in #108777

@dgieselaar dgieselaar added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Oct 14, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 14, 2021
@dgieselaar dgieselaar changed the title Link to trace no longer works in 7.15.0 for traces older than 15 minutes ago [APM] Default time range overrides fetched range for link-to/trace URLs without range parameters Oct 14, 2021
@dgieselaar
Copy link
Member

Should be as "easy" as removing the default query parameters for the link-to/trace route.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience good first issue low hanging fruit Team:APM - DEPRECATED Use Team:obs-ux-infra_services.
Projects
None yet
6 participants