Repository navigation
Conversation
ditadi
added this pull request to stack #616
September 26, 2026 21:42
Contributor
📦 Bundle size reportCompared against
|
| dist | raw | gzip |
|---|---|---|
| JS (runtime) | 1.2 MB (+18 KB) | 433 KB (+6.4 KB) |
| Type declarations | 446 KB (+3.1 KB) | 162 KB (-56 B) |
| Source maps | 2.4 MB (+34 KB) | 810 KB (+14 KB) |
| Other | 11 KB | 3.7 KB (+16 B) |
| Total | 4.0 MB (+56 KB) | 1.4 MB (+21 KB) |
Per-entry composition (own code — deps external (as shipped))
| Entry | Initial (gz) | Lazy (gz) | Total (gz) | node_modules (min) | Own code (min) |
|---|---|---|---|---|---|
. |
98 KB (+2.3 KB) | 2.5 KB (-8 B) | 101 KB (+2.3 KB) | external | 321 KB (+5.8 KB) |
./beta |
93 KB (+236 B) | 479 B (+22 B) | 94 KB (+258 B) | external | 282 KB (+618 B) |
./testing |
39 KB (+49 B) | 33 KB (+2.1 KB) | 71 KB (+2.2 KB) | external | 207 KB (+5.8 KB) |
./tsdown |
520 B (+1 B) | 0 B | 520 B (+1 B) | external | 813 B |
./type-generator |
23 KB (+125 B) | 0 B | 23 KB (+125 B) | external | 65 KB (+82 B) |
Chunks:
| Entry | Chunk | Load | Size (gz) |
|---|---|---|---|
. |
index.js |
initial | 94 KB |
. |
utils.js |
initial | 4.0 KB |
. |
remote-tunnel-manager.js |
lazy | 2.5 KB |
./beta |
beta.js |
initial | 77 KB |
./beta |
stream-manager.js |
initial | 5.8 KB |
./beta |
databricks.js |
initial | 3.3 KB |
./beta |
wide-event-emitter.js |
initial | 3.3 KB |
./beta |
configuration.js |
initial | 2.3 KB |
./beta |
service-context.js |
initial | 1.3 KB |
./beta |
client.js |
initial | 434 B |
./beta |
client-options.js |
initial | 219 B |
./beta |
supervisor-api.js |
lazy | 191 B |
./beta |
databricks.js |
lazy | 165 B |
./beta |
index.js |
lazy | 123 B |
./testing |
manifest.js |
initial | 26 KB |
./testing |
index.js |
initial | 10.0 KB |
./testing |
wide-event-emitter.js |
initial | 3.0 KB |
./testing |
index.js |
lazy | 29 KB |
./testing |
remote-tunnel-manager.js |
lazy | 2.5 KB |
./testing |
utils.js |
lazy | 1.2 KB |
./tsdown |
index.js |
initial | 520 B |
./type-generator |
index.js |
initial | 23 KB |
@databricks/appkit-ui
npm tarball (packed): 409 KB (+13 KB) — gzipped download (dist + bin; excludes release-only docs/NOTICE).
| dist | raw | gzip |
|---|---|---|
| JS (runtime) | 464 KB (+10 KB) | 156 KB (+4.9 KB) |
| Type declarations | 240 KB (+5.4 KB) | 88 KB (+2.0 KB) |
| Source maps | 882 KB (+16 KB) | 292 KB (+8.3 KB) |
| CSS | 16 KB | 3.2 KB (-10 B) |
| Total | 1.6 MB (+32 KB) | 540 KB (+15 KB) |
Per-entry composition (consumer bundle — deps bundled, peerDeps external)
| Entry | Initial (gz) | Lazy (gz) | Total (gz) | node_modules (min) | Own code (min) |
|---|---|---|---|---|---|
./js |
5.3 KB (+9 B) | 49 KB (+49 B) | 55 KB (+58 B) | 208 KB | 14 KB |
./js/beta |
13 KB (+1.2 KB) | 0 B | 13 KB (+1.2 KB) | 8.5 KB (+4 B) | 32 KB (+3.3 KB) |
./react |
432 KB (+1.8 KB) | 49 KB (+32 B) | 481 KB (+1.8 KB) | 1.3 MB | 177 KB |
./react/beta |
14 KB (+1.2 KB) | 0 B | 14 KB (+1.2 KB) | 8.5 KB | 34 KB (+3.4 KB) |
Chunks:
| Entry | Chunk | Load | Size (gz) |
|---|---|---|---|
./js |
index.js |
initial | 5.2 KB |
./js |
chunk |
initial | 120 B |
./js |
apache-arrow |
lazy | 49 KB |
./js/beta |
beta.js |
initial | 13 KB |
./react |
index.js |
initial | 430 KB |
./react |
tslib |
initial | 2.1 KB |
./react |
apache-arrow |
lazy | 49 KB |
./react/beta |
beta.js |
initial | 14 KB |
This was referenced Sep 26, 2026
Contributor
🤖 AppKit PR bot🔬 Run evalsStart an eval for this PR from the evals-monitor app: Go to Evals Monitor → 📦 Try this PR's app templateScaffolds a new app from this PR's SDK build. Run it in any folder (requires the GitHub CLI — gh run download 36460968676 -R databricks/appkit -n appkit-template-0.78.0-pr.52a54dc-stack-app-analytics-03-ui-613 -D appkit-pr-613 \
&& unzip -o "appkit-pr-613/appkit-template-0.78.0-pr.52a54dc-stack-app-analytics-03-ui-613.zip" -d "appkit-pr-613" \
&& databricks apps init --template "appkit-pr-613"The template pins |
ditadi
force-pushed
the
stack/app-analytics/03-ui
branch
from
September 28, 2026 13:55
bce5021 to
b2687a7
Compare
appkit-ui now bundles @databricks/app-analytics inline and re-exports it from react/beta (AppAnalytics, appAnalytics) and js/beta. The published package depends only on web-vitals, and dist-appkit.ts drops the workspace dependency until @databricks/app-analytics is published on its own. The library is side-effect free: appAnalytics creates one shared client on first use, keyed on globalThis, so every copy of the module in a tab shares it. dev-playground mounts <AppAnalytics /> in the root layout and adds an App Analytics page, covered by a Playwright spec. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: ditadi <victordperd@gmail.com>
…oreSend types Signed-off-by: ditadi <victordperd@gmail.com>
ditadi
force-pushed
the
stack/app-analytics/03-ui
branch
from
September 28, 2026 17:50
b2687a7 to
b11f56b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why the change
AppKit apps already depend on
@databricks/appkit-ui, so exporting App Analytics from its beta barrels lets an app turn it on with one<AppAnalytics />and no new dependency.Special things to note
@databricks/app-analyticsinline, the same way it bundlesshared, because the SDK isn't published on its own yet.dist-appkit.tsdrops the workspace dependency, andweb-vitalsbecomes a direct dependency of appkit-ui. Thebundle-size-baseline.jsonupdate reflects the added code.appAnalyticsis now a lazy facade over one client stored onglobalThis. Importing it creates nothing, so bundlers can drop it. Every copy of the module in a tab (appkit-ui's inline copy, a direct install, and later the auto-start script in feat(appkit): start App Analytics automatically when App telemetry is on #614) configures and records through the same client./beta, so the API can still change between minor releases.Change outline
New exports from the two beta barrels:
The default client becomes a shared singleton created on first use:
Build and packaging:
dev-playground mounts the component once and adds a page for trying it out:
apps/dev-playground/tests/app-analytics.spec.tsloads the page, then checks that Track followed by Flush posts OTLP JSON through the relay from #612.This pull request and its description were written by Isaac.