-
Notifications
You must be signed in to change notification settings - Fork 53
Debugging the ReportStream Uploader
For general information about our ReportStream connection, see ReportStream Integration. This page is specifically for debugging the uploads in Azure.
- Function App
- Monitoring page for COVID uploader
- Monitoring page for FHIR uploader
- Last 20 runs
-
Base query for specific run (you'll want to grab an
operation_id
andinvocation_id
off one of the runs from the last query and add them as parameters) - Function app configuration
First, log into your CDC superuser account.
Navigate to the function app rs-batch-publisher-prod and click on "QueueBatchedReportStreamUploader":
This will bring you to a page with basic monitoring information.
To see recent runs, click "monitor" on the navigation bar:
This will bring you to a screen with a list of the 20 most recent runs, and you can see at a glance if these were successes or failures.
Click on any one of these messages for a further deep-dive. You may need to select "Run query in application insights" if the page takes a long time to load. This will take you to a separate logs screen:
Once there, you can see how many messages were uploaded to ReportStream, if the operation was successful or not, and which messages were processed. (To cross-reference with our database, it's easiest to grab the TestEvent id from the log and use production Metabase to look up the TestEvent).
Truthfully, you probably won't ever need to look at the queue. Azure doesn't offer a good view of it, and you can't look back at historical messages (or even paginate if there are a lot of messages.) However, it's still good to know where it lives!
Navigate to the simplereportstorageapp
storage account.
On the left-hand side, look for "Queues" and then select "test-event-publishing":
Tada! That's our storage queue. Clicking on a message's ID will pull up a more detailed view that enables you to see the actual message text.
The secrets and configuration settings for the function application are in the "Configuration" section of the main function application:
Please do not edit these values directly in Azure! If you do, your changes will be overwritten on the next deployment as we also encapsulate these values in Terraform.
Some other details about investigating pipeline failures is available in the docs repo.
- Getting Started
- [Setup] Docker and docker compose development
- [Setup] IntelliJ run configurations
- [Setup] Running DB outside of Docker (optional)
- [Setup] Running nginx locally (optional)
- [Setup] Running outside of docker
- Accessing and testing weird parts of the app on local dev
- Accessing patient experience in local dev
- API Testing with Insomnia
- Cypress
- How to run e2e locally for development
- E2E tests
- Database maintenance
- MailHog
- Running tests
- SendGrid
- Setting up okta
- Sonar
- Storybook and Chromatic
- Twilio
- User roles
- Wiremock
- CSV Uploader
- Log local DB queries
- Code review and PR conventions
- SimpleReport Style Guide
- How to Review and Test Pull Requests for Dependabot
- How to Review and Test Pull Requests with Terraform Changes
- SimpleReport Deployment Process
- Adding a Developer
- Removing a developer
- Non-deterministic test tracker
- Alert Response - When You Know What is Wrong
- What to Do When You Have No Idea What is Wrong
- Main Branch Status
- Maintenance Mode
- Swapping Slots
- Monitoring
- Container Debugging
- Debugging the ReportStream Uploader
- Renew Azure Service Principal Credentials
- Releasing Changelog Locks
- Muting Alerts
- Architectural Decision Records
- Backend Stack Overview
- Frontend Overview
- Cloud Architecture
- Cloud Environments
- Database ERD
- External IDs
- GraphQL Flow
- Hibernate Lazy fetching and nested models
- Identity Verification (Experian)
- Spring Profile Management
- SR Result bulk uploader device validation logic
- Test Metadata and how we store it
- TestOrder vs TestEvent
- ReportStream Integration
- Feature Flag Setup
- FHIR Resources
- FHIR Conversions
- Okta E2E Integration
- Deploy Application Action
- Slack notifications for support escalations
- Creating a New Environment Within a Resource Group
- How to Add and Use Environment Variables in Azure
- Web Application Firewall (WAF) Troubleshooting and Maintenance
- How to Review and Test Pull Requests with Terraform Changes