You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename PEP723 telemetry events to inlineScript (#1578)
## What
Rename the two PEP 723 telemetry events to use an `inlineScript` prefix
instead of `PEP723`:
| Old | New |
| --- | --- |
| `PEP723.DETECTED` | `inlineScript.detected` |
| `PEP723.EDITED` | `inlineScript.edited` |
| `EventNames.PEP723_DETECTED` | `EventNames.INLINE_SCRIPT_DETECTED` |
| `EventNames.PEP723_EDITED` | `EventNames.INLINE_SCRIPT_EDITED` |
The new names are consistent with the rest of the module —
`inlineScriptMetadata.ts`, `InlineScriptLazyDetector`,
`readInlineScriptMetadataFromFile`, `InlineScriptMetadata` — and drop
the PEP number from anything that leaves the machine.
The GDPR annotation keys were also realigned to match the wire names
exactly (`"inlineScript.detected"` / `"inlineScript.edited"`).
## Why
I talked to the data platform team about why `PEP723.DETECTED` /
`PEP723.EDITED` were missing from Kusto. They asked me to manually
trigger the events and gave them my VS Code session ID. After I did,
they could see every other event from that session — but not the two PEP
723 ones. They didn't know what was filtering them out either.
I don't know what's wrong yet. One guess is that the digits in the event
name / GDPR key are tripping something in the ingestion or sanitization
pipeline. This PR drops the numbers and renames the events to a clean
alphabetic prefix to try again; if events start showing up in Kusto
after this lands, that's our culprit.
## Scope
Telemetry-only rename — no behavior change. Code that refers to the PEP
723 *spec* (parser, docstrings, design docs, API jsdoc) is intentionally
untouched.
## Files changed
- `src/common/telemetry/constants.ts` — enum members, jsdoc, and
`__GDPR__` annotations
- `src/features/inlineScriptLazyDetector.ts` — `sendTelemetryEvent`
calls + class jsdoc + field comments + handler jsdoc
- `src/extension.ts` — comment quoting the event names
- `src/test/features/inlineScriptLazyDetector.unit.test.ts` — section
comments + 10 test titles + 16 `EventNames.*` references
## Verified
- ✅ `npm run lint` clean
- ✅ `npm run unittest` — all 1141 tests pass; the 10 renamed
`inlineScript.*` tests show the new names
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments