mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-26 05:24:28 +08:00
feat: added severity text as a filter and removed relative time param from url
This commit is contained in:
parent
6c06fea1aa
commit
ed4613cb1b
@ -208,7 +208,7 @@ function Application(): JSX.Element {
|
||||
const urlParams = new URLSearchParams(search);
|
||||
urlParams.set(QueryParams.startTime, currentTime.toString());
|
||||
urlParams.set(QueryParams.endTime, tPlusOne.toString());
|
||||
|
||||
urlParams.delete('relativeTime');
|
||||
const avialableParams = routeConfig[ROUTES.TRACE];
|
||||
const queryString = getQueryString(avialableParams, urlParams);
|
||||
|
||||
@ -235,15 +235,15 @@ function Application(): JSX.Element {
|
||||
{
|
||||
id: uuid().slice(0, 8),
|
||||
key: {
|
||||
key: 'hasError',
|
||||
dataType: DataTypes.bool,
|
||||
type: 'tag',
|
||||
key: 'severity_text',
|
||||
dataType: DataTypes.String,
|
||||
type: '',
|
||||
isColumn: true,
|
||||
isJSON: false,
|
||||
id: 'hasError--bool--tag--true',
|
||||
id: 'severity_text--string----true',
|
||||
},
|
||||
op: '=',
|
||||
value: ['true'],
|
||||
value: 'ERROR',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
@ -49,6 +49,7 @@ export function onViewTracePopupClick({
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
urlParams.set(QueryParams.startTime, currentTime.toString());
|
||||
urlParams.set(QueryParams.endTime, tPlusOne.toString());
|
||||
urlParams.delete('relativeTime');
|
||||
const avialableParams = routeConfig[ROUTES.TRACE];
|
||||
const queryString = getQueryString(avialableParams, urlParams);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user