YonatanKiron commented on issue #35036:
URL: https://github.com/apache/airflow/issues/35036#issuecomment-1770177454
Another way to reproduce:
```python
from airflow.stats import Stats
Stats.timing(f"dagrun.duration.success", **{"dt":1000, "tags":{"dag_id":
"bla"}})
Stats.timing(f"dagrun.duration.success", **{"dt":1000, "tags":{"dag_id":
"bla2"}})
Stats.instance.metrics_map.map
#### {'airflow.dagrun.duration.success_dag_id_bla':
Observation(value=1000.0, attributes={'dag_id': 'bla'}),
#### 'airflow.dagrun.duration.success_dag_id_bla2':
Observation(value=1000.0, attributes={'dag_id': 'bla2'})}
```
The debug log will report:
```
{
"resource_metrics": [
{
"resource": {
"attributes": {
"service.name": "Airflow"
},
"schema_url": ""
},
"scope_metrics": [
{
"scope": {
"name": "airflow.metrics.otel_logger",
"version": null,
"schema_url": ""
},
"metrics": [
{
"name": "airflow.dagrun.duration.success",
"description": "",
"unit": "",
"data": {
"data_points": [
{
"attributes": {
"dag_id": "bla"
},
"start_time_unix_nano": 0,
"time_unix_nano":
1697698348843414114,
"value": 1000.0
}
]
}
}
],
"schema_url": ""
}
],
"schema_url": ""
}
]
}
```
So my assumption, is that the issue is value override was wrong and the
issue is somewhere on the reporting part
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]