Skip to content

@W-21740433 - feat: add PdpEvent type and sendPdpEvent method to TelemetryService#431

Open
aruntyagiTutu wants to merge 2 commits intomainfrom
feat/mcp-provider-api-pdp-event
Open

@W-21740433 - feat: add PdpEvent type and sendPdpEvent method to TelemetryService#431
aruntyagiTutu wants to merge 2 commits intomainfrom
feat/mcp-provider-api-pdp-event

Conversation

@aruntyagiTutu
Copy link
Copy Markdown
Contributor

Adds Product Feedback Telemetry (PFT) support to the MCP Provider API to enable PDP event reporting across all MCP provider packages.

Changes:

  • Added PdpEvent type with template literal constraints:
    • eventName: enforces "object.action" format (e.g., "codeAnalyzer.run")
    • productFeatureId: enforces GUS Product Feature ID format (aJC prefix)
    • componentId: optional component identifier
    • eventVolume: optional volume metric
  • Added sendPdpEvent() method to TelemetryService interface
  • Exported PdpEvent type from package index

The PdpEvent type aligns with @salesforce/telemetry package's type definitions, ensuring type safety and compatibility with O11y telemetry infrastructure.

This API change enables provider packages to send PFT events for product analytics and usage tracking.

What does this PR do?

What issues does this PR fix or reference?

Adds Product Feedback Telemetry (PFT) support to the MCP Provider API
to enable PDP event reporting across all MCP provider packages.

Changes:
- Added PdpEvent type with template literal constraints:
  * eventName: enforces "object.action" format (e.g., "codeAnalyzer.run")
  * productFeatureId: enforces GUS Product Feature ID format (aJC prefix)
  * componentId: optional component identifier
  * eventVolume: optional volume metric
- Added sendPdpEvent() method to TelemetryService interface
- Exported PdpEvent type from package index

The PdpEvent type aligns with @salesforce/telemetry package's type
definitions, ensuring type safety and compatibility with O11y telemetry
infrastructure.

This API change enables provider packages to send PFT events for product
analytics and usage tracking.
@aruntyagiTutu aruntyagiTutu requested a review from a team as a code owner March 31, 2026 06:26
Updates NoopTelemetryService to implement the new sendPdpEvent() method
added to the TelemetryService interface. This ensures all implementations
of TelemetryService properly implement the PDP event reporting capability.

Changes:
- Added PdpEvent import from @salesforce/mcp-provider-api
- Implemented sendPdpEvent() method in NoopTelemetryService class as no-op
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.

1 participant