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 telemetry events for free AI credits feature (no-changelog) #12459

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

RicardoE105
Copy link
Contributor

@RicardoE105 RicardoE105 commented Jan 6, 2025

Summary

  • Add telemetry event User claimed OpenAI credits to the FE.
  • Add two new properties (is_managed and credential_type) to the Manual node execution finished telemetry event in the BE.

Still missing the telemetry event User ran out of free OpenAI credits, as we need to decide what we do here first. If we go with this, then we can add it easily to the FE (we send the error to the FE to show in the UI). Else, we need to add it in the BE in a place where it accounts for manual and "live" executions as the error can happen in both modes.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/ADO-3050/add-telemetry-events

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@RicardoE105 RicardoE105 changed the title Add telemetry events for free AI credits feature feat: Add telemetry events for free AI credits feature (no-changelog) Jan 6, 2025
@RicardoE105 RicardoE105 requested a review from mutdmour January 6, 2025 01:47
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jan 6, 2025
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 85.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/workflow/src/TelemetryHelpers.ts 62.50% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@RicardoE105 RicardoE105 requested a review from mutdmour January 7, 2025 01:20
Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for addressing the feedback.

Copy link
Contributor

github-actions bot commented Jan 7, 2025

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jan 7, 2025

n8n    Run #8598

Run Properties:  status check passed Passed #8598  •  git commit e9adecbb0c: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 RicardoE105 🗃️ e2e/*
Project n8n
Branch Review ado-3050-add-telemetry-events
Run status status check passed Passed #8598
Run duration 04m 47s
Commit git commit e9adecbb0c: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 RicardoE105 🗃️ e2e/*
Committer Ricardo Espinoza
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 484
View all changes introduced in this branch ↗︎

@RicardoE105 RicardoE105 merged commit 61993c3 into master Jan 7, 2025
37 checks passed
@RicardoE105 RicardoE105 deleted the ado-3050-add-telemetry-events branch January 7, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants