mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[APM UI] Remove unnecessary package usage (#88646)
This commit is contained in:
parent
cd99e6ec56
commit
211312d6a6
1 changed files with 4 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
|||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
import url from 'url';
|
||||
|
||||
export const getTraceUrl = ({
|
||||
traceId,
|
||||
|
@ -14,8 +13,8 @@ export const getTraceUrl = ({
|
|||
rangeFrom: string;
|
||||
rangeTo: string;
|
||||
}) => {
|
||||
return url.format({
|
||||
pathname: `/link-to/trace/${traceId}`,
|
||||
query: { rangeFrom, rangeTo },
|
||||
});
|
||||
return (
|
||||
`/link-to/trace/${traceId}?` +
|
||||
new URLSearchParams({ rangeFrom, rangeTo }).toString()
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue