Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DR | Set DataDog log telemetrySampleRate to 100 #28207

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

Mottie
Copy link
Contributor

@Mottie Mottie commented Feb 27, 2024

Summary

  • (Summarize the changes that have been made to the platform)

    Increasing DataDog logging telemetrySampleRate up to 100

  • (If bug, how to reproduce)
  • (What is the solution, why is this the solution)
  • (Which team do you work for, does your team own the maintenance of this component?)

    Benefits Decision Review

  • (If using a flipper, what is the end date of the flipper being required/success criteria being targeted)

Related issue(s)

#76108

Testing done

  • Describe what the old behavior was prior to the change

    Previously set to a default of 20

  • Describe the steps required to verify your changes are working as expected
  • Describe the tests completed and the results
  • _Exclusively stating 'Specs and automated tests passing' is NOT acceptable as appropriate testing
  • Optionally, provide a link to your test plan and test execution records

Screenshots

N/A

What areas of the site does it impact?

All Decision Review apps: HLR, NOD & Supplemental Claims

Acceptance criteria

Quality Assurance & Testing

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Linting warnings have been addressed
  • Documentation has been updated (link to documentation *if necessary)
  • Screenshot of the developed feature is added
  • Accessibility testing has been performed

Error Handling

  • Browser console contains no warnings or errors.
  • Events are being sent to the appropriate logging solution
  • Feature/bug has a monitor built into Datadog or Grafana (if applicable)

Authentication

  • Did you login to a local build and verify all authenticated routes work as expected with a test user

⚠️ Team Sites (only applies to modifications made to the VA.gov header) ⚠️

  • The vets-website header does not contain any web-components
  • I used the proxy-rewrite steps to test the injected header scenario
  • I reached out in the #sitewide-public-websites Slack channel for questions

Requested Feedback

(OPTIONAL) What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?

@Mottie Mottie added front end HLR Higher-Level Review (Decision Reviews) NOD Notice of Disagreement (Decision Reviews) bmt-team-1 Benefits Management Tools Team 1 Decision-Reviews-Team SC Supplemental Claim (Decision Reviews) labels Feb 27, 2024
@Mottie Mottie self-assigned this Feb 27, 2024
@Mottie Mottie requested review from a team as code owners February 27, 2024 14:43
@data-doge data-doge merged commit e067ea1 into main Feb 27, 2024
140 checks passed
@data-doge data-doge deleted the 76108-inc-log branch February 27, 2024 19:12
Midge-dev added a commit that referenced this pull request Apr 2, 2024
* merged previous work into v2 app

* Burials

* Merge fixes / redirect / flipper / Intro page functional React

* attempt to fix infinite loop

* conditional required field changes / relies on pattern changes

* add return statements for specs

* fixed duplicates / fixed number validation for plotAllowancePartOne

* schema changes

* Set DataDog log telemetrySampleRate to 100 (#28207)

* [21-0966] Implement prefill and read-only veteran information page (#28193)

* Implement prefill for form 21-0966

* Implement hasVeteranPrefill function to check for valid prefill data for the veteran flow

* Update pages to use strong tags

* Implement read only veteran summary page based on prefill data

* Implement prefill for form 21-0966

* Implement hasVeteranPrefill function to check for valid prefill data for the veteran flow

* Update pages to use strong tags

* Implement read only veteran summary page based on prefill data

* Update initialize helper function to retain prefill data

* Added page not found for unknown URLs in medical records (#28148)

* 76825 poa requests table (#28190)

* Create POST for declining POA request

* Create POST for accepting POA request

* Refactor to combine accept and decline using action prop

* Create POA Requests Table

* Integrate table into POARequests page with a shared mockPOARequests

* Fix 'View all' link on widget to allow navigation to table

* Add unit tests to fully test table content

* Add e2e check for table existing

* Fix View all Link jest test

* Refactor fetches to two methods to give the caller a more constrained interface

* Refactor status check in functional way to enhance readability and maintainability

* Move isActionable outside of react component

* Schema changes (#28189)

* init

* schema changes

* Update list loop aria labels (#28161)

* 526: Implement more accurate "We're missing some information" messages (#25428)

* Implement 526 missing identifiers warning component

Creates a basic component and unit tests to tell the user they are missing certain identifiers we require before starting the Form 526 flow, and dynamically renders which identifiers are missing so they can share that information with a contact center

This is intended to replace all of the the inconsistent and inaccurate message components in src/applications/disability-benefits/all-claims/containers/MissingServices.jsx

* Refactor Missing526Identifiers containerm tests

Cleans up the formatting and rendering code for Missing526Identifiers to make it more logically organized. Addresses problems with tests that seemed to be working before; ended up having to use a regexp match on the container content for my message paragraph; using typical React Testing Library functions such as getByText is problematic and causes confusing failures because it doesn't support web components, which va-alert is (it's part of the VA component library)

* Add Google Analytics logging to message display

Adds a recordEvent call to log the appearance of the error message and dynamically includes which data was missing. May consider a better way to include the list of missing identifiers in the analytics log so it is easier to query on in the future.

Fix typo on participantId key in test and prop types

* Refactor Form526 to render new error messages

Replaces the existng Missing Services component renders in Form526EZApp.jsx with the new Missing526Identifiers component. This was done to standardize the messsaging during these situations and to provide the user with exactly which data is missing to share with the contact center.

Adds default claims arg to the test page in Form526EZApp.unit.spec.jsx. These styles of tests are now deprecated in our system, but I kept my new tests in the same style for consistency.

* Refactor list formatting for older browser compatibility

Adds a new utility function to our claims utilities for formatting a list as a human readable string with the correct commas and use of 'and'.

Replaces my initial implementation of this in the Missing526Identifiers endpoint which used the Intl.ListFormat function:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat

As this is a relatively new feature of JavaScript not supported by older browsers (I was told Safari 9 for example, which many veterans are still on, frequently raises errors when we use these features), it's better to use the more vanilla, classic JavaScript approach

* Feature gate new and old messaging behavior

Adds back the existing messages behavior I had removed in an earlier commit and wraps the new and old behavior in a feature flag.

* Add empty string safeguard to title formatter

The default argument to this titleLowerCase function is an empty string, however the destructuring below it will leave the firstChar undefined and would error if we tried to lower case it

* Refactor Alert to use React children pattern

* Improve language in Missing526Identifiers spec

* Remove feature flag toggles

Removes the front end feature flags I initially implemented here alongside the back end changes in department-of-veterans-affairs/vets-api#14858. I decided it would simplify the code and release rollout to simply check if the new missing identifiers metadata was present (meaning the back end feature toggle was on), and make the component rendering dependent on that instead of checking a flag that is unecessary in this case.

* Revert accidental removal of important docstring from existing code

* Add slot attr to h2 in VA alert

* Use existing utility for formatting lists

I wasn't aware of this readable list utility when I made my own, so deleting my implementation and relying on this existing helper.

* Fix docstring typo

* PR Feedback: Add v3 uswds styling tag to alert message

Adds the uswds tag to the alert poriton of the new More Info Needed error message for styling consistency

* Mhv 52717 implement visibility restrictions to see mr automated test (#27579)

* MHV-52717 Implement visibility restrictions to see MR automated test

* MHV-52717 Implement visibility restrictions to see MR automated test

* Implement visibility restrictions to see MR automated test.

* Add TXT Download for consolidated report (all domains/Blue Button)

Update feature toggles

* Implement visibility restrictions to see MR automated test.

---------

Co-authored-by: Aaron Read <[email protected]>

* Mhv 54452 thread with 6 more messages (#28200)

* add: verify accordions focus

* add: thread-accordions focus verification

* add: comment assertion

* upd: add wait to test

* upd: thread-response.json

* add: if else statement

* upd: thread-accordion.cypress.spec.js

* upd: fix failed test

* upd: fix loadSingleThread method

* upd: fix failed test

---------

Co-authored-by: Aaron Read <[email protected]>

* Add profile loading guards

* new form version

* required field changes

* Intro page InProgress component

* redirect specs, remove allowance specs

* unit tests for chapters 1-5

* labels and page arrangment change

* added version to payload

* reference V2

* fixes known accessibility issues

* remove v1 specs

* Add v2 constant

* review page tweaks and accessibility

* maximal-test.json

* remove burial date warning

* review page finalization

* more CAIA feedback changes

* statement of truth change

* added feature flag back after cleanup on main

* Confirmation page / cleanup

* overflow json data

* additonal evidence section

* typo fix

* test data changes

* cypress specs

* button up / documentation update started

* confirmation page finalization

* clean up

* documentation continued

* more docs

* spec cleanup

* removed moment from submit

* temporarily remove v1 schema test

* fix failing specs

* use version 0

* remove schema test

not applicable because not all components used in the form originate from vets-json-schema

* classnames

* pre-review items: cypress axe added, fdc page added, fdc prop added

* additional unit tests

* remove unused logic

* Intro page link changes

* test coverage updates

* Team QA fixes: round 1

* Team QA fixes: round 2

* Update README.md

* added sme feedback fields to locationOfDeath

* Team QA fixes: round 2 (cont.)

* adds phoneSchema and emailSchema

* added missing email label

* Team QA fixes: round 3

* Team QA fixes: round 3 cont.

* disable conditional requirement

* fixed custom validation for burial date

* fix specs

* min, max, ovr .json updates

* removes broken test

---------

Co-authored-by: Dakota Larson <[email protected]>
Co-authored-by: Rob Garrison <[email protected]>
Co-authored-by: Nick Sprinkle <[email protected]>
Co-authored-by: Carlos Felix <[email protected]>
Co-authored-by: William Phelps <[email protected]>
Co-authored-by: Todd Rizzolo <[email protected]>
Co-authored-by: Nathan Burgess <[email protected]>
Co-authored-by: Anal Gomes <[email protected]>
Co-authored-by: Aaron Read <[email protected]>
Co-authored-by: fazilqa <[email protected]>
Co-authored-by: Dakota Larson <[email protected]>
Co-authored-by: Evan Smith <[email protected]>
Co-authored-by: Thomas Blackwell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bmt-team-1 Benefits Management Tools Team 1 Decision-Reviews-Team front end HLR Higher-Level Review (Decision Reviews) NOD Notice of Disagreement (Decision Reviews) SC Supplemental Claim (Decision Reviews)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants