mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 14:35:56 +08:00
fix: live tail sse prod issue
This commit is contained in:
parent
cca74e5926
commit
74f947a028
@ -56,6 +56,7 @@
|
|||||||
"d3-tip": "^0.9.1",
|
"d3-tip": "^0.9.1",
|
||||||
"dayjs": "^1.10.7",
|
"dayjs": "^1.10.7",
|
||||||
"dotenv": "8.2.0",
|
"dotenv": "8.2.0",
|
||||||
|
"event-source-polyfill": "^1.0.31",
|
||||||
"eventsource": "^2.0.2",
|
"eventsource": "^2.0.2",
|
||||||
"file-loader": "6.1.1",
|
"file-loader": "6.1.1",
|
||||||
"flat": "^5.0.2",
|
"flat": "^5.0.2",
|
||||||
@ -187,4 +188,4 @@
|
|||||||
"@types/react": "17.0.0",
|
"@types/react": "17.0.0",
|
||||||
"@types/react-dom": "17.0.0"
|
"@types/react-dom": "17.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
import 'eventsource/example/eventsource-polyfill';
|
|
||||||
|
|
||||||
import apiV1 from 'api/apiV1';
|
import apiV1 from 'api/apiV1';
|
||||||
import getLocalStorageKey from 'api/browser/localstorage/get';
|
import getLocalStorageKey from 'api/browser/localstorage/get';
|
||||||
import { ENVIRONMENT } from 'constants/env';
|
import { ENVIRONMENT } from 'constants/env';
|
||||||
import { LOCALSTORAGE } from 'constants/localStorage';
|
import { LOCALSTORAGE } from 'constants/localStorage';
|
||||||
|
import { EventSourcePolyfill } from 'event-source-polyfill';
|
||||||
|
|
||||||
export const LiveTail = (queryParams) => {
|
export const LiveTail = (queryParams) => {
|
||||||
const dict = {
|
const dict = {
|
||||||
@ -12,7 +11,7 @@ export const LiveTail = (queryParams) => {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
return new EventSourcePolyfill(
|
return new EventSourcePolyfill(
|
||||||
`${ENVIRONMENT.baseURL}${apiV1}/logs/tail?${queryParams}`,
|
`${ENVIRONMENT.baseURL}${apiV1}logs/tail?${queryParams}`,
|
||||||
dict,
|
dict,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1693,11 +1693,6 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@mapbox/unitbezier/-/unitbezier-0.0.0.tgz#15651bd553a67b8581fb398810c98ad86a34524e"
|
resolved "https://registry.yarnpkg.com/@mapbox/unitbezier/-/unitbezier-0.0.0.tgz#15651bd553a67b8581fb398810c98ad86a34524e"
|
||||||
integrity sha512-HPnRdYO0WjFjRTSwO3frz1wKaU649OBFPX3Zo/2WZvuRi6zMiRGui8SnPQiQABgqCf8YikDe5t3HViTVw1WUzA==
|
integrity sha512-HPnRdYO0WjFjRTSwO3frz1wKaU649OBFPX3Zo/2WZvuRi6zMiRGui8SnPQiQABgqCf8YikDe5t3HViTVw1WUzA==
|
||||||
|
|
||||||
"@microsoft/fetch-event-source@^2.0.1":
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz#9ceecc94b49fbaa15666e38ae8587f64acce007d"
|
|
||||||
integrity sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA==
|
|
||||||
|
|
||||||
"@monaco-editor/loader@^1.3.2":
|
"@monaco-editor/loader@^1.3.2":
|
||||||
version "1.3.2"
|
version "1.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/@monaco-editor/loader/-/loader-1.3.2.tgz#04effbb87052d19cd7d3c9d81c0635490f9bb6d8"
|
resolved "https://registry.yarnpkg.com/@monaco-editor/loader/-/loader-1.3.2.tgz#04effbb87052d19cd7d3c9d81c0635490f9bb6d8"
|
||||||
@ -6197,10 +6192,10 @@ etag@~1.8.1:
|
|||||||
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
|
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
|
||||||
integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=
|
integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=
|
||||||
|
|
||||||
event-source-polyfill@^1.0.28:
|
event-source-polyfill@^1.0.31:
|
||||||
version "1.0.28"
|
version "1.0.31"
|
||||||
resolved "https://registry.yarnpkg.com/event-source-polyfill/-/event-source-polyfill-1.0.28.tgz#9029143e6827c65b91b7edfb8528f8384930eff7"
|
resolved "https://registry.yarnpkg.com/event-source-polyfill/-/event-source-polyfill-1.0.31.tgz#45fb0a6fc1375b2ba597361ba4287ffec5bf2e0c"
|
||||||
integrity sha512-S4Je04Br394hKTiyUXKAkNpha/7r172rLNu76sdxB3Nw2g9sjuEc4kxMu/miaikvWA4jvJ2x6Xkg6BOAb1aM7g==
|
integrity sha512-4IJSItgS/41IxN5UVAVuAyczwZF7ZIEsM1XAoUzIHA6A+xzusEZUutdXz2Nr+MQPLxfTiCvqE79/C8HT8fKFvA==
|
||||||
|
|
||||||
eventemitter3@4.0.7, eventemitter3@^4.0.0:
|
eventemitter3@4.0.7, eventemitter3@^4.0.0:
|
||||||
version "4.0.7"
|
version "4.0.7"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user