Skip to content

Conversation

@stanleegoodspeed
Copy link
Collaborator

@stanleegoodspeed stanleegoodspeed commented Feb 28, 2023

Description

https://datadoghq.atlassian.net/browse/WEB-3213

This PR updates the /ads route to optionally return an error. This is configured via the feature flag system code-stash, managed by the featureFlags.config.json file.

Note

  • console logs will be removed prior to merge
  • feature flag will be turned off prior to merge

How to test

  1. Pull down branch
  2. Rebuild frontend and ads service
    docker-compose build frontend ads
  3. Start the app via docker-compose up
  4. When all services are healthy, visit http://localhost
  5. Continue refreshing the homepage to generate errors
  6. In the logs for the ads service, you should see 500s
  7. You should also see 500s in the dev console of the browser

Expected APM traces view
Screen Shot 2023-04-05 at 1 22 02 PM

Expected Error tracking view
Screen Shot 2023-04-05 at 1 21 52 PM

@stanleegoodspeed stanleegoodspeed changed the title error tracking with code flag Throw error in ads service via code flag Feb 28, 2023
@stanleegoodspeed stanleegoodspeed marked this pull request as ready for review February 28, 2023 19:46
@stephen-w-pracy
Copy link
Contributor

Can the flag be put in a header, instead of the URL path?

@stanleegoodspeed
Copy link
Collaborator Author

@stevedatadog Yea that makes sense. PR is updated with X-Throw-Error flag

@stanleegoodspeed stanleegoodspeed merged commit 547a2a6 into main Apr 5, 2023
@stanleegoodspeed stanleegoodspeed deleted the ccole/error-tracking branch April 5, 2023 19:32
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.

4 participants