provider Spans Metrics GET
/api/v2/apm/config/metrics/{metric_id} @utdk/datadog
/api/v2/apm/config/metrics/{metric_id} Get a span-based metric
Get a specific span-based metric from your organization.
- metric_id path required
- The name of the span-based metric.
- string
Try it
Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import datadog from '@utdk/datadog';
await datadog.getspansmetric()