Skip to content

feat(analyticsevent): InstantPaymentProbe event + AttrHTTPStatus (Layer-3 payment prober)#48

Merged
mastermanas805 merged 1 commit into
masterfrom
feat/analyticsevent-payment-probe
Jun 6, 2026
Merged

feat(analyticsevent): InstantPaymentProbe event + AttrHTTPStatus (Layer-3 payment prober)#48
mastermanas805 merged 1 commit into
masterfrom
feat/analyticsevent-payment-probe

Conversation

@mastermanas805

Copy link
Copy Markdown
Member

Adds the typed NR custom event the Layer-3 payment prober (worker
payment_probe.go — the money heartbeat, forum verdict
docs/ci/FORUM-PAYMENT-E2E-TOOLING.md §4) emits one-per-leg-per-tick.

What

  • EventPaymentProbe = "InstantPaymentProbe".
  • PaymentProbe type + Attrs() + RecordPaymentProbe() helper — same
    fail-open, PII-sanitising Emitter contract as InstantFlowTest.
    cohort="synthetic" baked in so billing/revenue dashboards exclude probe
    traffic; the leg is emitted under AttrFlow (the same matrix axis flow
    tests use).
  • AttrHTTPStatus = "httpStatus" — new allowlisted, non-PII attribute for the
    status code observed on the probed endpoint.

Why first

The worker's go.mod uses replace instant.dev/common => ../common, and
worker CI checks out common's master as the sibling. This PR must merge
before the worker payment-probe PR's CI can pass.

Verification

  • go build ./... + go vet ./analyticsevent/... green.
  • go test ./analyticsevent/... green (the allowlist contract test still holds
    AttrHTTPStatus is allowlisted, no PII keys leak).

🤖 Generated with Claude Code

…the Layer-3 payment prober

The Layer-3 payment prober (worker/internal/jobs/payment_probe.go — the money
heartbeat, forum verdict docs/ci/FORUM-PAYMENT-E2E-TOOLING.md §4) emits one
event per probe leg per tick. Add the typed event + helper here so the worker
records it via the same fail-open, PII-sanitising Emitter as InstantFlowTest.

- EventPaymentProbe = "InstantPaymentProbe".
- PaymentProbe type + Attrs() + RecordPaymentProbe() helper. cohort="synthetic"
  baked in so billing/revenue dashboards exclude probe traffic; the leg is
  emitted under AttrFlow (the same matrix axis flow tests use).
- AttrHTTPStatus = "httpStatus" (new allowlisted, non-PII attribute) for the
  status code observed on the probed endpoint.

Allowlist updated + the existing TestFlowTest_Attrs_AllAllowlisted-style
contract continues to hold (AttrHTTPStatus is allowlisted; no PII keys).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mastermanas805 mastermanas805 force-pushed the feat/analyticsevent-payment-probe branch from 4c1e25e to b9db260 Compare June 6, 2026 14:52
@mastermanas805 mastermanas805 merged commit 1667b82 into master Jun 6, 2026
9 checks passed
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