Skip to content

Conversation

@hagen-p
Copy link
Collaborator

@hagen-p hagen-p commented Dec 19, 2025

Summary

  • Add custom Splunk RUM workflow events for AddToCart, PlaceOrder, and CartPageError
  • Fix 404 errors caused by undefined product images during initial page load
  • Add custom version option for single-service builds in GitHub Actions workflow

Changes

  • Cart.provider.tsx: Added AddToCart and PlaceOrder workflow spans with attributes
  • cart/index.tsx: Added synthetic CartPageError demo that fires once per session to demonstrate JS error tracking in Splunk RUM
  • ProductCard.tsx & product page: Guard against undefined picture to prevent 404 requests to /images/products/undefined
  • prod-build-images.yml: Support custom version tags for single-service builds

Test plan

  • Verify AddToCart workflow appears in Splunk RUM when adding items to cart
  • Verify PlaceOrder workflow appears in Splunk RUM when completing checkout
  • Verify CartPageError appears once per session with stack trace in Splunk RUM
  • Verify no more 404 errors for /images/products/undefined in frontend-proxy logs

hagen-p and others added 17 commits December 10, 2025 17:23
Services: payment

Updated:

- Source k8s manifests with new image references

Note: .service-versions.yaml updated locally but not committed
Generated test manifest for Astronomy Shop

- Base Version: 1.0.1 (unchanged)

- Test Version: demo-for-rob-1

- Manifest: kubernetes/TEST-splunk-astronomy-shop-demo-for-rob-1.yaml

- Generated by: GitHub Actions (test build)

Note: SPLUNK-VERSION file was NOT modified.
Automatically removed by remove-test-manifests workflow
Resolved image version conflicts by accepting upstream 1.4.0 versions
Added ability to specify a custom version when building a single service:
- New 'custom' option in version_bump dropdown
- New 'custom_version' text input for specifying exact version
- Validation ensures custom only works with single service (not 'all')
- Custom builds don't modify SPLUNK-VERSION (single service only)
- Clear PR title showing service and custom version

Also updated flagd-config to set paymentServiceUnreachable default to 50%
Guard against rendering/fetching product images before data is loaded,
preventing requests to /images/products/undefined through frontend-proxy.
- Add useRef to ensure error only fires once per browser session
- Update error message to simulate pricing race condition
- Add detailed comments explaining the demo scenario
- Add error.synthetic attribute for filtering in Splunk
Services: frontend

Updated:

- Source k8s manifests with new image references

Note: .service-versions.yaml updated locally but not committed
Use actual function calls instead of new Error() to generate a real
stack trace that sourcemaps can map back to original source code.
@hagen-p hagen-p merged commit f9d1d46 into splunk:main Jan 9, 2026
5 checks passed
@hagen-p hagen-p deleted the feat/custom-version-build branch January 9, 2026 16:06
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