GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Product
  • View Product Pricing
  • Infrastructure Monitoring
  • Custom Metrics
  • Network Monitoring
  • End User Device Monitoring
  • Container Monitoring
  • Kubernetes Autoscaling
  • Serverless Monitoring
  • Cloud Cost Management
  • Storage Management
  • GPU Monitoring
  • Application Performance Monitoring
  • Universal Service Monitoring

This view

  • Original page
  • New address

GeezerVison is showing docs.datadoghq.com — Set Up Code Coverage

For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/code_coverage/setup.md. A documentation index is available at /llms.txt.
    Home Docs API
  • Agents
  • Essentials
    • Getting Started
      • Agent
      • API
      • APM Tracing
      • Containers
        • Autodiscovery
        • Datadog Operator
      • Dashboards
      • Database Monitoring
      • Datadog
      • Datadog Site
      • DevSecOps
      • Incident Management
      • Integrations
        • AWS
        • Azure
        • Google Cloud
        • OCI
        • Terraform
        • Stripe
      • Internal Developer Portal
      • Logs
      • Monitors
      • Notebooks
      • OpenTelemetry
      • Profiler
      • Search
        • Product-Specific Search
      • Session Replay
      • Security
        • App and API Protection
        • Cloud Security
        • Cloud SIEM
        • Code Security
      • Serverless for AWS Lambda
      • Software Delivery
        • CI Visibility
        • Feature Flags
        • Test Optimization
        • Test Impact Analysis
        • MCP Tools
      • Synthetic Monitoring and Testing
        • API Tests
        • Browser Tests
        • Mobile App Tests
        • Continuous Testing
        • Private Locations
      • Tags
        • Assigning Tags
        • Unified Service Tagging
        • Using Tags
      • Teams
      • Workflow Automation
      • Access for Enterprises
        • Choosing Your Datadog Topology
        • Permissions and Feature Access
        • Assigning Users to Roles and Teams
        • Protecting Assets
        • Protecting Sensitive Data
        • Credential Management
        • Creating Access Policies
        • Sharing Across Organizations
        • Example Implementations
      • Learning Center
      • Support
    • Glossary
    • Standard Attributes
    • Guides
    • Agent
      • Architecture
      • IoT
      • Supported Platforms
        • AIX
        • Linux
        • Ansible
        • Chef
        • Heroku
        • MacOS
        • Puppet
        • SaltStack
        • SCCM
        • Windows
        • From Source
      • Log Collection
        • Log Agent tags
        • Advanced Configurations
        • Proxy
        • Transport
        • Multi-Line Detection
      • Configuration
        • Commands
        • Configuration Files
        • Log Files
        • Status Page
        • Network Traffic
        • Proxy Configuration
        • FIPS Compliance
        • Dual Shipping
        • Secrets Management
        • Infrastructure Modes
        • Agent Data Plane
      • Fleet Automation
        • Fleet View
        • Access Control
        • Configure Agents
        • Supported datadog.yaml Fields
        • Configure Agent Integrations
        • Configure Custom Logs
        • Modify Tags
        • Configuration Policies
        • Upgrade Agents
        • Upgrade SDKs
        • OpenTelemetry Collectors
      • Troubleshooting
        • Container Hostname Detection
        • Debug Mode
        • Agent Flare
        • Agent Check Status
        • NTP Issues
        • Permission Issues
        • Integrations Issues
        • Site Issues
        • Autodiscovery Issues
        • Windows Container Issues
        • Agent Runtime Configuration
        • High CPU or Memory Consumption
        • Missing Log Bytes
      • Guides
      • Data Security
    • Integrations
      • Guides
    • Client SDKs
      • Setup
      • Advanced Configuration
      • Data Collected
      • Integrated Libraries
      • Troubleshooting
    • Extend Datadog
      • Authorization
        • OAuth2 in Datadog
        • Authorization Endpoints
      • DogStatsD
        • Datagram Format
        • Unix Domain Socket
        • High Throughput Data
        • Data Aggregation
        • DogStatsD Mapper
      • Custom Checks
        • Writing a Custom Agent Check
        • Writing a Custom OpenMetrics Check
      • Integrations
        • Build an Integration with Datadog
        • Create an Agent-based Integration
        • Create an API-based Integration
        • Create a Log Pipeline
        • Integration Assets Reference
        • Build a Marketplace Offering
        • Create an Integration Dashboard
        • Create a Monitor Template
        • Create a Cloud SIEM Detection Rule
        • Install Agent Integration Developer Tool
      • Service Checks
        • Submission - Agent Check
        • Submission - DogStatsD
        • Submission - API
      • Community
        • Libraries
      • Guides
    • OpenTelemetry
      • Getting Started
      • Feature Compatibility
      • Instrument Your Applications
        • DDOT SDKs
        • Upstream OpenTelemetry SDKs
      • Send Data to Datadog
        • DDOT Collector
        • Upstream OpenTelemetry Collector
        • Direct OTLP Ingest
        • Datadog Agent
      • Semantic Mapping
        • Resource Attribute Mapping
        • Metrics Mapping
        • Infrastructure Host Mapping
        • Hostname Mapping
        • Service-entry Spans Mapping
      • Ingestion Sampling
      • Correlate Data
        • Logs and Traces
        • Metrics and Traces
        • RUM and Traces
        • DBM and Traces
      • Integrations
        • Apache Metrics
        • Apache Spark Metrics
        • Collector Health Metrics
        • Datadog Extension
        • OpAMP Extension
        • Docker Metrics
        • HAProxy Metrics
        • Host Metrics
        • IIS Metrics
        • Kafka Metrics
        • Kubernetes Metrics
        • MongoDB Metrics
        • MySQL Metrics
        • PostgreSQL Metrics
        • NGINX Metrics
        • Podman Metrics
        • RabbitMQ Metrics
        • Redis Metrics
        • Runtime Metrics
        • SQL Server Metrics
        • Trace Metrics
      • Fleet Automation
      • Troubleshooting
      • Guides and Resources
        • OpenTelemetry Demo Application
        • Produce Delta Temporality Metrics
        • Instrument Unsupported Runtimes
        • Migration Guides
      • Reference
        • Terms and Concepts
        • Trace Context Propagation
        • Trace IDs
        • OTLP Metric Types
    • Administrator's Guide
      • Getting Started
      • Plan
      • Build
      • Run
    • API
    • Command Line
    • MCP Server
      • Setup
      • MCP Tools
      • Code Execution
    • Partners
    • Datadog Mobile App
      • Enterprise Configuration
      • Datadog for Intune
      • Shortcut Configurations
      • Push Notifications
      • Widgets
      • Guides
    • DDSQL Reference
      • Data Directory
    • Remote Configuration
    • Cloudcraft (Standalone)
      • Getting Started
      • Account Management
      • Components: Common
      • Components: Azure
      • Components: AWS
      • Advanced
      • FAQ
      • API
        • AWS Accounts
        • Azure Accounts
        • Blueprints
        • Budgets
        • Teams
        • Users
  • In The App
    • Dashboards
      • Configure
      • Dashboard List
      • Widgets
        • Configuration
        • Widget Types
      • Querying
      • Functions
        • Algorithms
        • Arithmetic
        • Count
        • Exclusion
        • Interpolation
        • Rank
        • Rate
        • Regression
        • Rollup
        • Smoothing
        • Telemetry Source
        • Timeshift
        • Beta
      • Graph Insights
        • Metric Correlations
        • Investigate Anomalies
        • Watchdog Explains
      • Template Variables
      • Overlays
      • Annotations
      • Guides
      • Sharing
        • Shared Dashboards
        • Widget Share URLs
        • Secure Embedded Dashboards
        • Share Graphs
        • Scheduled Reports
    • Notebooks
      • Analysis Features
        • Getting Started
      • Markdown Format
      • API Guide
      • Guides
    • DDSQL Editor
    • Reference Tables
    • Sheets
      • Functions and Operators
      • Guides
    • Monitors and Alerting
      • Draft Monitors
      • Configure Monitors
      • Monitor Templates
      • Monitor Types
      • Notifications
        • Notification Rules
        • Variables
      • Downtimes
        • Examples
      • Manage Monitors
        • Search Monitors
        • Check Summary
      • Monitor Status
        • Status Graphs
        • Status Events
      • Monitor Settings
      • Monitor Quality
      • Guides
    • Service Level Objectives
      • Monitor-based SLOs
      • Metric-based SLOs
      • Time Slice SLOs
      • Error Budget Alerts
      • Burn Rate Alerts
      • Guides
    • Metrics
      • Custom Metrics
        • Metric Type Modifiers
        • Historical Metrics Ingestion
        • Submission - Agent Check
        • Submission - DogStatsD
        • Submission - Powershell
        • Submission - API
      • OpenTelemetry Metrics
        • OTLP Metric Types
        • Query OpenTelemetry Metrics
      • Metrics Types
      • Distributions
      • Overview
      • Explorer
        • Metrics Units
      • Catalog
      • Advanced Filtering
      • Nested Queries
      • Reference Table Joins with Metrics
      • Derived Metrics
      • Metrics Without Limits™
      • Guides
    • Watchdog
      • Alerts
      • Impact Analysis
      • RCA
      • Insights
      • Faulty Deployment Detection
      • Faulty Cloud & SaaS API Detection
    • Bits AI
      • Bits Agent Builder
        • Improve agents using traces
      • Bits Autonomous Operations
        • Bits Detection
        • Bits Investigation
        • Bits Remediation
      • Bits Chat
        • Use Bits Chat
        • Bits CLI
      • Bits Code
        • Setup
        • Automations
        • Code Channels in Slack
      • Bits Data Analysis
      • Bits Database Optimization
      • Bits Live Debugger
      • Bits Maintenance
        • Setup
        • Campaigns and Plans
        • Upgrade Instructions and Memories
      • Bits Release
      • Bits Security Analyst
      • Bits AI Settings
        • Skills Library
        • AI Credit Limits
    • Internal Developer Portal
      • Catalog
        • Set Up
        • Entity Model
        • Troubleshooting
      • Scorecards
        • Scorecard Configuration
        • Custom Rules
        • Using Scorecards
      • Self-Service Actions
        • Software Templates
      • Engineering Reports
        • Teams Performance
        • Reliability Overview
        • Catalog Health
        • Scorecards Performance
        • DORA Metrics
        • Custom Reports
      • Homepage
      • Campaigns
      • External Provider Status
      • Integrations
      • Use Cases
        • API Management
        • Cloud Cost Management
        • App and API Protection
        • Developer Onboarding
        • Dependency Management
        • Production Readiness
        • Incident Response
        • CI Pipeline Visibility
      • Onboarding Guide
    • Error Tracking
      • Explorer
      • Issue States
      • Regression Detection
      • Suspected Causes
      • Error Grouping
      • Bits Investigation
      • Monitors
      • Identify Suspect Commits
      • Auto Assign
      • Issue Team Ownership
      • Track Browser and Mobile Errors
        • Browser Error Tracking
        • Collecting Browser Errors
        • Mobile Crash Tracking
        • Replay Errors
        • Real User Monitoring
        • Logs
      • Track Backend Errors
        • Getting Started
        • Exception Replay
        • Capturing Handled Errors
        • APM
        • Logs
      • Manage Data Collection
      • Ticketing Systems
        • Jira
        • Linear
        • Work Management
      • Link Pull Requests
      • Troubleshooting
      • Guides
    • Change Tracking
      • Change Types
        • Feature Flags
    • Event Management
      • Ingest Events
      • Pipelines and Processors
        • Aggregation Key Processor
        • Arithmetic Processor
        • Date Remapper
        • Category Processor
        • Grok Parser
        • Lookup Processor
        • Remapper
        • Service Remapper
        • Status Remapper
        • String Builder Processor
        • VRL Processor
      • Explorer
        • Searching
        • Navigate the Explorer
        • Customization
        • Facets
        • Attributes
        • Notifications
        • Analytics
        • Saved Views
      • Triage Inbox
      • Correlation
        • Configuration
        • Triaging & Notifying
        • Analytics
        • Maintenance Windows
      • Guides
  • Incident Response
    • Incident Management
      • Incident Investigation
        • Declare an Incident
        • Describe an Incident
        • Response Team
        • Notification
        • Timeline
        • Incident AI
        • Meeting Summaries and Transcripts
      • Setup and Configuration
        • Information
        • Property Fields
        • Transition Forms
        • Responder Roles
        • Automations
        • Notification Rules
        • Templates
        • Variables
      • Post Incident
        • Follow-ups
        • Postmortems
      • Analytics and Reporting
      • Integrations
        • Slack
        • Microsoft Teams
        • Google Chat
        • Jira
        • ServiceNow
        • Status Pages
        • Atlassian Statuspage
        • Google Meet
        • Zoom
      • Guides
    • On-Call
      • Onboard a Team
      • Pages
        • Live Call Routing
        • Cross-org Paging
      • Routing Rules
      • Escalation Policies
      • Schedules
      • Handover automation
      • Notification Preferences
        • Supported Countries
      • Analytics
      • Integrations
        • ServiceNow
        • Jira
      • Guides
    • Status Pages
      • Components
      • Notices
      • Notice Templates
      • Subscriptions
    • Work Management
      • Projects
        • Settings
      • Create a Work Item
      • Customization
      • View and Manage Work Items
      • Notifications and Integrations
      • Work Item Automation Rules
      • Work Item Approvals
      • AI Tools
        • Custom Agents
      • Troubleshooting
  • Actions & Remediations
    • Bits Agent Builder
      • Improve agents using traces
    • Workflow Automation
      • Build Workflows
      • Access and Authentication
      • Trigger Workflows
      • Variables and parameters
      • Actions
        • Workflow Logic
      • Save and Reuse Actions
      • Test and Debug
      • Expressions
      • Track Workflows
      • Limits
      • MCP Tools
    • Apps
      • Embed Apps
    • App Builder
      • Build Apps
      • Access and Authentication
      • Queries
      • Variables
      • Events
      • Components
        • Custom Charts
        • React Renderer
        • Tables
        • Reusable Modules
      • JavaScript Expressions
      • Embed App Builder Apps
        • Input Parameters
      • Save and Reuse Actions
    • Datastores
      • Create and Manage Datastores
      • Use Datastores with Apps and Workflows
      • Automation Rules
      • Access and Authentication
    • Forms
      • Components
      • Responses
      • Guides
    • Action Catalog
      • Connections
        • HTTP Request
        • Integration Connections
        • Google Workspace
        • GitHub App Connection
        • Private Action Credentials
      • Execution Policies
      • Private Actions
        • Getting Started
        • Set Up in the Datadog Agent
        • Set Up a Standalone Runner
        • Enrollment and Ownership
        • Authorize Private Actions
        • Run a Script
        • Reference
  • Infrastructure
    • Cloudcraft
      • Overlays
        • Infrastructure
        • Observability
        • Security
        • Cloud Cost Management
        • Monitors
        • APM
    • Resource Catalog
      • Cloud Resources Schema
      • Policies
      • Resource Changes
    • Universal Service Monitoring
      • Setup
      • Guides
    • End User Device Monitoring
      • Setup
        • macOS
        • Windows
    • Hosts
      • Host List
    • Containers
      • Container Monitoring
        • Containers Explorer
        • Container Images Explorer
        • Kubernetes Explorer
        • Amazon ECS Explorer
      • Autoscaling
        • Manifest Reference
        • Cluster
      • Docker-based
        • APM
        • Log collection
        • Tag extraction
        • Integrations
        • Prometheus
        • Data Collected
      • Kubernetes
        • Installation
        • OpenTelemetry
        • Migrate to the Datadog Operator
        • Further Configuration
        • Distributions
        • APM
        • App and API Protection
        • Log collection
        • Tag extraction
        • Integrations
        • Prometheus & OpenMetrics
        • Control plane monitoring
        • Data collected
        • kubectl Plugin
        • Datadog CSI Driver
        • Data security
      • Cluster Agent
        • Setup
        • Commands & Options
        • Cluster Checks
        • Endpoint Checks
        • Admission Controller
      • Amazon ECS
        • APM
        • Log collection
        • Tag extraction
        • Data collected
        • Managed Instances
        • AWS Fargate with ECS
      • Datadog Operator
        • Migrate to the Datadog Operator
        • Advanced Install
        • Configuration
        • Datadog Agent Profiles
        • Providers
        • Custom Checks
        • Data Collected
        • Secret Management
        • DatadogDashboard CRD
        • DatadogGenericResource CRD
        • DatadogMonitor CRD
        • DatadogSLO CRD
        • DatadogBYOCCluster CRD
      • Troubleshooting
        • Duplicate hosts
        • Cluster Agent
        • Cluster Checks
        • HPA and Metrics Provider
        • Admission Controller
        • Log Collection
      • Guides
    • Processes
      • Increase Process Retention
    • Serverless
      • AWS
        • AWS Lambda
        • AWS Step Functions
        • AWS Fargate
      • Azure
        • Azure App Service
        • Azure Container Apps
        • Azure Database & Messaging Services
        • Azure Functions
        • Azure Logic Apps
      • Google
        • Cloud Run Containers
        • Cloud Run Jobs (Preview)
        • Cloud Run Functions
        • Cloud Run Functions (1st generation)
      • Libraries & Integrations
      • Glossary
      • Guides
    • Network Monitoring
      • Cloud Network Monitoring
        • Setup
        • Network Health
        • Network Analytics
        • Network Map
        • Guides
        • Supported Cloud Services
        • Terms and Concepts
      • DNS Monitoring
      • Network Device Monitoring
        • Setup
        • Summary Page
        • Integrations
        • Profiles
        • Configuration Management
        • Maps
        • SNMP Metrics Reference
        • Troubleshooting
        • Guides
        • Terms and Concepts
      • NetFlow Monitoring
        • Monitors
      • Network Path
        • Setup
        • List View
        • Path View
        • Autonomous Systems View
        • On-Demand Tests
        • Monitors
        • Guides
        • Terms and Concepts
      • L1 to L7 Map
    • Storage Management
      • Amazon S3
      • Google Cloud Storage
      • Azure Blob Storage
  • Cloud Cost
    • Cloud Cost
      • Datadog Costs
      • Setup
        • Permissions
        • AWS
        • Azure
        • Google Cloud
        • Oracle
        • SaaS and AI Costs
        • Custom
      • Tags
        • Tag Explorer
        • Multisource Querying
      • Allocation
        • Tag Pipelines
        • Container Cost Allocation
        • BigQuery Costs
        • Custom Allocation Rules
      • AI Costs
        • AI Gateway Allocation
      • Reporting
        • Scheduled Reports
        • Explorer
        • Dashboard
      • Recommendations
        • Cost Optimization Automations
        • Notifications
        • Custom Recommendations
      • Planning
        • Budgets
        • Forecasting
        • Commitment Programs
        • Outcomes
      • Cost Changes
        • Monitors
        • Anomalies
        • Real-Time Costs
      • Cloud Cost Skill
  • Application Performance
    • APM
      • APM Terms and Concepts
      • Application Instrumentation
        • Single Step Instrumentation
        • Manually managed SDKs
        • Code-based Custom Instrumentation
        • Dynamic Instrumentation
        • Library Compatibility
        • Library Configuration
        • Configuration at Runtime
        • Trace Context Propagation
        • Serverless Application Tracing
        • Proxy Tracing
        • Span Tag Semantics
        • Span Links
      • APM Metrics Collection
        • Trace Metrics
        • Runtime Metrics
      • Trace Pipeline Configuration
        • Ingestion Mechanisms
        • Ingestion Controls
        • Adaptive Sampling
        • Processing Pipelines
        • Generate Metrics
        • Trace Retention
        • Usage Metrics
      • Correlate Traces with Other Telemetry
        • Correlate DBM and Traces
        • Correlate Logs and Traces
        • Correlate RUM and Traces
        • Correlate Synthetics and Traces
        • Correlate Profiles and Traces
      • Trace Explorer
        • Search Spans
        • Query Syntax
        • Trace Queries
        • Span Tags and Attributes
        • Span Visualizations
        • Trace View
        • Tag Analysis
      • Recommendations
      • Code Origin for Spans
      • Service Observability
        • Catalog
        • Service Page
        • Resource Page
        • Deployment Tracking
        • Service Map
        • Inferred Services
        • Service Remapping Rules
        • Env Remapping Rules
        • Resource Renaming Rules
        • Tag Enrichment
        • Integration Override Removal
        • APM Monitors
      • Endpoint Observability
        • Explore Endpoints
        • Monitor Endpoints
      • Live Debugger
        • Bits Live Debugger
        • Sensitive Data Scrubbing
      • Error Tracking
        • Issue States
        • Error Tracking Explorer
        • Error Grouping
        • Stack Traces
        • Monitors
        • Identify Suspect Commits
        • Exception Replay
        • Troubleshooting
      • Data Security
      • Guides
      • Troubleshooting
        • Agent Rate Limits
        • Agent APM metrics
        • Agent Resource Usage
        • Correlated Logs
        • PHP 5 Deep Call Stacks
        • .NET diagnostic tool
        • APM Quantization
        • Go Compile-Time Instrumentation
        • Tracer Startup Logs
        • Tracer Debug Logs
        • Connection Errors
        • SDK Configurations
    • Continuous Profiler
      • Enabling the Profiler
        • Supported Language and SDK Versions
      • Profile Types
      • Profile Visualizations
      • Investigate Slow Traces or Endpoints
      • Compare Profiles
      • Automated Analysis
      • Profiler Troubleshooting
        • Java
        • Python
        • Go
        • Ruby
        • Node.js
        • .NET
        • PHP
        • C/C++/Rust
        • Full-Host Profiler
      • Guides
    • Database Monitoring
      • Set Up DBM
        • Setup Architectures
        • Agent Integration Overhead
        • Postgres
        • MySQL
        • MariaDB
        • SQL Server
        • Oracle
        • MongoDB
        • ClickHouse
        • IBM Db2
        • Amazon DocumentDB
        • Provision the Agent with Terraform
      • Data Collected
      • Explore DBM
        • Database Hosts
        • Query Metrics
        • Custom Metrics
        • Query Samples
        • Database Schemas
        • Recommendations
      • Connecting DBM and Traces
      • Database Investigations in Bits Chat
      • Bits Database Optimization
      • Database Monitoring Workbench
      • Database Monitoring PR Reviews
      • Role Observability
      • Troubleshooting
      • Guides
    • Data Streams Monitoring
      • Setup
      • Kafka Console
        • Setup
        • Monitors and Automation
      • Schema Tracking
      • Dead Letter Queues
      • Metrics and Tags
  • Data Observability
    • Data Observability Overview
    • Data Catalog
    • Lineage
    • Quality Monitoring
      • Data Warehouses
        • Snowflake
        • Databricks
        • BigQuery
        • Redshift
        • ClickHouse Cloud
        • Microsoft Fabric Warehouse
      • Data Lakes
        • AWS Glue
        • Amazon Athena Query History
      • Transactional Databases
        • PostgreSQL
      • ELT Integrations
        • Airbyte
        • Fivetran
        • Hightouch
      • Business Intelligence Integrations
        • Hex
        • Looker
        • Tableau
        • Sigma
        • Metabase
        • Power BI
      • Monitors
      • Guides
    • Jobs Monitoring
      • Databricks
        • Private Link Connectivity
      • Airflow
        • Logs Correlation
        • Troubleshooting DAG
        • Upgrade OpenLineage Provider on Amazon MWAA
      • dbt
      • Spark on Kubernetes
      • Spark on Amazon EMR
      • Spark on Google Dataproc
      • AWS Glue
      • Azure Data Factory
      • Custom Jobs (OpenLineage)
        • Datadog Agent for OpenLineage Proxy
      • Monitors
    • CI/CD
    • Integration Overhead
  • Digital Experience
    • Journey Monitoring
      • Configure Journeys
      • Suggested Journeys
      • Variants
      • Journey Overview Page
      • Map
      • Status
      • Details Report
      • Roles and Permissions
    • Real User Monitoring
      • Application Monitoring
        • Browser
        • Android and Android TV
        • Apple Platforms
        • Flutter
        • Kotlin Multiplatform
        • C / C++
        • React Native
        • Electron
        • Roku
        • Unity
        • .NET MAUI
      • Platform
        • Dashboards
        • Monitors
        • Generate Custom Metrics
      • Exploring RUM Data
        • Search RUM Events
        • Search Syntax
        • Group
        • Visualize
        • Events
        • Export
        • Saved Views
        • Watchdog Insights for RUM
      • Correlate RUM with Other Telemetry
        • Correlate LLM with RUM
        • Correlate Logs with RUM
        • Correlate Profiling with RUM
        • Correlate Synthetics with RUM
        • Correlate Traces with RUM
      • Feature Flag Tracking
        • Setup
        • Using Feature Flags
      • Error Tracking
        • Explorer
        • Issue States
        • Track Browser Errors
        • Track Mobile Errors
        • Error Grouping
        • Monitors
        • Identify Suspect Commits
        • Troubleshooting
      • Bits in RUM
        • Optimize Performance
        • Investigate Regressions
        • Bits Chat in RUM
      • RUM Without Limits
        • Metrics
        • Retention Filters
        • Retention Quotas
      • Operations Monitoring
      • Managed Archive
      • Export Pipelines
      • Ownership of Views
      • Remote Configuration
      • Guides
      • Data Security
    • Synthetic Testing and Monitoring
      • API Testing
        • HTTP
        • SSL
        • DNS
        • WebSocket
        • TCP
        • UDP
        • ICMP
        • GRPC
        • Error codes
      • Multistep API Testing
      • Browser Testing
        • Recording Steps
        • Browser Testing Results
        • Advanced Options for Steps
        • Authentication in Browser Testing
      • Network Path Testing
        • Terms and Concepts
      • Mobile Application Testing
        • Testing Steps
        • Testing Results
        • Advanced Options for Steps
        • Supported Devices
        • Restricted Networks
        • Settings
      • Test Suites
      • Bits Testing
      • Goal-Based Testing
      • Platform
        • Dashboards
        • Metrics
        • Test Coverage
        • Private Locations
        • Connect APM
        • Connect RUM
        • Settings
        • Scheduled Downtime
      • Exploring Synthetics Data
        • Overview Page
        • Saved Views
        • Results Explorer
      • Guides
      • Notifications
        • Template Variables
        • Conditional Alerting
        • Advanced Notifications
        • Integrate with Statuspage
      • Troubleshooting
      • Data Security
    • Continuous Testing
      • Local and Staging Environments
        • Testing Multiple Environments
        • Testing With Proxy, Firewall, or VPN
      • CI/CD Integrations
        • Configuration
        • Azure DevOps Extension
        • CircleCI Orb
        • GitHub Actions
        • GitLab
        • Jenkins
        • Bitrise (Upload Application)
        • Bitrise (Run Tests)
      • Settings
      • Results Explorer
      • Metrics
      • Guides
      • Troubleshooting
    • Experiments
      • Create Experiment Metrics
        • Sync Metrics from YAML
      • Standardize Experiments with Protocols
      • Plan and Launch Experiments
      • Experiment Approvals
      • Read Experiment Results
      • Experiment Diagnostics
      • Concepts
        • Subject Types
        • Exposure SQL Models
        • Identity Resolution
        • SQL Template Variables
        • Cumulative Impact
        • Holdouts
      • Statistics
        • Analysis Methods
        • CUPED: Variance Reduction Technique
        • Minimum Detectable Effects
        • Multiple Testing Correction
        • Global Lift
        • Lift and Interval Calculations
        • Expected Regret and EVSI
      • Break Out Metrics by Property
      • Troubleshooting
      • Experiments MCP Tools
      • Guides
    • Product Analytics
      • Charts
        • Chart Basics
        • Funnel
        • Journey Paths
        • Pathways
        • Retention
        • Analytics
      • Dashboards
        • Dashboard Reporter Agent
      • Segments
      • Action Management
      • Managing Profiles
        • Identity Resolution
      • Tracking Plans
      • Data Collected
        • Server-Side Events
      • Export Pipelines
      • Usability
      • Guides
      • Troubleshooting
    • Session Replay
      • Setup
      • Privacy Options
      • Developer Tools
      • Playlists
      • Heatmaps
      • Impact on App Performance
      • Troubleshooting
      • Guides
  • Software Delivery
    • CI/CD Optimization
      • CI Visibility
        • AWS CodePipeline
        • Azure Pipelines
        • Buildkite
        • CircleCI
        • Codefresh
        • GitHub Actions
        • GitLab
        • Jenkins
        • TeamCity
        • Other CI Providers
        • Custom Commands
        • Custom Tags and Measures
      • Test Optimization
        • Language Setup
        • Network Settings
        • Tests in Containers
        • Correlate Logs and Tests
        • Browser Tests with RUM
        • Swift Tests with RUM
      • Explorer
        • Search Syntax
        • Search Pipeline Executions
        • Export
        • Saved Views
        • Search and Manage
      • Features
        • Auto Test Retries
        • Automatic Job Retries
        • Developer Workflows
        • Early Flake Detection
        • Flaky Management
        • Test Impact Analysis
        • Test Parallelization
        • Legacy Features
      • Monitors
      • Guides
      • Troubleshooting
        • CI Pipelines
        • Tests
    • CD Visibility
      • Deployment Visibility
        • Argo CD
        • CI Providers
      • Explore Deployments
        • Search Syntax
        • Facets
        • Saved Views
      • Features
        • Code Changes Detection
        • Rollback Detection
      • Monitors
    • Deployment Gates
      • Setup
        • Inline Gates
        • Preconfigured Gates
    • Code Coverage
      • Setup
      • Configuration
      • Coverage Calculation
      • Monorepo Support
      • Flags
      • Carryforward
      • Data Collected
      • Dashboards
    • PR Gates
      • Setup
    • Delivery Performance
      • DORA Metrics
        • Setup
        • Change Failure Detection
        • DORA Metrics Calculation
        • Data Collected
      • AI Impact
        • Setup
    • Feature Flags
      • Client SDKs
        • Android and Android TV
        • Angular
        • Dart and Flutter
        • iOS and tvOS
        • JavaScript
        • React
        • React Native
        • Unity
      • Server SDKs
        • .NET
        • Go
        • Java
        • Node.js
        • PHP
        • Python
        • Ruby
      • Concepts
        • Approvals
        • Cloning Feature Flags
        • Configuration Sources
        • Distribution Channels
        • Environments
        • Evaluation Context
        • Evaluation Results
        • Evaluation Tester
        • Experiments
        • Feature Flag Graphs
        • Flag Evaluation and Experimentation Opt-Out
        • Flag History
        • Flag Key Obfuscation
        • Monthly Flag Configuration Requests
        • Permissions and Access Control
        • Saved Filters
        • Scheduled Rollouts
        • Stale Flags
        • Targeting Attributes
        • Targeting Rules and Filters
        • Traffic Splitting and Randomization
        • Variants and Flag Types
        • Workflow Automation
      • Use Cases
        • Progressive Rollouts and Canaries
        • Kill Switches
        • Dynamic Configuration
      • Implementation Patterns
        • Local Flag Overrides
        • OpenTelemetry
        • Serverless
        • Browser Rules-Based Evaluation
      • Browser Developer Extension
      • MCP Server
      • Guides
  • Developer Integrations
    • Source Code Integration
      • Source Code Management Providers
      • Service Mapping
        • .NET
        • Go
        • Java
        • Node.js
        • PHP
        • Python
        • Ruby
        • OpenTelemetry
        • Other Languages
      • Resource Mapping
      • Code Snippets and Context Links
      • PR Comments
    • IDE Plugins
      • JetBrains IDEs
        • Code Security
      • VS Code & Cursor
        • Code Security
        • Code Insights
  • Security
    • Security Overview
      • Detection Rules
        • OOTB Rules
      • Notifications
        • Rules
        • Variables
      • Suppressions
      • Automation Pipelines
        • Modify Severity Level
        • Mute
        • Set Due Date Rules
        • Add to Security Inbox
        • Create Tickets
      • Security Inbox
      • Remediation Inbox
      • Threat Intelligence
      • Events Forwarding
      • Audit Trail
      • Access Control
      • Ticketing Integrations
      • Assignee Management
      • Research Feed
      • Severity Adjustment
      • Security MCP Tools
      • Guides
    • Cloud SIEM
      • Ingest and Enrich
        • Content Packs
        • Bring Your Own Threat Intelligence
        • Muted Indicators
        • Open Cybersecurity Schema Framework
      • Detect and Monitor
        • OOTB Rules
        • Custom Detection Rules
        • Migrate Detection Rules
        • Version History
        • Suppressions
        • Dynamic Severity
        • Historical Jobs
        • MITRE ATT&CK Map
      • Triage and Investigate
        • Investigate Security Signals
        • Entity Risks
        • User Inventory
        • IOC Explorer
        • Investigator
        • Group Signals into Cases
      • Respond and Report
        • Security Operational Metrics
      • Guides
      • Data Security
    • Code Security
      • Static Code Analysis (SAST)
        • Setup
        • Configuration
        • GitHub Actions
        • Generic CI Providers
        • AI-Enhanced Static Code Analysis
        • SAST Custom Rule Creation Tutorial
        • SAST Custom Rules
        • SAST Custom Rules Guide
        • Static Code Analysis (SAST) rules
      • Software Composition Analysis (SCA)
        • Static Setup
        • Runtime Setup
        • Configuration
        • Supply Chain Firewall (SCFW)
        • Library Inventory
        • CVE Explorer
      • Secret Scanning
        • GitHub Actions
        • Generic CI Providers
        • Configuration
        • Secret Validation
      • Runtime Code Analysis (IAST)
        • Setup
        • Security Controls
      • Infrastructure as Code (IaC) Security
        • Setup
        • Configuration
        • GitHub Actions
        • Rules
        • IaC Custom Rules
        • IaC Custom Rule Reference
      • Prioritize Findings with Runtime Context
      • Developer Tool Integrations
        • Pull Request Comments
        • PR Gates
        • IDE Plugins
        • Git Hooks
        • MCP Server
        • SCFW GitHub Action
      • Troubleshooting
      • Guides
    • Cloud Security
      • Setup
        • Supported Deployment Types
        • Agentless Scanning
        • Deploy the Agent
        • Container Image Scanning in CI/CD
        • Set Up CloudTrail Logs
        • Link Images to Dockerfiles
        • Set Up without Infrastructure Monitoring
        • Deploy using Cloud Integrations
      • Security Graph
      • Misconfigurations
        • Manage Compliance Rules
        • Create Custom Rules
        • Manage Compliance Posture
        • Explore Misconfigurations
        • Kubernetes Security Posture Management
      • Identity Risks
      • Vulnerabilities
        • Hosts and Containers Compatibility
      • Crown Jewels
      • OOTB Rules
      • Triage and Prioritize
        • Runtime Prioritization Engine
        • Severity Scoring
      • Review and Remediate
        • Mute Issues
        • Automate Security Workflows
        • Remediate with AI
        • Ownership Agent
        • Set Up Ownership Preferences
      • Code Locations
      • Guides
      • Troubleshooting
        • Vulnerabilities
        • Agentless Scanning
    • App and API Protection
      • Terms and Concepts
      • How It Works
        • Threat Intelligence
        • Trace Qualification
        • User Monitoring and Protection
      • Setup
      • API Posture
        • Overview
        • API Findings
        • Compliance
        • API Inventory
        • Endpoint Scanning
        • Sensitive Data
      • Threat Protection
        • Overview
        • Security Signals
        • Policies
        • Exploit Prevention
        • WAF Integrations
        • Account Takeover Protection
      • Attack Summary
      • Guides
      • Troubleshooting
    • AI Guard
      • Set Up AI Guard
        • Automatic Integrations
        • Manual Integrations
        • SDK
        • HTTP API
      • Manage Policies
      • Redact Sensitive Data
      • Control Evaluations in Code
      • Triage and Investigate Signals
    • Workload Protection
      • Setup
        • Docker
        • Kubernetes
        • ECS (EC2 compute)
        • Linux
        • Fargate
        • Windows
        • Advanced Configuration
      • Detect and Monitor
        • Agent Rules
        • Detection and Finding Rules
        • Threat Intelligence
        • Content Packs
      • Investigate and Triage
        • Agent Events
        • Signals
        • Findings
      • Respond to Threats
      • Coverage
        • Review and Improve Coverage
      • Guides
      • Troubleshooting
    • Sensitive Data Scanner
      • Setup
        • Telemetry Data
        • Cloud Storage
      • Scanning Rules
        • Library Rules
        • Custom Rules
      • Guides
      • Troubleshooting
    • Data Security
      • Setup
        • Snowflake
        • PostgreSQL
        • Amazon S3
      • Findings
  • AI Observability
    • Agent Observability
      • Quickstart
        • Terms and Concepts
      • Build with AI
      • Instrument
        • Automatic
        • SDK Reference
        • HTTP API
        • OpenTelemetry
        • Correlate with APM
        • Prompt Tracking
        • Agent Tracking
        • Multimodal
      • Investigate
        • Querying spans and traces
        • Insights
        • Cost
        • Metrics
        • Patterns
        • Evaluations
        • Annotation Queues
        • Export API
      • Improve
        • Playground
        • Datasets
        • Offline Experiments
        • Online Experiments
        • Prompt Experimentation
      • Configure
        • Prompt Management
        • Automation Rules
      • Data Governance
        • Data Access Control
      • Lapdog
      • Guides
    • GPU Monitoring
      • Setup
        • Dynamic Resource Allocation
      • Summary
      • Explorer
      • Capacity Planning
      • Training
      • Inference
      • Continuous Tracing
      • MCP Tools
    • Agent Console
      • Setup
    • AI Gateway
      • Get Started
      • Connect Providers
      • Send Requests
      • Connect Applications
      • Route Requests
      • Control Model Access
      • Control Spend and Usage
      • Security and Data Capture
      • Observe AI Gateway Activity
      • Best practices
      • Troubleshooting
  • Log Management
    • Observability Pipelines
      • Configuration
        • Explore Templates
        • Set Up Pipelines
        • Pipeline Simulation
        • Install the Worker
        • Secrets Management
        • Live Capture
        • Update Existing Pipelines
        • Export Pipeline
        • Network Traffic
        • Version History
        • Access Control
        • Manage Pipelines with AI Agents
      • Sources
        • Akamai DataStream
        • Amazon Data Firehose
        • Amazon S3
        • Azure Event Hubs
        • Cloudflare Logpush
        • Datadog Agent
        • Datadog Lambda Extension
        • Datadog Lambda Forwarder
        • Filebeat
        • Fluent
        • Google Pub/Sub
        • HTTP Client
        • HTTP Server
        • OpenTelemetry
        • Prometheus
        • Kafka
        • Logstash
        • MySQL
        • Okta
        • Socket
        • Splunk HEC
        • Splunk TCP
        • Sumo Logic Hosted Collector
        • Syslog
        • WebSocket
      • Processors
        • Add Environment Variables
        • Add hostname
        • Aggregate
        • Custom Processor
        • Deduplicate
        • Edit fields
        • Edit tags
        • Enrichment Table
        • Filter
        • Generate Metrics
        • Grok Parser
        • Parse JSON
        • Parse XML
        • Quota
        • Reduce
        • Remap to OCSF
        • Sample
        • Sawmill
        • Sensitive Data Scanner
        • Spike Protection
        • Split Array
        • Tag Allow/Block List
        • Tags
        • Tag Cardinality Control
        • Throttle
      • Destinations
        • Amazon OpenSearch
        • Amazon S3
        • Amazon Security Lake
        • Azure Data Explorer
        • Azure Storage
        • ClickHouse
        • CrowdStrike NG-SIEM
        • Databricks (Zerobus)
        • Datadog Archives
        • Datadog BYOC Logs
        • Datadog Logs
        • Datadog Metrics
        • Elasticsearch
        • Google Cloud Storage
        • Google Pub/Sub
        • Google SecOps
        • HTTP Client
        • Kafka
        • Microsoft Sentinel
        • New Relic
        • OpenSearch
        • OpenTelemetry
        • Prometheus
        • SentinelOne
        • Socket
        • Splunk HEC
        • Sumo Logic Hosted Collector
        • Syslog
      • Packs
      • Replay
      • Log Anomaly Detection
      • Search Syntax
      • Scaling and Performance
        • Buffering and Backpressure
        • Scaling Best Practices
      • Monitoring and Troubleshooting
        • Worker CLI Commands
        • Monitoring Pipelines
        • Pipeline Usage Metrics
        • Troubleshooting
      • Guides and Resources
        • Upgrade Worker Guide
    • Log Management
      • Log Collection & Integrations
        • Browser
        • Android
        • iOS
        • Flutter
        • React Native
        • Roku
        • Kotlin Multiplatform
        • C / C++
        • .NET MAUI
        • Electron
        • C#
        • Go
        • Java
        • Node.js
        • PHP
        • OpenTelemetry
        • Python
        • Agent Integrations
        • Ruby
        • Other Integrations
      • Log Configuration
        • Pipelines
        • Processors
        • Parsing
        • Pipeline Scanner
        • Attributes and Aliasing
        • Generate Metrics
        • Indexes
        • Flex Logs
        • Archives
        • Rehydrate from Archives
        • Forwarding
        • Log Optimizer
        • External Sources
      • Log Explorer
        • Live Tail
        • Search Logs
        • Search Syntax
        • Advanced Search
        • Facets
        • Calculated Fields
        • Analytics
        • Patterns
        • Transactions
        • Visualize
        • Log Side Panel
        • Export
        • Watchdog Insights for Logs
        • Saved Views
        • Archive Search
        • Findings
        • Federated Logs
      • Error Tracking
        • Error Tracking Explorer
        • Issue States
        • Track Browser and Mobile Errors
        • Track Backend Errors
        • Error Grouping
        • Manage Data Collection
        • Dynamic Sampling
        • Monitors
        • Identify Suspect Commits
        • Troubleshooting
      • Reports
      • Migration
        • Migration Tools
      • Guides
      • Data Security
      • Troubleshooting
        • Live Tail
    • BYOC Logs
      • Introduction
        • Architecture
        • Network
        • Supported Features
      • Quickstart
      • Install
        • AWS EKS
        • Azure AKS
        • GCP GKE
        • Docker (Local)
        • Datadog Operator
      • Ingest
        • Datadog Agent
        • Observability Pipelines
        • REST API
      • Configure
        • Indexes
        • Ingress
        • Lambda Search Offloading
      • Operate
        • Sizing
        • Object Storage Request Estimation
        • Autoscaling
        • Monitoring
        • Search Logs
        • Production Best Practices
        • Disk Buffer Durability
        • Releases and Updates
        • Troubleshooting
        • Rename a Cluster
      • Guides
      • Release Notes
  • Administration
    • Account Management
      • Organization Topology
      • Switching Between Orgs
      • Organization Settings
        • User Management
        • Login Methods
        • Mobile and Third-Party Access
        • Custom Organization Landing Page
        • Service Accounts
        • IP Allowlist
        • Domain Allowlist
        • Cross-Organization Visibility
        • SMTP Configuration
        • Cross-App Access
      • Access Control
        • Granular Access
        • Permissions
        • Data Access
        • Request Access
        • MCP Access
      • SSO with SAML
        • Configuring SAML
        • Renewing SAML Certificates
        • User Group Mapping
        • Active Directory
        • Auth0
        • Entra ID
        • Google
        • LastPass
        • Okta
        • SafeNet
        • Troubleshooting
      • Delete Data
      • SCIM
        • Okta
        • Microsoft Entra ID
      • API and Application Keys
      • Personal Access Tokens
      • Service Access Tokens
      • Teams
        • Team Management
        • Provision with GitHub
        • Provision with ServiceNow
      • Governance Console
        • Controls
      • Multi-Factor Authentication
      • Audit Trail
        • Events
        • Forwarding
        • Guides
      • Safety Center
      • Plan & Usage
        • Bill Overview
        • Cost Details
        • Usage Details
        • Partner Experience
      • Billing
        • Pricing
        • Credit Card
        • Product Allotments
        • Usage Metrics
        • Usage Attribution
        • Custom Metrics
        • Containers
        • Log Management
        • APM
        • Serverless
        • Real User Monitoring
        • CI/CD Optimization
        • Incident Response
        • AWS Integration
        • Azure Integration
        • Google Cloud Integration
        • OCI Integration
        • Alibaba Integration
        • vSphere Integration
        • Workflow Automation
        • AI Credits
        • AI Credit Limits
      • Multi-org Accounts
        • Organization Groups
      • Guides
      • Workload Identity Federation
    • Disaster Recovery
      • Recommended Settings for DNS Failover
    • Data Security
      • Agent
      • Cloud SIEM
      • Kubernetes
      • Log Management
      • Real User Monitoring
      • Synthetic Monitoring
      • Tracing
      • PCI Compliance
      • HIPAA Compliance
      • Data Retention Periods
      • Guides
    • Help

Datadog Docs

Essentials

  • Getting Started
    • Agent
    • API
    • APM Tracing
    • Containers
    • Dashboards
    • Database Monitoring
    • Datadog
    • Datadog Site
    • DevSecOps
    • Incident Management
    • Integrations
    • Internal Developer Portal
    • Logs
    • Monitors
    • Notebooks
    • OpenTelemetry
    • Profiler
    • Search
    • Session Replay
    • Security
    • Serverless for AWS Lambda
    • Software Delivery
    • Synthetic Monitoring and Testing
    • Tags
    • Teams
    • Workflow Automation
    • Access for Enterprises
    • Learning Center
    • Support
  • Glossary
    • Standard Attributes
      • Guides
        • Agent
          • Architecture
          • IoT
          • Supported Platforms
          • Log Collection
          • Configuration
          • Fleet Automation
          • Troubleshooting
          • Guides
          • Data Security
        • Integrations
          • Guides
        • Client SDKs
          • Setup
          • Advanced Configuration
          • Data Collected
          • Integrated Libraries
          • Troubleshooting
        • Extend Datadog
          • Authorization
          • DogStatsD
          • Custom Checks
          • Integrations
          • Service Checks
          • Community
          • Guides
        • OpenTelemetry
          • Getting Started
          • Feature Compatibility
          • Instrument Your Applications
          • Send Data to Datadog
          • Semantic Mapping
          • Ingestion Sampling
          • Correlate Data
          • Integrations
          • Fleet Automation
          • Troubleshooting
          • Guides and Resources
          • Reference
        • Administrator's Guide
          • Getting Started
          • Plan
          • Build
          • Run
        • API
          • Command Line
            • MCP Server
              • Setup
              • MCP Tools
              • Code Execution
            • Partners
              • Datadog Mobile App
                • Enterprise Configuration
                • Datadog for Intune
                • Shortcut Configurations
                • Push Notifications
                • Widgets
                • Guides
              • DDSQL Reference
                • Data Directory
              • Remote Configuration
                • Cloudcraft (Standalone)
                  • Getting Started
                  • Account Management
                  • Components: Common
                  • Components: Azure
                  • Components: AWS
                  • Advanced
                  • FAQ
                  • API

                In The App

                • Dashboards
                  • Configure
                  • Dashboard List
                  • Widgets
                  • Querying
                  • Functions
                  • Graph Insights
                  • Template Variables
                  • Overlays
                  • Annotations
                  • Guides
                  • Sharing
                • Notebooks
                  • Analysis Features
                  • Markdown Format
                  • API Guide
                  • Guides
                • DDSQL Editor
                  • Reference Tables
                    • Sheets
                      • Functions and Operators
                      • Guides
                    • Monitors and Alerting
                      • Draft Monitors
                      • Configure Monitors
                      • Monitor Templates
                      • Monitor Types
                      • Notifications
                      • Downtimes
                      • Manage Monitors
                      • Monitor Status
                      • Monitor Settings
                      • Monitor Quality
                      • Guides
                    • Service Level Objectives
                      • Monitor-based SLOs
                      • Metric-based SLOs
                      • Time Slice SLOs
                      • Error Budget Alerts
                      • Burn Rate Alerts
                      • Guides
                    • Metrics
                      • Custom Metrics
                      • OpenTelemetry Metrics
                      • Metrics Types
                      • Distributions
                      • Overview
                      • Explorer
                      • Catalog
                      • Advanced Filtering
                      • Nested Queries
                      • Reference Table Joins with Metrics
                      • Derived Metrics
                      • Metrics Without Limits™
                      • Guides
                    • Watchdog
                      • Alerts
                      • Impact Analysis
                      • RCA
                      • Insights
                      • Faulty Deployment Detection
                      • Faulty Cloud & SaaS API Detection
                    • Bits AI
                      • Bits Agent Builder
                      • Bits Autonomous Operations
                      • Bits Chat
                      • Bits Code
                      • Bits Data Analysis
                      • Bits Database Optimization
                      • Bits Live Debugger
                      • Bits Maintenance
                      • Bits Release
                      • Bits Security Analyst
                      • Bits AI Settings
                    • Internal Developer Portal
                      • Catalog
                      • Scorecards
                      • Self-Service Actions
                      • Engineering Reports
                      • Homepage
                      • Campaigns
                      • External Provider Status
                      • Integrations
                      • Use Cases
                      • Onboarding Guide
                    • Error Tracking
                      • Explorer
                      • Issue States
                      • Regression Detection
                      • Suspected Causes
                      • Error Grouping
                      • Bits Investigation
                      • Monitors
                      • Identify Suspect Commits
                      • Auto Assign
                      • Issue Team Ownership
                      • Track Browser and Mobile Errors
                      • Track Backend Errors
                      • Manage Data Collection
                      • Ticketing Systems
                      • Link Pull Requests
                      • Troubleshooting
                      • Guides
                    • Change Tracking
                      • Change Types
                    • Event Management
                      • Ingest Events
                      • Pipelines and Processors
                      • Explorer
                      • Triage Inbox
                      • Correlation
                      • Guides

                    Incident Response

                    • Incident Management
                      • Incident Investigation
                      • Setup and Configuration
                      • Post Incident
                      • Analytics and Reporting
                      • Integrations
                      • Guides
                    • On-Call
                      • Onboard a Team
                      • Pages
                      • Routing Rules
                      • Escalation Policies
                      • Schedules
                      • Handover automation
                      • Notification Preferences
                      • Analytics
                      • Integrations
                      • Guides
                    • Status Pages
                      • Components
                      • Notices
                      • Notice Templates
                      • Subscriptions
                    • Work Management
                      • Projects
                      • Create a Work Item
                      • Customization
                      • View and Manage Work Items
                      • Notifications and Integrations
                      • Work Item Automation Rules
                      • Work Item Approvals
                      • AI Tools
                      • Troubleshooting

                    Actions & Remediations

                    • Bits Agent Builder
                      • Improve agents using traces
                    • Workflow Automation
                      • Build Workflows
                      • Access and Authentication
                      • Trigger Workflows
                      • Variables and parameters
                      • Actions
                      • Save and Reuse Actions
                      • Test and Debug
                      • Expressions
                      • Track Workflows
                      • Limits
                      • MCP Tools
                    • Apps
                      • Embed Apps
                    • App Builder
                      • Build Apps
                      • Access and Authentication
                      • Queries
                      • Variables
                      • Events
                      • Components
                      • JavaScript Expressions
                      • Embed App Builder Apps
                      • Save and Reuse Actions
                    • Datastores
                      • Create and Manage Datastores
                      • Use Datastores with Apps and Workflows
                      • Automation Rules
                      • Access and Authentication
                    • Forms
                      • Components
                      • Responses
                      • Guides
                    • Action Catalog
                      • Connections
                      • Execution Policies
                      • Private Actions

                    Infrastructure

                    • Cloudcraft
                      • Overlays
                    • Resource Catalog
                      • Cloud Resources Schema
                      • Policies
                      • Resource Changes
                    • Universal Service Monitoring
                      • Setup
                      • Guides
                    • End User Device Monitoring
                      • Setup
                    • Hosts
                      • Host List
                    • Containers
                      • Container Monitoring
                      • Autoscaling
                      • Docker-based
                      • Kubernetes
                      • Cluster Agent
                      • Amazon ECS
                      • Datadog Operator
                      • Troubleshooting
                      • Guides
                    • Processes
                      • Increase Process Retention
                    • Serverless
                      • AWS
                      • Azure
                      • Google
                      • Libraries & Integrations
                      • Glossary
                      • Guides
                    • Network Monitoring
                      • Cloud Network Monitoring
                      • DNS Monitoring
                      • Network Device Monitoring
                      • NetFlow Monitoring
                      • Network Path
                      • L1 to L7 Map
                    • Storage Management
                      • Amazon S3
                      • Google Cloud Storage
                      • Azure Blob Storage

                    Cloud Cost

                    • Cloud Cost
                      • Datadog Costs
                      • Setup
                      • Tags
                      • Allocation
                      • AI Costs
                      • Reporting
                      • Recommendations
                      • Planning
                      • Cost Changes
                      • Cloud Cost Skill

                    Application Performance

                    • APM
                      • APM Terms and Concepts
                      • Application Instrumentation
                      • APM Metrics Collection
                      • Trace Pipeline Configuration
                      • Correlate Traces with Other Telemetry
                      • Trace Explorer
                      • Recommendations
                      • Code Origin for Spans
                      • Service Observability
                      • Endpoint Observability
                      • Live Debugger
                      • Error Tracking
                      • Data Security
                      • Guides
                      • Troubleshooting
                    • Continuous Profiler
                      • Enabling the Profiler
                      • Profile Types
                      • Profile Visualizations
                      • Investigate Slow Traces or Endpoints
                      • Compare Profiles
                      • Automated Analysis
                      • Profiler Troubleshooting
                      • Guides
                    • Database Monitoring
                      • Set Up DBM
                      • Data Collected
                      • Explore DBM
                      • Connecting DBM and Traces
                      • Database Investigations in Bits Chat
                      • Bits Database Optimization
                      • Database Monitoring Workbench
                      • Database Monitoring PR Reviews
                      • Role Observability
                      • Troubleshooting
                      • Guides
                    • Data Streams Monitoring
                      • Setup
                      • Kafka Console
                      • Schema Tracking
                      • Dead Letter Queues
                      • Metrics and Tags

                    Data Observability

                    • Data Observability Overview
                      • Data Catalog
                        • Lineage
                          • Quality Monitoring
                            • Data Warehouses
                            • Data Lakes
                            • Transactional Databases
                            • ELT Integrations
                            • Business Intelligence Integrations
                            • Monitors
                            • Guides
                          • Jobs Monitoring
                            • Databricks
                            • Airflow
                            • dbt
                            • Spark on Kubernetes
                            • Spark on Amazon EMR
                            • Spark on Google Dataproc
                            • AWS Glue
                            • Azure Data Factory
                            • Custom Jobs (OpenLineage)
                            • Monitors
                          • CI/CD
                            • Integration Overhead

                              Digital Experience

                              • Journey Monitoring
                                • Configure Journeys
                                • Suggested Journeys
                                • Variants
                                • Journey Overview Page
                                • Map
                                • Status
                                • Details Report
                                • Roles and Permissions
                              • Real User Monitoring
                                • Application Monitoring
                                • Platform
                                • Exploring RUM Data
                                • Correlate RUM with Other Telemetry
                                • Feature Flag Tracking
                                • Error Tracking
                                • Bits in RUM
                                • RUM Without Limits
                                • Operations Monitoring
                                • Managed Archive
                                • Export Pipelines
                                • Ownership of Views
                                • Remote Configuration
                                • Guides
                                • Data Security
                              • Synthetic Testing and Monitoring
                                • API Testing
                                • Multistep API Testing
                                • Browser Testing
                                • Network Path Testing
                                • Mobile Application Testing
                                • Test Suites
                                • Bits Testing
                                • Goal-Based Testing
                                • Platform
                                • Exploring Synthetics Data
                                • Guides
                                • Notifications
                                • Troubleshooting
                                • Data Security
                              • Continuous Testing
                                • Local and Staging Environments
                                • CI/CD Integrations
                                • Settings
                                • Results Explorer
                                • Metrics
                                • Guides
                                • Troubleshooting
                              • Experiments
                                • Create Experiment Metrics
                                • Standardize Experiments with Protocols
                                • Plan and Launch Experiments
                                • Experiment Approvals
                                • Read Experiment Results
                                • Experiment Diagnostics
                                • Concepts
                                • Statistics
                                • Break Out Metrics by Property
                                • Troubleshooting
                                • Experiments MCP Tools
                                • Guides
                              • Product Analytics
                                • Charts
                                • Dashboards
                                • Segments
                                • Action Management
                                • Managing Profiles
                                • Tracking Plans
                                • Data Collected
                                • Export Pipelines
                                • Usability
                                • Guides
                                • Troubleshooting
                              • Session Replay
                                • Setup
                                • Privacy Options
                                • Developer Tools
                                • Playlists
                                • Heatmaps
                                • Impact on App Performance
                                • Troubleshooting
                                • Guides

                              Software Delivery

                              • CI/CD Optimization
                                • CI Visibility
                                • Test Optimization
                                • Explorer
                                • Features
                                • Monitors
                                • Guides
                                • Troubleshooting
                              • CD Visibility
                                • Deployment Visibility
                                • Explore Deployments
                                • Features
                                • Monitors
                              • Deployment Gates
                                • Setup
                              • Code Coverage
                                • Setup
                                • Configuration
                                • Coverage Calculation
                                • Monorepo Support
                                • Flags
                                • Carryforward
                                • Data Collected
                                • Dashboards
                              • PR Gates
                                • Setup
                              • Delivery Performance
                                • DORA Metrics
                                • AI Impact
                              • Feature Flags
                                • Client SDKs
                                • Server SDKs
                                • Concepts
                                • Use Cases
                                • Implementation Patterns
                                • Browser Developer Extension
                                • MCP Server
                                • Guides

                              Developer Integrations

                              • Source Code Integration
                                • Source Code Management Providers
                                • Service Mapping
                                • Resource Mapping
                                • Code Snippets and Context Links
                                • PR Comments
                              • IDE Plugins
                                • JetBrains IDEs
                                • VS Code & Cursor

                              Security

                              • Security Overview
                                • Detection Rules
                                • Notifications
                                • Suppressions
                                • Automation Pipelines
                                • Security Inbox
                                • Remediation Inbox
                                • Threat Intelligence
                                • Events Forwarding
                                • Audit Trail
                                • Access Control
                                • Ticketing Integrations
                                • Assignee Management
                                • Research Feed
                                • Severity Adjustment
                                • Security MCP Tools
                                • Guides
                              • Cloud SIEM
                                • Ingest and Enrich
                                • Detect and Monitor
                                • Triage and Investigate
                                • Respond and Report
                                • Guides
                                • Data Security
                              • Code Security
                                • Static Code Analysis (SAST)
                                • Software Composition Analysis (SCA)
                                • Secret Scanning
                                • Runtime Code Analysis (IAST)
                                • Infrastructure as Code (IaC) Security
                                • Prioritize Findings with Runtime Context
                                • Developer Tool Integrations
                                • Troubleshooting
                                • Guides
                              • Cloud Security
                                • Setup
                                • Security Graph
                                • Misconfigurations
                                • Identity Risks
                                • Vulnerabilities
                                • Crown Jewels
                                • OOTB Rules
                                • Triage and Prioritize
                                • Review and Remediate
                                • Code Locations
                                • Guides
                                • Troubleshooting
                              • App and API Protection
                                • Terms and Concepts
                                • How It Works
                                • Setup
                                • API Posture
                                • Threat Protection
                                • Attack Summary
                                • Guides
                                • Troubleshooting
                              • AI Guard
                                • Set Up AI Guard
                                • Manage Policies
                                • Redact Sensitive Data
                                • Control Evaluations in Code
                                • Triage and Investigate Signals
                              • Workload Protection
                                • Setup
                                • Detect and Monitor
                                • Investigate and Triage
                                • Respond to Threats
                                • Coverage
                                • Guides
                                • Troubleshooting
                              • Sensitive Data Scanner
                                • Setup
                                • Scanning Rules
                                • Guides
                                • Troubleshooting
                              • Data Security
                                • Setup
                                • Findings

                              AI Observability

                              • Agent Observability
                                • Quickstart
                                • Build with AI
                                • Instrument
                                • Investigate
                                • Improve
                                • Configure
                                • Data Governance
                                • Lapdog
                                • Guides
                              • GPU Monitoring
                                • Setup
                                • Summary
                                • Explorer
                                • Capacity Planning
                                • Training
                                • Inference
                                • Continuous Tracing
                                • MCP Tools
                              • Agent Console
                                • Setup
                              • AI Gateway
                                • Get Started
                                • Connect Providers
                                • Send Requests
                                • Connect Applications
                                • Route Requests
                                • Control Model Access
                                • Control Spend and Usage
                                • Security and Data Capture
                                • Observe AI Gateway Activity
                                • Best practices
                                • Troubleshooting

                              Log Management

                              • Observability Pipelines
                                • Configuration
                                • Sources
                                • Processors
                                • Destinations
                                • Packs
                                • Replay
                                • Log Anomaly Detection
                                • Search Syntax
                                • Scaling and Performance
                                • Monitoring and Troubleshooting
                                • Guides and Resources
                              • Log Management
                                • Log Collection & Integrations
                                • Log Configuration
                                • Log Explorer
                                • Error Tracking
                                • Reports
                                • Migration
                                • Guides
                                • Data Security
                                • Troubleshooting
                              • BYOC Logs
                                • Introduction
                                • Quickstart
                                • Install
                                • Ingest
                                • Configure
                                • Operate
                                • Guides
                                • Release Notes

                              Administration

                              • Account Management
                                • Organization Topology
                                • Switching Between Orgs
                                • Organization Settings
                                • Access Control
                                • SSO with SAML
                                • Delete Data
                                • SCIM
                                • API and Application Keys
                                • Personal Access Tokens
                                • Service Access Tokens
                                • Teams
                                • Governance Console
                                • Multi-Factor Authentication
                                • Audit Trail
                                • Safety Center
                                • Plan & Usage
                                • Billing
                                • Multi-org Accounts
                                • Guides
                                • Workload Identity Federation
                              • Disaster Recovery
                                • Recommended Settings for DNS Failover
                              • Data Security
                                • Agent
                                • Cloud SIEM
                                • Kubernetes
                                • Log Management
                                • Real User Monitoring
                                • Synthetic Monitoring
                                • Tracing
                                • PCI Compliance
                                • HIPAA Compliance
                                • Data Retention Periods
                                • Guides
                              • Help

                                Set Up Code Coverage

                                Docs  >  Code Coverage  >  Set Up Code Coverage
                                This product is not supported for your selected Datadog site. ().

                                Setting up Code Coverage involves the following steps:

                                1. Configure the integration with your source code provider in the Datadog UI.
                                2. Configure code coverage data access permissions in Datadog.
                                3. Optionally, configure a PR Gate to block pull requests based on coverage thresholds.
                                4. Update your CI pipeline to upload code coverage reports to Datadog.

                                Integrate with source code provider

                                Code Coverage supports the following:

                                  Follow instructions in the GitHub integration documentation on how to connect your GitHub repositories to Datadog.

                                  Code Coverage requires the following GitHub App permissions:

                                  PermissionAccess LevelPurpose
                                  ContentsReadShow source code in the detailed coverage UI.
                                  Pull RequestsWriteShow PR data in coverage UI and write PR comments.
                                  ChecksWriteCreate coverage PR Gates.

                                  The following webhooks are required:

                                  WebhookPurpose
                                  Pull requestReceive PR data updates.
                                  Pull request reviewReceive PR data updates.
                                  Pull request review commentReceive PR data updates.
                                  PushReceive Git commit metadata.

                                  If everything is configured correctly, a green check mark is displayed in Datadog’s GitHub Integration page:

                                  If you have a Datadog-managed Marketplace App or a custom app with default settings, the required permissions and webhooks are included.

                                  Follow instructions in the GitLab Source Code integration documentation on how to connect your GitLab repositories to Datadog.

                                  See Datadog Source Code Integration Guide for additional context.

                                  Follow instructions in the Datadog Source Code Integration Guide on how to connect your Azure DevOps repositories to Datadog using Azure DevOps Source Code integration.

                                  The integration supports only Bitbucket Cloud repositories and requires a Bitbucket Cloud Premium workspace. Bitbucket Server and Data Center are not supported.

                                  Install Datadog’s Bitbucket Source Code integration to connect to your Bitbucket repositories. Use the integration tile or install the integration during onboarding for other Datadog products.

                                  See Data Collected for details on what data is collected from your source code provider.

                                  Data access permissions

                                  If you are using custom roles rather than Datadog-managed roles, be sure to enable the Code Coverage Read permission for the roles that need to view code coverage data.

                                  Navigate to Roles settings, click Edit on the role you need, add the Code Coverage Read permission to the role, and save the changes.

                                  For more granular control, use Data Access Control to restrict code coverage data by repository rather than across your entire organization. This prevents sensitive information in coverage reports, such as source paths and test names, from crossing team boundaries.

                                  In Datadog, go to Organization Settings > Data Access Control and create a Restricted Dataset scoped to Software Delivery and the repository you want to restrict. Grant access to the roles or teams that should see it.

                                  PR Gates

                                  If you wish to gate on PR coverage, you can configure PR Gates rules in one of two ways:

                                  • Datadog UI: Navigate to PR Gates rule creation and configure a rule to gate on total or patch coverage.
                                  • YAML configuration file: Define gates in your code-coverage.datadog.yml file. This allows you to manage gates as code alongside your repository.

                                  Rules from both sources are evaluated when a pull request is opened or updated. See Configuration for YAML gate syntax and examples.

                                  Upload code coverage reports

                                  Upload code coverage report files to Datadog either automatically, with a supported Test Optimization library, or manually, by running the datadog-ci CLI in your CI environment.

                                  See Data Collected for details on what data is collected during code coverage report upload.

                                  Upload reports automatically with Test Optimization

                                  Supported libraries and versions

                                  Automatic code coverage report upload is supported in the following Test Optimization library versions:

                                  LibraryFirst supported versionCoverage source
                                  Ruby datadog-ci1.27.0SimpleCov
                                  JavaScript dd-trace 5.x5.85.0Jest, Vitest, or NYC coverage
                                  JavaScript dd-trace 6.x6.0.0Jest, Vitest, or NYC coverage
                                  Python ddtrace4.4.0Default pytest plugin using coverage.py
                                  Java dd-java-agent1.53.0JaCoCo

                                  These version requirements apply only to automatic uploads by Test Optimization libraries.

                                  Enable automatic uploads

                                  You can apply the Code Coverage setting at the organization, repository, or test service level.

                                  1. Complete the Test Optimization setup for your library.

                                  2. Upgrade to a supported library version.

                                  3. Turn on Code Coverage in CI/CD Optimization settings.

                                  4. Run a test command that produces a coverage report from the source listed in Supported libraries and versions.

                                  The library uploads the report to Datadog after the command finishes.

                                  To organize and filter reports uploaded by the library, see Add flags to automatically uploaded reports, which lists the libraries and versions that support DD_CODE_COVERAGE_FLAGS.

                                  Supported coverage report formats

                                  Datadog supports the following coverage data formats—expand for examples:

                                  LCOV

                                  TN:
                                  SF:src/example.c
                                  FN:3,add
                                  FNDA:5,add
                                  FNF:1
                                  FNH:1
                                  DA:3,5
                                  DA:4,5
                                  DA:5,5
                                  DA:8,0
                                  DA:9,0
                                  LF:5
                                  LH:3
                                  BRDA:4,0,0,5
                                  BRDA:4,0,1,0
                                  BRF:2
                                  BRH:1
                                  end_of_record

                                  Go Coverprofile

                                  mode: atomic
                                  example/calculator.go:51.148,53.2 1 0
                                  example/calculator.go:55.190,61.15 3 0
                                  example/calculator.go:61.15,64.3 2 0
                                  example/calculator.go:66.2,67.16 2 0
                                  example/calculator.go:67.16,69.3 1 0
                                  example/clients/api_client.go:27.87,31.2 3 2
                                  example/clients/api_client.go:34.85,36.2 1 3
                                  example/clients/api_client.go:39.126,44.2 4 3
                                  example/clients/api_client.go:47.106,50.2 2 3
                                  example/notifications/notifier.go:49.79,51.2 1 3
                                  example/notifications/notifier.go:60.33,69.2 1 0
                                  example/notifications/notifier.go:79.131,86.15 3 2
                                  example/notifications/notifier.go:104.3,104.10 1 3

                                  Cobertura XML

                                  <?xml version="1.0" encoding="UTF-8"?>
                                  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
                                  <coverage lines-valid="5" lines-covered="3" line-rate="0.6" branches-valid="2" branches-covered="1" branch-rate="0.5" timestamp="1690658886" version="1.9">
                                    <sources>
                                      <source>src</source>
                                    </sources>
                                    <packages>
                                      <package name="example" line-rate="0.6" branch-rate="0.5">
                                        <classes>
                                          <class name="Example" filename="example/Example.java" line-rate="0.6" branch-rate="0.5">
                                            <methods>
                                              <method name="add" signature="(II)I" line-rate="1.0" branch-rate="1.0">
                                                <lines>
                                                  <line number="3" hits="5"/>
                                                  <line number="4" hits="5" branch="true" condition-coverage="50% (1/2)"/>
                                                  <line number="5" hits="5"/>
                                                </lines>
                                              </method>
                                            </methods>
                                            <lines>
                                              <line number="3" hits="5"/>
                                              <line number="4" hits="5" branch="true" condition-coverage="50% (1/2)"/>
                                              <line number="5" hits="5"/>
                                              <line number="8" hits="0"/>
                                              <line number="9" hits="0"/>
                                            </lines>
                                          </class>
                                        </classes>
                                      </package>
                                    </packages>
                                  </coverage>

                                  Jacoco XML

                                  <?xml version="1.0" encoding="UTF-8"?>
                                  <report name="Example">
                                    <sessioninfo id="SessionId" start="1690658886000" dump="1690658887000"/>
                                    <package name="example">
                                      <sourcefile name="Example.java">
                                        <line nr="3" mi="0" ci="5"/>
                                        <line nr="4" mi="0" ci="5" mb="1" cb="1"/>
                                        <line nr="5" mi="0" ci="5"/>
                                        <line nr="8" mi="1" ci="0"/>
                                        <line nr="9" mi="1" ci="0"/>
                                      </sourcefile>
                                    </package>
                                  </report>

                                  Clover XML

                                  <coverage generated="1661852015">
                                      <project timestamp="1661852015">
                                          <file name="/var/www/html/src/App/Console/CronjobRunnerCommand.php">
                                              <class name="App\Console\CronjobRunnerCommand" namespace="global">
                                                  <metrics complexity="3" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="0" elements="7" coveredelements="0"/>
                                              </class>
                                              <line num="18" type="method" name="__construct" visibility="public" complexity="1" crap="2" count="0"/>
                                              <line num="20" type="stmt" count="1"/>
                                              <line num="27" type="stmt" count="0"/>
                                              <line num="30" type="method" name="execute" visibility="protected" complexity="1" crap="2" count="0"/>
                                              <line num="32" type="stmt" count="0"/>
                                              <metrics loc="35" ncloc="35" classes="1" methods="3" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="4" coveredstatements="0" elements="7" coveredelements="0"/>
                                          </file>
                                          <file name="/var/www/html/src/App/Console/CronjobRunnerCommand2.php">
                                              <line num="42" type="stmt" count="1"/>
                                          </file>
                                      </project>
                                  </coverage>

                                  OpenCover XML

                                  <?xml version="1.0" encoding="utf-8"?>
                                  <CoverageSession xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                                    <Modules>
                                      <Module hash="ABC123">
                                        <ModulePath>Example.dll</ModulePath>
                                        <Files>
                                          <File uid="1" fullPath="src\example\Example.cs" />
                                        </Files>
                                        <Classes>
                                          <Class>
                                            <Methods>
                                              <Method visited="true" cyclomaticComplexity="1" sequenceCoverage="100">
                                                <FileRef uid="1"/>
                                                <SequencePoints>
                                                  <SequencePoint vc="5" sl="3" />
                                                  <SequencePoint vc="5" sl="4" />
                                                  <SequencePoint vc="5" sl="5" />
                                                  <SequencePoint vc="0" sl="9" />
                                                </SequencePoints>
                                                <BranchPoints>
                                                  <BranchPoint vc="5" sl="4" path="0"/>
                                                  <BranchPoint vc="0" sl="4" path="1"/>
                                                </BranchPoints>
                                              </Method>
                                            </Methods>
                                          </Class>
                                        </Classes>
                                      </Module>
                                    </Modules>
                                  </CoverageSession>

                                  Simplecov JSON

                                  {
                                    "meta": {
                                      "simplecov_version": "0.21.2"
                                    },
                                    "coverage": {
                                      "/path/to/file1.rb": {
                                        "lines": [
                                          null,
                                          1,
                                          2,
                                          0,
                                          null,
                                          1,
                                          null,
                                          null,
                                          null,
                                          "ignored",
                                          "ignored",
                                          "ignored",
                                          null
                                        ],
                                        "branches": []
                                      },
                                      "/path/to/file2.rb": {
                                        "lines": [1, 1, null, 0, 1],
                                        "branches": []
                                      }
                                    }
                                  }

                                  Install the datadog-ci CLI

                                  If you use GitHub Actions, you can skip this installation step. The GitHub Actions upload method below uses a dedicated action that handles datadog-ci installation automatically.

                                  Standalone binaries are provided with Datadog CI releases. The linux-x64, linux-arm64, darwin-x64, darwin-arm64 (macOS), and win-x64 (Windows) architectures are supported. To install, run the following from your terminal:

                                    curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci

                                    Then run any command with datadog-ci:

                                    datadog-ci version
                                    curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_darwin-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci

                                    Then run any command with datadog-ci:

                                    datadog-ci version
                                    Invoke-WebRequest -Uri "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_win-x64" -OutFile "datadog-ci.exe"

                                    Then run any command with Start-Process -FilePath "datadog-ci.exe":

                                    Start-Process -FilePath "./datadog-ci.exe" -ArgumentList version

                                    npm

                                    Alternatively, if Node.js is available in your CI environment, install the datadog-ci CLI globally using npm:

                                    npm install -g @datadog/datadog-ci

                                    Docker image

                                    Alternatively, you can update your CI job to run in a container based on the Datadog CI Docker image. The image comes with datadog-ci preinstalled and ready to use.

                                    Uploading coverage reports

                                    Datadog automatically aggregates all reports for the same commit on the backend. You don't need to merge coverage reports before uploading them.

                                    To upload your code coverage reports to Datadog, run the following command. Provide a valid Datadog API key (DD_API_KEY), and one or more file paths to either the coverage report files directly or directories containing them:

                                      Use the Datadog Code Coverage Upload GitHub Action. This action automatically installs and runs datadog-ci, so no additional setup is required:

                                      
                                      steps:
                                      - name: Upload coverage reports to Datadog
                                        uses: DataDog/coverage-upload-github-action@v1
                                        with:
                                          api_key: ${{ secrets.DD_API_KEY }}
                                          site: 
                                      
                                      

                                      Alternatively, if you have datadog-ci installed, you can run it directly:

                                      
                                      steps:
                                      - name: Upload coverage reports to Datadog
                                        run: datadog-ci coverage upload .
                                        env:
                                          DD_API_KEY: ${{ secrets.DD_API_KEY }}
                                          DD_SITE: 
                                      
                                      
                                      
                                      test:
                                        stage: test
                                        script:
                                          - ... # run your tests and generate coverage reports
                                          - datadog-ci coverage upload . # make sure to add the DD_API_KEY CI/CD variable
                                      
                                      
                                      - script: datadog-ci coverage upload --format=clover coverage/clover.xml displayName: 'Upload coverage to Datadog' env: DD_API_KEY: $(DD_API_KEY) DD_SITE: 'datadoghq.com'

                                      The command recursively searches the specified directories for supported coverage report files, so specifying the current directory (.) is usually sufficient. See the datadog-ci documentation for more details on the datadog-ci coverage upload command.

                                      Shortly after the code coverage report upload is finished, Datadog adds a PR comment with code coverage percentage values. To add a per-file breakdown of total and patch coverage to the comment, see PR Comments. To annotate uncovered lines directly on the pull request diff, see Inline annotations. You can also view your coverage data aggregated by pull request in the Code Coverage page in Datadog, with the ability to examine individual files and lines of code.

                                      Troubleshooting

                                      Coverage upload command does not detect coverage report files

                                      The datadog-ci coverage upload command automatically detects supported coverage report files in the specified directories using heuristics, such as file names and extensions. If your coverage report files do not match expected patterns, the command might not detect them automatically. In this case, specify the report format and provide the file paths as positional arguments. For example:

                                      datadog-ci coverage upload --format=lcov \
                                        src/coverage-reports/unit-tests/coverage.info \
                                        src/coverage-reports/e2e-tests/coverage.info

                                      Coverage upload fails with “Format could not be detected” error

                                      The datadog-ci coverage upload command automatically detects the format of the coverage report files based on their content and file extension. If the command fails with the following error:

                                      Invalid coverage report file [...]: format could not be detected
                                      

                                      specify the format explicitly using the --format option, like this:

                                      datadog-ci coverage upload --format=cobertura reports/cobertura.xml

                                      Coverage upload outputs “Could not sync git metadata” error

                                      Git metadata upload is only required if you can’t integrate your CI provider directly with Datadog. If you are using a source code provider integration, such as Datadog GitHub app or GitLab integration, you can disable the git metadata upload by passing the --skip-git-metadata-upload=1 flag to the datadog-ci coverage upload command, like this:

                                      datadog-ci coverage upload --skip-git-metadata-upload=1 .

                                      Datadog UI does not show changed files in the PR view

                                      By default, the “Changed files” table only contains executable source code files that are present in the uploaded coverage reports. Select Non-executable files or All in the table header to display all files that were changed in the PR, regardless of whether they are executable or not.

                                      If a source code file is mistakenly marked as non-executable, it is probably missing from your uploaded coverage reports. Make sure that you are uploading all of your relevant reports, and double-check your coverage tool configuration to verify that coverage data is collected for all applicable files.

                                      Test sources are not considered executable files as they are not part of the production codebase being measured for coverage.

                                      Datadog UI shows incorrect file paths

                                      Code Coverage relies on the file paths in coverage reports to be either absolute or relative to the repository root. If the paths in your report are relative to a different directory in your repository, specify the correct base path (relative to the repo root) with the --base-path option when running the datadog-ci coverage upload command, like this:

                                      datadog-ci coverage upload --base-path=frontend/src .

                                      Inaccurate coverage from non-executable lines

                                      Some coverage tools include non-executable lines (such as comments, blank lines, and closing brackets) in their reports, counting them as uncovered. This can lower your coverage percentages and produce false negatives for lines that can never be executed.

                                      During upload, the CLI automatically scans your source files to identify these non-executable lines so they can be excluded from coverage calculations.

                                      File fixes support the following languages: Go, Kotlin, C/C++, Swift, Objective-C, and PHP.

                                      You can control this behavior with the following options:

                                      • --disable-file-fixes: Disable file fixes generation entirely.
                                      • --file-fixes-search-path <dir>: Override the root directory used to scan source files. By default, the repository root is used. This is useful in monorepos or when your coverage reports only cover a subset of the codebase, as it speeds up the scan by limiting the directory tree traversed.

                                      Discrepancy between Datadog UI and coverage report values

                                      Datadog automatically merges coverage reports for the same commit. As a result, the coverage percentage displayed in the Datadog UI may differ from the values in your individual coverage reports, especially if those reports contain overlapping or duplicate source code file entries.

                                      If you use an external tool (such as ReportGenerator) to merge coverage reports before uploading to Datadog, ensure your merged reports do not contain duplicate source code file entries. Datadog deduplicates overlapping files across reports, which can result in differences between your original coverage values and the merged values displayed in the Datadog UI.

                                      For a description of how reports are merged and how each line status is counted, see Code Coverage Calculation.

                                      Further reading

                                      Additional helpful documentation, links, and articles:

                                      Code CoverageDOCUMENTATION Configure Code CoverageDOCUMENTATION Organize coverage data with flagsDOCUMENTATION Learn what data is collected for Code CoverageDOCUMENTATION Learn how Code Coverage supports large monoreposDOCUMENTATION

                                      Language

                                      English Français 日本語 한국어 Español

                                      Datadog Site

                                      Site help
                                      US1 US3 US5 EU AP1 AP2 UK1 US1-FED US2-FED
                                      Edit
                                      CopyCopied

                                      On this Page

                                      You are visitor 01402775 — GeezerVison does not store the pages you look up.
                                      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.