Add sentry integration with Vue frontend
This commit is contained in:
parent
baaa3bff5b
commit
2b30411c1b
5 changed files with 104 additions and 11 deletions
|
|
@ -2,4 +2,16 @@
|
|||
<router-view />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from "vue";
|
||||
import { SSEManager, type SSEMessage } from "@/SSEManager";
|
||||
|
||||
onMounted(() => {
|
||||
SSEManager.connect("/api/events");
|
||||
SSEManager.subscribe((msg: SSEMessage) => {
|
||||
if (msg.type != "heartbeat") {
|
||||
console.log("SSE", msg);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue