Skip to content

Commit

Permalink
changed default starttime to 3 years ago
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 committed Oct 22, 2024
1 parent 6ceecef commit 148747b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export function ServiceView(props: ServiceViewProps) {
dateMath
.parse(props.startTime)!
.subtract(3, 'days')
.format(TRACE_ANALYTICS_DATE_FORMAT) ?? 'now-1y';
.format(TRACE_ANALYTICS_DATE_FORMAT) ?? 'now-3y';
const endTime =
dateMath
.parse(props.endTime, { roundUp: true })!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export function SpanDetailFlyout(props: {
const redirectToExplorer = () => {
// NOTE: Discover has issue with PPL Time filter, hence adding +3/-3 days to actual timestamp
const startTime =
moment(span.startTime).subtract(3, 'days').format(TRACE_ANALYTICS_DATE_FORMAT) ?? 'now-1y';
moment(span.startTime).subtract(3, 'days').format(TRACE_ANALYTICS_DATE_FORMAT) ?? 'now-3y';
const endTime =
moment(span.endTime).add(3, 'days').format(TRACE_ANALYTICS_DATE_FORMAT) ?? 'now';
const spanId = getSpanValue(span, mode, 'SPAN_ID');
Expand Down

0 comments on commit 148747b

Please sign in to comment.