@localstack/appinspector-ui 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12766,6 +12766,15 @@ function useLocalStorage(key, initialValue) {
|
|
|
12766
12766
|
return [storedValue, setValue];
|
|
12767
12767
|
}
|
|
12768
12768
|
|
|
12769
|
+
// src/hooks/use-include-read-operations.tsx
|
|
12770
|
+
var useIncludeReadOperations = () => {
|
|
12771
|
+
const [includeReadOperations, setIncludeReadOperations] = useLocalStorage("includeReadOperations", false);
|
|
12772
|
+
return {
|
|
12773
|
+
includeReadOperations,
|
|
12774
|
+
setIncludeReadOperations
|
|
12775
|
+
};
|
|
12776
|
+
};
|
|
12777
|
+
|
|
12769
12778
|
// src/hooks/use-spans.ts
|
|
12770
12779
|
import { useCallback as useCallback7, useEffect as useEffect14, useRef as useRef10, useState as useState7 } from "react";
|
|
12771
12780
|
|
|
@@ -14820,7 +14829,7 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
|
14820
14829
|
const api = useAppInspectorApi();
|
|
14821
14830
|
const [spans, setSpans] = useState12();
|
|
14822
14831
|
const [loading, setLoading] = useState12(false);
|
|
14823
|
-
const
|
|
14832
|
+
const { includeReadOperations } = useIncludeReadOperations();
|
|
14824
14833
|
const [fetchError, setFetchError] = useState12();
|
|
14825
14834
|
const fetchSpans = useCallback8(async () => {
|
|
14826
14835
|
setLoading(true);
|
|
@@ -14888,7 +14897,7 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
|
14888
14897
|
// src/pages/spans-list-page.tsx
|
|
14889
14898
|
import { Fragment as Fragment9, jsx as jsx142, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
14890
14899
|
var SpansListPage = () => {
|
|
14891
|
-
const
|
|
14900
|
+
const { includeReadOperations, setIncludeReadOperations } = useIncludeReadOperations();
|
|
14892
14901
|
const {
|
|
14893
14902
|
checkStatus,
|
|
14894
14903
|
clearingSpans,
|