Skip to content

Commit

Permalink
Chore: Updated Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
mtapia01 committed Jan 7, 2025
1 parent 447e7a8 commit 60ad529
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/components/DataViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,8 @@ export default defineComponent({
this.map_selected_variable = this.map_default_variable
if(this.density_setting_toggle){ // Vue 3 new density mode: Added checker to change spacing on table
console.log("in compact")
this.density_setting_toggle = "compact";
} else{
console.log("default")
this.density_setting_toggle = "default"
}
// we add it this way upon mounting because otherwise we risk the prospect that we don't have the base model
Expand Down
2 changes: 0 additions & 2 deletions src/components/ResultsVisualizerBasic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ export default defineComponent({
model_run_data = this.result_data[1]
}
console.log("csv table data: model run data", model_run_data)
console.log("csv table data: result data", this.result_data)
model_run_data.x.forEach(function(value, index){
records.push({crop: value, result: model_run_data.y[index]})
})
Expand Down
6 changes: 3 additions & 3 deletions src/sentry.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Set up Sentry first, according to its instructions
import * as Sentry from "@sentry/browser";
import { Vue as VueIntegration } from "@sentry/integrations";
import { Integrations } from "@sentry/tracing";
import {browserTracingIntegration} from "@sentry/browser";

if(window.location.hostname.indexOf("localhost") === -1){ // if we're not running some local dev server, log errors to Sentry
Sentry.init({
dsn: "https://[email protected]/5465746",
integrations: [
new VueIntegration({
new Integrations.Vue({
Vue,
tracing: true,
logErrors: true // make sure that errors still show in the console
}),
new Integrations.BrowserTracing(),
new browserTracingIntegration(),
],

// We recommend adjusting this value in production, or using tracesSampler
Expand Down

0 comments on commit 60ad529

Please sign in to comment.