Skip to content

Telemetry: Add globals usage to project.json#23431

Merged
shilman merged 1 commit into
nextfrom
shilman/globals-telemetry
Jul 13, 2023
Merged

Telemetry: Add globals usage to project.json#23431
shilman merged 1 commit into
nextfrom
shilman/globals-telemetry

Conversation

@shilman
Copy link
Copy Markdown
Member

@shilman shilman commented Jul 13, 2023

Closes N/A

What I did

Record whether users are setting globals or globalTypes in their projects, to help figure out whether to invest more in this area.

How to test

Run a project and check its /project.json and/or STORYBOOK_TELEMETRY_DEBUG=1. I've tested:

  • There is no preview.js/ts => no preview metadata
  • There is a preview.js/ts
    • it doesn't set globals or globalTypes => preview: { usesGlobals: false }
    • it sets globals or globalTypes => preview: { usesGlobals: false }

@shilman shilman added maintenance User-facing maintenance tasks patch:yes Bugfix & documentation PR that need to be picked to main branch telemetry labels Jul 13, 2023
Copy link
Copy Markdown
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shilman shilman merged commit 04b9e28 into next Jul 13, 2023
@shilman shilman deleted the shilman/globals-telemetry branch July 13, 2023 08:13
This was referenced Jul 13, 2023
@JReinhold JReinhold added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jul 18, 2023
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance User-facing maintenance tasks patch:done Patch/release PRs already cherry-picked to main/release branch telemetry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants