Skip to content

[AIP-49] Fix task_instance_created metric name#32156

Merged
potiuk merged 1 commit intoapache:mainfrom
aws-mwaa:ferruzzi/otel/fix_task_instance_created
Jun 27, 2023
Merged

[AIP-49] Fix task_instance_created metric name#32156
potiuk merged 1 commit intoapache:mainfrom
aws-mwaa:ferruzzi/otel/fix_task_instance_created

Conversation

@ferruzzi
Copy link
Contributor

@ferruzzi ferruzzi commented Jun 26, 2023

Both StatsD and OTel replace the hyphen in the name with an underscore. A user looking for task_instance_created-<operator_name> would not find it and may not think to look for task_instance_created_<operator_name>. Also updated related test logic and docs to make that more obvious.

Since both metrics backends make this name change behind the scenes anyway, I don't feel thins needs a deprecation period; nothing should visibly change to the user. If someone feels otherwise, I can roll this back and just update the rst file to make it more obvious instead.

image

Both StatsD and OTel replace the hyphen in the name with an underscore.  A user looking for `task_instance_created-<operator_name>` would not find it and may not think to look for `task_instance_created_<operator_name>`.  Also updated related test logic and docs to make that more obvious.
@potiuk potiuk merged commit 8be3494 into apache:main Jun 27, 2023
ferruzzi added a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 27, 2023
Both StatsD and OTel replace the hyphen in the name with an underscore.  A user looking for `task_instance_created-<operator_name>` would not find it and may not think to look for `task_instance_created_<operator_name>`.  Also updated related test logic and docs to make that more obvious.
@ephraimbuddy ephraimbuddy added this to the Airlfow 2.6.3 milestone Jul 6, 2023
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jul 6, 2023
@ephraimbuddy ephraimbuddy added AIP-49 changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:bug-fix Changelog: Bug Fixes labels Jul 6, 2023
@ferruzzi ferruzzi changed the title Fix task_instance_created metric name [AIP-49] Fix task_instance_created metric name Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-49 changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants