惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
V
V2EX
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
The Cloudflare Blog
T
Tailwind CSS Blog
H
Help Net Security
腾讯CDC
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
C
Check Point Blog
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Test file uploads and downloads with Datadog Synthetic br...
2020-06-08 · via Datadog | The Monitor blog
Kai Xin Tai

Kai Xin Tai

Understanding how your users experience your application is critical—downtime, broken features, and slow page loads can lead to customer churn and lost revenue. Last year, we introduced Datadog Synthetic browser tests, which enable you to simulate key user journeys and validate that users are able to complete business-critical transactions. Many workflows involve the uploading and downloading of files, such as attaching a receipt to an expense report and downloading an order confirmation after checking out. Now, with Synthetic browser tests, you can easily verify that users are able to seamlessly upload and download files anytime, anywhere, and from any device.

Proactively monitoring your application helps you stay on track to meet your SLOs and SLAs as well as resolve any issues before they impact your users. Datadog Synthetic Monitoring is tightly integrated with the rest of the platform, so you can get an end-to-end view of your application and quickly investigate any issues that arise, without switching contexts.

Automated user experience monitoring

In this checkout flow, we are adding a chair to our cart, entering a discount code, and checking out.

Datadog Synthetic browser tests make it easy for anyone on your team to create tests without any coding knowledge. Simply interact with your website within Datadog Synthetic Monitoring’s browser test UI, and any action you perform will be recorded as an individual step in the test. Once you’ve created your test, you’ll be able to see key performance data from test runs, broken down by geographical location and device. Each test run also displays a waterfall visualization of the time spent executing each step—along with associated screenshots—giving you a user’s view of your application.

We’ve designed our tests to be self-maintaining, which means that Datadog automatically updates your tests when it detects changes to your application’s UI. This enables teams to spend less time fixing broken tests, so they can focus on building out new features.

Test file uploads and downloads

As you incorporate more business logic into your web applications, your workflows will become increasingly complex—ranging from email confirmations to file downloads. Whether your customers need to upload profile pictures or download tax documents, browser tests can help you proactively monitor every critical step of a complex user journey. In this section, we’ll walk through how you can test file uploads and downloads with Datadog Synthetic Monitoring.

In a new or existing browser test, complete the action that would prompt the user to upload a file (e.g., click on an “Upload photo” button in your application), and select a file to upload from your device. Datadog automatically detects the action and creates an “Upload file” step. If the file upload should result in a UI change, you then can add an assertion to validate that change. In the example above, we configured the browser test to check that the “Remove photo” button appears when the user uploads a profile picture.

You can also use browser tests to ensure that downloadable files on your application—such as account statements and marketing assets—are served correctly. If, for instance, your FTP server goes down in the middle of the download, or a request to a backend service fails, users might receive an incomplete or corrupted file.

To test a file download, simply record the action that triggers the download, such as by clicking a “Download” button. Then, add a “Test a downloaded file” assertion and specify the expected name, size, and md5 string for the downloaded file. Each time the test is executed, Datadog checks that the file was correctly downloaded and uses these details to verify that the file was not modified during the download process.

Get a complete picture, from the frontend to the backend

Once your browser test is up and running, you can start tracking aggregated statistics on uptime, time-to-interactive, and test duration by device and location with our out-of-the-box visualizations.

Within each test, you'll be able to view statistics on uptime, time-to-interactive, and test duration across locations and devices.

Like the rest of the Datadog platform, browser tests are integrated with collaboration tools such as Slack and PagerDuty. So when an alert triggers, you’ll not only be able to see which applications or locations are experiencing issues, but also immediately loop in the right teams to start investigating. Within an individual test result, you will see a waterfall visualization of the time spent in each step, along with any page resources, traces, or errors generated. In the example below, you can see that the test failed because it was not able to download the file.

The test failed at the last step as no file was downloaded

To troubleshoot, you could start by clicking on the screenshot of the failed step to see what your users are seeing—and identify potential client-side issues (e.g., missing UI components). Browser tests collect resources as well as errors—both network and JavaScript—at every step, so you can easily determine, for instance, if the request associated with the file download threw a 4xx or 5xx error.

By configuring Datadog APM to collect traces generated by your Synthetic tests, you will be able to view the full call stack of requests to determine if the errors you’re seeing are associated with your backend application code or a third-party service. Or, if a particular test step is taking especially long to complete, request traces can help you pinpoint exactly which endpoint is experiencing elevated levels of latency. From the trace view, you can seamlessly pivot to related infrastructure metrics and logs to get even more context around the issue—and fix it before it degrades your user experience.

Start monitoring user actions on your web application

Running browser tests on a schedule from an array of devices and geographical locations (including locations in your private network)—or directly from your CI pipelines—helps you ensure that your application is always fully functional and that you do not deploy buggy code that would be detrimental to your user experience. Datadog Synthetic Monitoring is fully integrated with the rest of the platform, providing rich context for troubleshooting application issues, regardless of whether they stem from the frontend or the backend. To learn more about how you can start testing your file uploads and downloads, visit our documentation. And if you aren’t yet using Datadog, you can sign up for a 14-day free trial today.