Skip to content

Conversation

going-confetti
Copy link
Contributor

@going-confetti going-confetti commented Aug 28, 2025

What?

  • Add a table with the description of every event tracked in Grafana k6 Studio
  • Add info about the new script_copied event and the new isLoggedIn event property

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/k6/next folder of the documentation.
  • I have reflected my changes in the docs/sources/k6/v{most_recent_release} folder of the documentation.
  • I have reflected my changes in the relevant folders of the two previous k6 versions of the documentation (if still applicable to previous versions).
  • I have made my changes in the docs/sources/k6/next folder of the documentation.

Related PR(s)/Issue(s)

Comment on lines 21 to 32
| Event name | Description | Additional event properties | Version introduced |
| -------------------- | ----------------------------------------------------- |---------------------------------- | ------------------ |
| `app_installed` | k6 Studio is installed and opened for the first time | | 1.6.0 |
| `user_logged_in` | The user logs in to Grafana Cloud | | 1.6.0 |
| `recording_created` | A new recording is created | | 1.6.0 |
| `recording_imported` | A recording is imported | | 1.6.0 |
| `generator_created` | A new generator is created | | 1.6.0 |
| `generator_updated` | An existing generator is updated | `rules` - object containing the total number of test rules per rule type and the total number of disabled rules | 1.6.0 |
| `script_copied` | A script is copied into the clipboard | | 1.7.0 |
| `script_exported` | A script is exported | | 1.6.0 |
| `script_validated` | A script is validated | | 1.6.0 |
| `script_run_in_cloud`| A script is run in the cloud | | 1.6.0 |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@heitortsergent - do you have any suggestions on how we can present this in a better way?

I believe listing every event in the list above will eventually becomes unsustainable (especially if we were to include the event properties), so I moved the detailed event info into a table. I'm not quite sure about the Additional event properties column:

  • Does this format work or is there a better alternative?
  • in the case of generator_updated – is this level of detail enough or should I be more explicit by describing the internal structure of the rules object`?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the table works well @going-confetti.

One suggestion here is, since only the generator_updated has information in the "Additional event properties" column, I think you could also remove the column and just update the description for generator_updated to something like:

"An existing generator is updated. It also includes a rules object that contains the total number of test rules per rule type and the total number of disabled rules".

Another alternative would be adding an extra row to the table for generator_updated.rules to have a dedicated row for the rules object.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@heitortsergent

since only the generator_updated has information in the "Additional event properties" column

This will likely change soon - one of the changes we're considering is tracking whether the script is a browser- or a protocol-level script in all script-related events.

After some thought, I decided to:

  • Remove the Version introduced column as it's not very useful IMO (plus, the docs are only for the latest version of k6 Studio)

  • Describe the additional "event properties" in plain text without mentioning of property names:

    Replace this:

    rules - object containing the total number of test rules per rule type and the total number of disabled rules

    with this:

    The total number of test rules per rule type and the total number of disabled rules

Would these changes make sense?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, that makes sense. 👍

@heitortsergent heitortsergent added the Area:k6-studio k6 Studio label Sep 2, 2025
@going-confetti going-confetti marked this pull request as ready for review September 9, 2025 08:10
@going-confetti going-confetti requested a review from a team as a code owner September 9, 2025 08:10
Copy link
Collaborator

@heitortsergent heitortsergent left a comment

Choose a reason for hiding this comment

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

Left a couple of small edits, but LGTM!

@going-confetti going-confetti merged commit e5c082a into main Sep 10, 2025
6 checks passed
@going-confetti going-confetti deleted the feat/k6-usage-collection-upd branch September 10, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants