fix: 5891 rum improvement (#5910)

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
This commit is contained in:
Bhargav
2025-02-10 14:56:58 +05:30
committed by GitHub
co-authored by ktx-vaidehi
parent 5bd8cb0651
commit ea891d2bb7
6 changed files with 30 additions and 16 deletions
+8
View File
@@ -187,6 +187,7 @@ import {
import { redirectUser } from "@/utils/common";
import { computed } from "vue";
import config from "@/aws-exports";
import { openobserveRum } from "@openobserve/browser-rum";
export default defineComponent({
name: "PageLogin",
@@ -280,6 +281,13 @@ export default defineComponent({
useLocalCurrentUser(JSON.stringify(userInfo));
store.dispatch("setCurrentUser", userInfo);
if(store.state.zoConfig?.rum?.enabled) {
openobserveRum.setUser({
name: userInfo.given_name + " " + userInfo.family_name,
email: userInfo.email,
});
}
//check for redirect URI and redirect user to that page
const redirectURI =
window.sessionStorage.getItem("redirectURI");
+2 -2
View File
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" :key="`m_${props.row.index}`">
<q-tr :props="props" :key="`m_${props.row.index}`" class="cursor-pointer">
<q-td
v-for="col in props.cols"
:key="col.name"
@@ -130,7 +130,7 @@ defineProps({
const emit = defineEmits(["event-emitted"]);
const handleDataClick = (columnName: string, row: any) => {
emit("event-emitted", "cell-click", { columnName, row });
emit("event-emitted", "cell-click", { columnName: "action_play", row });
};
const onScroll = (e: any) => {
@@ -9,7 +9,10 @@ export const useAnnotations = (
if (!panelId) {
return;
}
if (!dashboardId) {
return;
}
try {
const response = await annotationService.get_timed_annotations(
organization,
@@ -22,7 +25,6 @@ export const useAnnotations = (
);
return response.data;
} catch (err: any) {
console.error("Error fetching annotations:", err);
return null;
+2 -2
View File
@@ -13,7 +13,7 @@
"title": "Errors by Time",
"description": "",
"config": {
"show_legends": true,
"show_legends": false,
"legends_position": null,
"base_map": { "type": "osm" },
"map_view": { "zoom": 1, "lat": 0, "lng": 0 }
@@ -36,7 +36,7 @@
],
"y": [
{
"label": "",
"label": " ",
"alias": "y_axis_1",
"column": "y_axis_1",
"color": "#5960b2",
+8 -4
View File
@@ -156,7 +156,8 @@
"show_legends": true,
"legends_position": null,
"base_map": { "type": "osm" },
"map_view": { "zoom": 1, "lat": 0, "lng": 0 }
"map_view": { "zoom": 1, "lat": 0, "lng": 0 },
"decimals": 0
},
"error_config": {
"custom_error_handeling": true,
@@ -202,7 +203,8 @@
"show_legends": true,
"legends_position": null,
"base_map": { "type": "osm" },
"map_view": { "zoom": 1, "lat": 0, "lng": 0 }
"map_view": { "zoom": 1, "lat": 0, "lng": 0 },
"decimals": 0
},
"error_config": {
"custom_error_handeling": true,
@@ -249,7 +251,8 @@
"legends_position": null,
"unit": "custom",
"base_map": { "type": "osm" },
"map_view": { "zoom": 1, "lat": 0, "lng": 0 }
"map_view": { "zoom": 1, "lat": 0, "lng": 0 },
"decimals": 0
},
"error_config": {
"custom_error_handeling": true,
@@ -295,7 +298,8 @@
"show_legends": true,
"legends_position": null,
"base_map": { "type": "osm" },
"map_view": { "zoom": 1, "lat": 0, "lng": 0 }
"map_view": { "zoom": 1, "lat": 0, "lng": 0 },
"decimals": 0
},
"error_config": {
"custom_error_handeling": true,
+6 -6
View File
@@ -13,7 +13,7 @@
"title": "Largest Contentful Paint ( LCP )",
"description": "",
"config": {
"show_legends": true,
"show_legends": false,
"legends_position": null,
"unit": "seconds",
"unit_custom": "",
@@ -39,7 +39,7 @@
],
"y": [
{
"label": "",
"label": " ",
"alias": "y_axis_1",
"column": "y_axis_1",
"color": null,
@@ -64,7 +64,7 @@
"title": "First Input Delay ( FID )",
"description": "",
"config": {
"show_legends": true,
"show_legends": false,
"legends_position": null,
"unit": "milliseconds",
"base_map": { "type": "osm" },
@@ -89,7 +89,7 @@
],
"y": [
{
"label": "",
"label": " ",
"alias": "y_axis_1",
"column": "y_axis_1",
"color": null,
@@ -114,7 +114,7 @@
"title": "Cumulative Layout Shift ( CLS )",
"description": "",
"config": {
"show_legends": true,
"show_legends": false,
"legends_position": null,
"base_map": { "type": "osm" },
"map_view": { "zoom": 1, "lat": 0, "lng": 0 }
@@ -138,7 +138,7 @@
],
"y": [
{
"label": "",
"label": " ",
"alias": "y_axis_1",
"column": "view_cumulative_layout_shift",
"color": "#5960b2",