Karl Seguin
9d172bb29d
Fixes a 'leak' with telemetry
...
This is just something that isn't cleaned up on exit, so it isn't a "leak",
but better to be explicit with the free.
2025-10-01 16:41:20 +08:00
Karl Seguin
7136851893
Remove a std.debug.print
...
Probably added in the Zig 0.15 migration. Sorry.
2025-09-09 19:19:36 +08:00
Karl Seguin
23d6362058
fix telemetry, link libc and libcpp
2025-08-29 10:42:06 +08:00
Karl Seguin
1443f38e5f
Zig 0.15.1
...
Depends on https://github.com/lightpanda-io/zig-v8-fork/pull/89
2025-08-29 10:42:06 +08:00
Karl Seguin
687f09d952
Make the App own the Platform
...
Removes optional platform, which only existed for tests.
There is now a global `@import("testing.zig").test_app` available. This is setup
when the test runner starts, and cleaned up at the end of tests. Individual
tests don't have to worry about creating app, which I assume was the reason I
Platform optional, since that woul dhave been something else that needed to be
setup.
2025-08-29 10:14:06 +08:00
Karl Seguin
f65a39a3e3
Re-enable telemetry
...
Start work on supporting navigation events (clicks, form submission).
2025-08-11 21:37:00 +08:00
Karl Seguin
54ab1326e5
Switch XHR to new http client
...
get puppeteer/cdp.js working again
make test are all passing
2025-08-11 21:37:00 +08:00
Karl Seguin
b0fe5d60ab
Initial work on integrating libcurl and making all http nonblocking
2025-08-11 21:36:56 +08:00
Karl Seguin
7d9951aa3c
Replace SessionState directly with the Page.
2025-05-27 20:31:34 +08:00
Karl Seguin
2feba3182a
Replace std.log with a structured logger
...
Outputs in logfmt in release and a "pretty" print in debug mode. The format
along with the log level will become arguments to the binary at some point in
the future.
2025-05-27 19:57:58 +08:00
Karl Seguin
769d99e7bd
Tweak debug logging
...
1 - Add a log_level build option to control the default log level from
the build (e.g. -Dlog_level=debug). Defaults to info
2 - Add a new boolean log_unknown_properties build option to enable
logging unknown properties. Defautls to false.
3 - Remove the log debug for script eval - this can be a huge value
(i.e. hundreds of KB), which makes the debug log unusable IMO.
2025-05-20 11:29:14 +08:00
Karl Seguin
b8e5e130b9
remove unused code, mostly imports
2025-05-05 13:29:41 +08:00
Karl Seguin
6c592669da
Introduce more general notification capabilities
...
Replaces the existing, very specialized Notification with something more
general.
Currently, the existing page_navigate and page_navigated have been migrated.
Telemetry's page navigation event now also hooks into these events to generate
the telemetry record.
2025-04-30 17:33:51 +08:00
Karl Seguin
41bd3704ef
update lightpanda and wpt URL usage
2025-04-09 19:21:59 +08:00
Karl Seguin
22aa126b29
Cleaner merge
...
Switch to non-blocking sockets.
Fix TLS handshake/receive/send ordering
2025-03-23 19:05:35 +08:00
Pierre Tachoire
b972c9fe30
Merge pull request #484 from lightpanda-io/telemetry_batch
...
e2e-test / zig build release (push) Has been cancelled
wpt / web platform tests (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
e2e-test / puppeteer-perf (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
send telemetry events in batches (up to 20)
2025-03-23 11:21:56 +01:00
Karl Seguin
3d6dd06b99
Generate non-persisted iid if app_path is null
2025-03-22 23:58:57 +08:00
Karl Seguin
2aee346299
send telemetry events in batches (up to 20)
2025-03-21 22:40:10 +08:00
Karl Seguin
936048d478
upgrade telemetry to zig 0.14
2025-03-19 16:28:21 +01:00
Karl Seguin
705603a088
remove explicit thread stack size.
...
The real win is having a global http_client, so the thread only needs a pointer.
2025-03-19 16:17:41 +08:00
Karl Seguin
ba8a0179d5
Share the HTTP client globally
2025-03-19 11:09:58 +08:00
Karl Seguin
2e7342a59c
add driver field to navigate telemetry
2025-03-18 10:40:04 +08:00
Karl Seguin
c9bc5be42b
add additition navigate fields
2025-03-18 09:56:57 +08:00
Karl Seguin
1e6a1bd3af
store iid in application data directory
2025-03-18 08:27:47 +08:00
Karl Seguin
b0a2087015
fix unit test
2025-03-18 08:27:47 +08:00
Karl Seguin
a5ee34a2db
send telemetry synchronously in a background thread
2025-03-18 08:27:47 +08:00
Karl Seguin
a6a8130234
update telemetry URL (but not vendored dependency this time)
2025-03-18 08:27:34 +08:00
Karl Seguin
288761632f
Revert "update telemetry URL"
...
This reverts commit 88850bcdd38026720f03087be8ef7e9869072ac6.
2025-03-18 08:27:34 +08:00
Karl Seguin
3b4de6a405
remove [incorrect] data version
2025-03-18 08:27:32 +08:00
Karl Seguin
75512602c3
Add log to display telemetry state
2025-03-18 08:27:02 +08:00
Karl Seguin
cd33a089d1
flatten events, include aarch + os, remove eid
2025-03-18 08:26:58 +08:00
Karl Seguin
6b83281539
Add navigate telemetry
2025-03-18 08:25:44 +08:00
Karl Seguin
2609671982
don't try (and fail) to get userData after clearing context
2025-03-18 08:02:09 +08:00
Karl Seguin
accf2c0e5e
use async-client for telemetry
2025-03-18 08:02:09 +08:00
Karl Seguin
53f6e66c23
Remove plausible, leave a dummy provider for now
...
Add batching, add install optional id (persisted) and execution id (per run)
2025-03-18 08:02:09 +08:00
Karl Seguin
56ddcc8e29
Initial usage telemetry
2025-03-18 08:02:09 +08:00