provider Spans Metrics PATCH /api/v2/apm/config/metrics/{metric_id}
@utdk/datadog /api/v2/apm/config/metrics/{metric_id}
Update a span-based metric
Update a specific span-based metric from your organization. Returns the span-based metric object from the request body when the request is successful.
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.

updatespansmetric
PATCH/api/v2/apm/config/metrics/{metric_id}
Update a specific span-based metric from your organization. Returns the span-based metric object from the request body when the request is successful.

Parameters

required

The name of the span-based metric.

Input

required

The new span-based metric properties.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.updatespansmetric()