Skip to content

Commit

Permalink
fix: update from main
Browse files Browse the repository at this point in the history
  • Loading branch information
CrabNejonas committed Feb 8, 2024
2 parents a4942ed + 4e32bd4 commit 9af1fba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions clients/web/src/lib/connection/transport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { InstrumentRequest } from "../proto/instrument";
import { updateSpanMetadata } from "../span/update-span-metadata";
import { updatedSpans } from "../span/update-spans";
import { MonitorData } from "./monitor";
import * as Sentry from "@sentry/browser";

export async function checkConnection(url: string) {
const abortController = new AbortController();
Expand Down Expand Up @@ -111,13 +112,23 @@ export function addStreamListneners(
const logsUpdate = update.logsUpdate;
if (logsUpdate && logsUpdate.logEvents.length > 0) {
setMonitorData("logs", (prev) => [...prev, ...logsUpdate.logEvents]);
Sentry.setMeasurement(
"droppedLogEvents",
Number(logsUpdate.droppedEvents),
"none"
);
}

const spansUpdate = update.spansUpdate;
if (spansUpdate && spansUpdate.spanEvents.length > 0) {
setMonitorData("spans", (spans) => [
...updatedSpans(spans, spansUpdate.spanEvents),
]);
Sentry.setMeasurement(
"droppedSpanEvents",
Number(spansUpdate.droppedEvents),
"none"
);
}
});
}
4 changes: 2 additions & 2 deletions crates/devtools-v1/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/devtools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl Builder {
/// Make sure to check out the `examples` sub folder for a fully working setup.
///
/// ```no_run
/// let devtools_plugin = devtools::Builder::default().init();
/// let devtools_plugin = tauri_plugin_devtools::Builder::default().init();
///
/// tauri::Builder::default()
/// .plugin(devtools_plugin)
Expand Down Expand Up @@ -251,7 +251,7 @@ impl Builder {
///
/// ```no_run
/// fn main() -> Result<(), Box<dyn std::error::Error>> {
/// let devtools_plugin = devtools::Builder::default().try_init()?;
/// let devtools_plugin = tauri_plugin_devtools::Builder::default().try_init()?;
///
/// tauri::Builder::default()
/// .plugin(devtools_plugin)
Expand Down

0 comments on commit 9af1fba

Please sign in to comment.