Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tracing (port from #8289) #8607

Merged
merged 33 commits into from
Jan 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a501364
feat(tracing): add IPC tracing
lucasfernog-crabnebula Sep 14, 2023
bb51e21
span for deserialization
lucasfernog-crabnebula Sep 14, 2023
fa6ddb1
trace spans for IPC command handlers
lucasfernog-crabnebula Sep 14, 2023
7f35866
fix spans usage
lucasfernog-crabnebula Sep 16, 2023
38cb9a9
app tracing [skip ci]
lucasfernog-crabnebula Sep 17, 2023
cceba2f
window tracing
lucasfernog-crabnebula Sep 17, 2023
df4ab38
fix run never resolving all spans
lucasfernog-crabnebula Sep 17, 2023
932218a
fix draw not entered
lucasfernog-crabnebula Sep 17, 2023
8e1fc85
change level
lucasfernog-crabnebula Sep 17, 2023
76da8a4
feat(core): Manager::emit_filter and optimize serialization (#7512)
lucasfernog-crabnebula Sep 18, 2023
30358be
event spans
lucasfernog-crabnebula Sep 18, 2023
74df6cc
lint & fix tests
lucasfernog-crabnebula Sep 18, 2023
f4fd461
change eval to run sync
lucasfernog-crabnebula Sep 19, 2023
5a156b7
fix instrument
lucasfernog-crabnebula Sep 19, 2023
5d71410
update wry
lucasfernog-crabnebula Sep 19, 2023
9747abc
change separator
lucasfernog-crabnebula Sep 19, 2023
87b642d
Update core/tauri/src/plugin.rs
lucasfernog-crabnebula Sep 20, 2023
f472303
Update core/tauri/src/window.rs
lucasfernog-crabnebula Sep 20, 2023
c48ac3d
Update core/tauri/src/window.rs
lucasfernog-crabnebula Sep 20, 2023
02fb8b4
Update core/tauri/src/window.rs
lucasfernog-crabnebula Sep 20, 2023
d0afef0
Update core/tauri/src/window.rs
lucasfernog-crabnebula Sep 20, 2023
53ed93b
instrument separators
lucasfernog-crabnebula Sep 20, 2023
ae8ed67
remove on_event trace
lucasfernog-crabnebula Oct 25, 2023
33af069
skip all arguments on App::build tracing
lucasfernog-crabnebula Nov 13, 2023
85429ae
Merge remote-tracking branch 'upstream/dev' into feat/core-tracing
lucasfernog-crabnebula Dec 19, 2023
8aaa3ef
ipc spans adjustments
lucasfernog-crabnebula Dec 20, 2023
551aab8
merge from dev
lucasfernog-crabnebula Dec 20, 2023
1264693
delete change file
lucasfernog-crabnebula Dec 20, 2023
4e90f60
improve how request and response are added as values (serialize)
lucasfernog-crabnebula Dec 21, 2023
f7d2faa
do not run evalScript sync on android :( freezes the app
lucasfernog-crabnebula Dec 21, 2023
2a717bf
wry 0.35.2
lucasfernog-crabnebula Jan 2, 2024
ff58f81
add change file
lucasfernog-crabnebula Jan 15, 2024
5620489
Merge branch 'dev' into feat/core-tracing
lucasfernog-crabnebula Jan 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/dev' into feat/core-tracing
lucasfernog-crabnebula committed Dec 19, 2023
commit 85429aebe7035c61702a3b58128c4b8405297951
8 changes: 8 additions & 0 deletions .changes/add-progress-bar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"tauri": 'patch:feat'
"tauri-runtime": 'patch:feat'
"tauri-runtime-wry": 'patch:feat'
"tauri-utils": 'patch:feat'
---

Added `set_progress_bar` to `Window`.
5 changes: 5 additions & 0 deletions .changes/always-on-bottom-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:feat
---

Added `setAlwaysOnBottom` function on `Window` and the `alwaysOnBottom` option when creating a window.
5 changes: 5 additions & 0 deletions .changes/always-on-bottom-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-utils': 'minor:feat'
---

Added the `always_on_bottom` option to the window configuration.
7 changes: 7 additions & 0 deletions .changes/always-on-bottom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'tauri': 'minor:feat'
'tauri-runtime': 'minor:feat'
'tauri-runtime-wry': 'minor:feat'
---

Added `Window::set_always_on_bottom` and the `always_on_bottom` option when creating a window.
5 changes: 5 additions & 0 deletions .changes/android-onresume.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': 'patch:enhance'
---

Add support for onResume and onPause events in android plugins.
5 changes: 5 additions & 0 deletions .changes/android-plugin-get-config-typed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:breaking
---

The Android `PluginManager.loadConfig` now takes a third parameter to define the class type of the config object.
5 changes: 5 additions & 0 deletions .changes/api-Resource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tauri-apps/api': 'patch:feat'
---

Exposed `Resource` class which should be extended for Rust-backed resources created through `tauri::Manager::resources_table`.
5 changes: 5 additions & 0 deletions .changes/api-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": 'minor:feat'
---

Add the `app` module back.
5 changes: 5 additions & 0 deletions .changes/api-min-node-18.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:changes
---

Updated minimum Node.js version to 18.
5 changes: 5 additions & 0 deletions .changes/api-module-resolution-node.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": "patch:bug"
---

Fix a regression where typescript could not find types when using `"moduleResolution": "node"`
5 changes: 5 additions & 0 deletions .changes/api-moduleresolution-node.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": "patch:bug"
---

Fix a regression where typescript could not find types when using `"moduleResolution": "node"`
5 changes: 5 additions & 0 deletions .changes/api-primitives-core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tauri-apps/api': 'patch:breaking'
---

Changed former `tauri` module from `primitives` to `core`.
5 changes: 5 additions & 0 deletions .changes/api-primitives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tauri-apps/api': 'patch:breaking'
---

Changed `tauri` module to `primitives` and removed the undocumented `invoke` export from the root module.
5 changes: 5 additions & 0 deletions .changes/api-tabbed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": "patch:feat"
---

On Windows, add `Effect.Tabbed`,`Effect.TabbedDark` and `Effect.TabbedLight` effects.
5 changes: 5 additions & 0 deletions .changes/api-top-level-main-module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tauri-apps/api': 'patch:bug'
---

Add top-level `main`, `module` and `types` fields in `package.json` to be compliant with typescripts's `"moduleResolution": "node"`
5 changes: 5 additions & 0 deletions .changes/api-tray-menu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tauri-apps/api': 'minor:feat'
---

Add `tray` and `menu` modules to create and manage tray icons and menus from Javascript.
5 changes: 5 additions & 0 deletions .changes/api-window.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": 'minor:feat'
---

Add the `window` module back.
5 changes: 5 additions & 0 deletions .changes/app-plugin-core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': patch:changes
---

Added the `app` plugin back into core.
5 changes: 5 additions & 0 deletions .changes/arboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-runtime-wry": patch:bug
---

Use `arboard` instead of `tao` clipboard implementation to prevent a crash.
15 changes: 15 additions & 0 deletions .changes/bump-1.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"tauri": 'patch:enhance'
"tauri-bundler": 'patch:enhance'
"tauri-build": 'patch:enhance'
"tauri-codegen": 'patch:enhance'
"tauri-macros": 'patch:enhance'
"tauri-utils": 'patch:enhance'
"tauri-runtime": 'patch:enhance'
"tauri-runtime-wry": 'patch:enhance'
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
"@tauri-apps/api": 'patch:enhance'
---

Pull changes from Tauri 1.5 release.
16 changes: 16 additions & 0 deletions .changes/cli-env-vars.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'tauri-cli': 'major:breaking'
'@tauri-apps/cli': 'major:breaking'
---

Changed a number of environment variables used by tauri CLI for consistency and clarity:

- `TAURI_PRIVATE_KEY` -> `TAURI_SIGNING_PRIVATE_KEY`
- `TAURI_KEY_PASSWORD` -> `TAURI_SIGNING_PRIVATE_KEY_PASSWORD`
- `TAURI_SKIP_DEVSERVER_CHECK` -> `TAURI_CLI_NO_DEV_SERVER_WAIT`
- `TAURI_DEV_SERVER_PORT` -> `TAURI_CLI_PORT`
- `TAURI_PATH_DEPTH` -> `TAURI_CLI_CONFIG_DEPTH`
- `TAURI_FIPS_COMPLIANT` -> `TAURI_BUNDLER_WIX_FIPS_COMPLIANT`
- `TAURI_DEV_WATCHER_IGNORE_FILE` -> `TAURI_CLI_WATCHER_IGNORE_FILENAME`
- `TAURI_TRAY` -> `TAURI_LINUX_AYATANA_APPINDICATOR`
- `TAURI_APPLE_DEVELOPMENT_TEAM` -> `APPLE_DEVELOPMENT_TEAM`
6 changes: 6 additions & 0 deletions .changes/cli-no-dev-server-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'tauri-cli': 'minor:feat'
'@tauri-apps/cli': 'minor:feat'
---

Add `--no-dev-server-wait` option to skip waiting for the dev server to start when using `tauri dev`.
12 changes: 12 additions & 0 deletions .changes/cli-plugin-init.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'tauri-cli': 'patch:breaking'
'@tauri-apps/cli': 'patch:breaking'
---

The `tauri plugin` subcommand is receving a couple of consitency and quality of life improvements:

- Renamed `tauri plugin android/ios add` command to `tauri plugin android/ios init` to match the `tauri plugin init` command.
- Removed the `-n/--name` argument from the `tauri plugin init`, `tauri plugin android/ios init`, and is now parsed from the first positional argument.
- Added `tauri plugin new` to create a plugin in a new directory.
- Changed `tauri plugin init` to initalize a plugin in an existing directory (defaults to current directory) instead of creating a new one.
- Changed `tauri plugin init` to NOT generate mobile projects by default, you can opt-in to generate them using `--android` and `--ios` flags or `--mobile` flag or initalize them later using `tauri plugin android/ios init`.
6 changes: 6 additions & 0 deletions .changes/cli-plugin-name-snake-case.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---

Ensure `tauri add` prints `rust_code` with plugin name in snake case.
6 changes: 6 additions & 0 deletions .changes/cli-removed-new-version-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'tauri-cli': 'major:breaking'
'@tauri-apps/cli': 'major:breaking'
---

Removed checking for a new version of the CLI.
9 changes: 9 additions & 0 deletions .changes/cli-signer-env-vars.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'tauri-cli': 'patch:enhance'
---

Read the following env vars when using the `tauri signer sign` command to make it easier to use in CI.

- `TAURI_PRIVATE_KEY`
- `TAURI_PRIVATE_KEY_PASSWORD`
- `TAURI_PRIVATE_KEY_PATH`
5 changes: 5 additions & 0 deletions .changes/config-f64-deserialize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-utils': 'patch:bug'
---

Fix compile error when parsing config that includes float values.
4 changes: 2 additions & 2 deletions .changes/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"gitSiteUrl": "https://www.github.com/tauri-apps/tauri/",
"timeout": 3600000,
"changeTags": {
"feat": "New Features",
"enhance": "Enhancements",
@@ -271,7 +270,8 @@
},
"tauri-driver": {
"path": "./tooling/webdriver",
"manager": "rust"
"manager": "rust",
"postversion": "cargo check"
}
}
}
6 changes: 6 additions & 0 deletions .changes/devicectl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:feat
"@tauri-apps/cli": patch:feat
---

Use `devicectl` to connect to iOS 17+ devices on macOS 14+.
5 changes: 5 additions & 0 deletions .changes/dialog-window-forward-slash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': 'patch:bug'
---

On Windows, fix `open` dialog `defaultPath`, when invoked from JS, not working if the path uses forward slash (`/`)
5 changes: 5 additions & 0 deletions .changes/dmg-settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-utils": patch:feat
---

Add bundle DMG configuration options.
5 changes: 5 additions & 0 deletions .changes/expose-fs-scope-new.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:feat
---

Expose `scope::fs::Scope::new`.
5 changes: 5 additions & 0 deletions .changes/fix-android-scope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Fixes file scope checks on Android.
5 changes: 5 additions & 0 deletions .changes/fix-api-package.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:bug
---

Fix tslib missing in the distributed api package.
5 changes: 5 additions & 0 deletions .changes/fix-clearmocks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": 'patch:bug'
---

No longer crashing in tests without mocks when `clearMocks` is defined in `afterEach` hook.
5 changes: 5 additions & 0 deletions .changes/fix-file-drop-event-payload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": 'patch:enhance'
---

Added `position` field to the `FileDropEvent` payload.
5 changes: 5 additions & 0 deletions .changes/fix-global-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Fixes global events not reaching to window listeners.
6 changes: 6 additions & 0 deletions .changes/fix-icons-android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tauri-apps/cli": patch:bug
"tauri-cli": patch:bug
---

Fixes `icon` command not writing files to the correct Android project folders.
6 changes: 6 additions & 0 deletions .changes/fix-ide-build-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---

Fixes `android build --open` and `ios build --open` IDE failing to read CLI options.
5 changes: 5 additions & 0 deletions .changes/fix-ios-channel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---

Fixed the deserialisation of a `Channel` in iOS.
6 changes: 6 additions & 0 deletions .changes/fix-plugin-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tauri-apps/cli": patch:bug
"tauri-cli": patch:bug
---

Fix invalid plugin template.
5 changes: 5 additions & 0 deletions .changes/fix-protocol-response.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:enhance
---

Include CORS header on custom protocol response errors to ensure frontend can read the error message.
5 changes: 5 additions & 0 deletions .changes/fix-wix-output-filename-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": 'patch:bug'
---

Use original version string on WiX output file name.
5 changes: 5 additions & 0 deletions .changes/get-ipc-response-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:enhance
---

Added `test::get_ipc_response`.
7 changes: 7 additions & 0 deletions .changes/gtk018.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"tauri-runtime": 'minor:deps'
"tauri-runtime-wry": 'minor:deps'
"tauri": 'minor:deps'
---

Upgrade `gtk` to 0.18.
6 changes: 6 additions & 0 deletions .changes/icon-svg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:feat
"@tauri-apps/cli": patch:feat
---

Add suport to SVG input image for the `tauri icon` command.
5 changes: 5 additions & 0 deletions .changes/invoke-system-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:breaking
---

The initialization script for `Builder::invoke_system` now must initialize the `window.__TAURI_INTERNALS__.postMessage` function instead of `window.__TAURI_POST_MESSAGE__`.
6 changes: 6 additions & 0 deletions .changes/merge-ios-plist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:feat
"@tauri-apps/cli": patch:feat
---

Merge `src-tauri/Info.plist` and `src-tauri/Info.ios.plist` with the iOS project plist file.
6 changes: 6 additions & 0 deletions .changes/mobile-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri": patch:enhance
"tauri-runtime": patch:enhance
---

Include mobile on docs.rs targets.
5 changes: 5 additions & 0 deletions .changes/mobile-plugin-resolve-object.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:enhance
---

Mobile plugins can now resolve using an arbitrary object instead of using the `JSObject` class via `Invoke.resolve` on iOS and `Invoke.resolveObject` on Android.
5 changes: 5 additions & 0 deletions .changes/mobile-plugin-typed-invoke-args.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:breaking
---

Mobile plugins now have access to a parser for the invoke arguments instead of relying on the `Invoke#get${TYPE}` methods.
13 changes: 13 additions & 0 deletions .changes/msrv-1.70.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"tauri-cli": 'minor:feat'
"tauri-bundler": 'minor:feat'
"tauri": 'minor:feat'
"tauri-build": 'minor:feat'
"tauri-codegen": 'minor:feat'
"tauri-macros": 'minor:feat'
"tauri-utils": 'minor:feat'
"tauri-runtime": 'minor:feat'
"tauri-runtime-wry": 'minor:feat'
---

Bump the MSRV to 1.70.
6 changes: 6 additions & 0 deletions .changes/on-page-load-hook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-runtime": patch:feat
"tauri-runtime-wry": patch:feat
---

Added `on_page_load` hook for `PendingWindow`.
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.