Describe the bug
The GetMetricMetadata endpoint returns an empty object for a Distribution that was just emitted.
For a Counter metric, the endpoint will return a minimal object with type specified. I expected to have the distribution type provided.
To Reproduce
Steps to reproduce the behavior:
Using the samples from the doc (edit the metric names)
- Emit a distribution point: https://docs.datadoghq.com/api/latest/metrics/?code-lang=go#submit-distribution-points
- Emit a Counter : (edited the metric type to
datadogV2.METRICINTAKETYPE_COUNT.Ptr(): https://docs.datadoghq.com/api/latest/metrics/?code-lang=go#submit-metrics
- Call metric metadata endpoint for the 2 metrics.
- See the outputs:
For the counter:
Response from `MetricsApi.GetMetricMetadata`:
{
"type": "count"
}
For the Distribution:
Response from `MetricsApi.GetMetricMetadata`:
{}
Expected behavior
For the distribution I would expect a distribution type:
Response from `MetricsApi.GetMetricMetadata`:
{
"type": "distribution"
}
Additional context
N/A
Describe the bug
The
GetMetricMetadataendpoint returns an empty object for aDistributionthat was just emitted.For a
Countermetric, the endpoint will return a minimal object withtypespecified. I expected to have thedistributiontype provided.To Reproduce
Steps to reproduce the behavior:
Using the samples from the doc (edit the metric names)
datadogV2.METRICINTAKETYPE_COUNT.Ptr(): https://docs.datadoghq.com/api/latest/metrics/?code-lang=go#submit-metricsFor the counter:
For the Distribution:
Expected behavior
For the distribution I would expect a
distributiontype:Additional context
N/A