cURL
curl --request GET \ --url https://api.opper.ai/v2/spans/{span_id}/metrics/{metric_id} \ --header 'Authorization: Bearer <token>'
{ "dimension": "<string>", "value": 123, "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "span_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z", "comment": "<string>" }
Get a metric for a span
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The id of the span
The id of the metric to get
Successful Response
The dimension of the metric
The value of the metric
A comment about the metric, e.g. a description of the metric