Skip to content

feat: Add Product Feature Tracking (PFT) support#212

Merged
haifeng-li-at-salesforce merged 4 commits intosalesforce:mainfrom
haifeng-li-at-salesforce:pftSupport
Mar 10, 2026
Merged

feat: Add Product Feature Tracking (PFT) support#212
haifeng-li-at-salesforce merged 4 commits intosalesforce:mainfrom
haifeng-li-at-salesforce:pftSupport

Conversation

@haifeng-li-at-salesforce
Copy link
Contributor

Summary

  • Add Product Feature Tracking (PFT) configuration to enable telemetry and observability
  • Simplify telemetry service initialization by removing redundant parameters
  • Configure o11y upload endpoint and product feature ID for tracking

Changes

This PR includes the following commits:

  • a988d75 feat: PFT support
  • 0561b09 fix: update productFeatureId

Modified Files

  • package.json: Added enableO11y, o11yUploadEndpoint, and productFeatureId configuration
  • src/services/CoreExtensionService.ts: Simplified telemetry service initialization by removing explicit parameters (name, aiKey, version) that are now handled internally
  • src/types/TelemetryService.ts: Updated initializeService method signature to only require extensionContext

Test Plan

  • Tested locally with PFT enabled
  • Verified telemetry service initialization works correctly
  • Confirmed o11y metrics are uploaded to the configured endpoint
  • All existing tests pass

@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.33%. Comparing base (c268cb6) to head (e16b092).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #212   +/-   ##
=======================================
  Coverage   81.33%   81.33%           
=======================================
  Files          39       39           
  Lines        1768     1768           
  Branches      249      255    +6     
=======================================
  Hits         1438     1438           
  Misses        330      330           
Files with missing lines Coverage Δ
src/services/CoreExtensionService.ts 66.66% <100.00%> (ø)
src/utils/constants.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@ben-zhang-at-salesforce ben-zhang-at-salesforce left a comment

Choose a reason for hiding this comment

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

looks good

@haifeng-li-at-salesforce haifeng-li-at-salesforce merged commit ff33a42 into salesforce:main Mar 10, 2026
7 checks passed
@haifeng-li-at-salesforce haifeng-li-at-salesforce deleted the pftSupport branch March 10, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants