You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Google Stackdriver should be renamed to Google Operations #61009
It's been already 5+ years that the Google provider uses the deprecated name "stackdriver", instead of "operations", for its entities (hooks, providers, etc.).
It's a good time to align the relevant entities to the new naming, and deprecate the old ones. Please note that I didn't label this task as a "good first issue", as it needs to be carefully done, to avoid accidental breaking changes.
Hey, thanks for your will to contribute!
Specifically in this issue - I'd rather let someone who's more experienced, as errors here could potentially impact the entire provider.
Nontheless - I'll appreciate some help with other issues labeled as good first issue (maybe try this one).
Thank you for opening this issue. It makes total sense to start introducing these changes to the provider. As you mentioned, we should approach this with caution to avoid breaking workflows.
As a starting point, I’d like to highlight the deprecation policy for the Google provider.
I’ve reviewed the current implementation and found that while no changes are required at the SDK level, we do need to perform several updates within the provider itself.
I suggest the following implementation plan:
Audit Occurrences: Find every occurrence of stackdriver in class names (Operators, Hooks, Links, Log Handlers, etc.).
Service Mapping: Map these classes to their correct modern service: Cloud Logging, Cloud Monitoring, or Cloud Observability.
Module Organization: Create separate modules for different services if they don’t already exist (e.g., airflow.providers.google.cloud.operators.monitoring).
Class Refactoring:
Rename: Update the class names to use proper naming instead of Stackdriver(e.g., rename StackdriverListAlertPoliciesOperator to CloudMonitoringListAlertPoliciesOperator).
Relocate: Move the renamed class to the correct module.
Maintain Backward Compatibility: Create a stub in the original stackdriver module that inherits from the new class using the old name.
Deprecation: Apply the @deprecated decorator to the old class names (use the deprecated decorator from airflow.providers.google.common.deprecated module)
Example Implementation:
fromairflow.exceptionsimportAirflowProviderDeprecationWarningfromairflow.providers.google.common.deprecatedimportdeprecatedfromairflow.providers.google.cloud.operators.monitoringimportCloudMonitoringListAlertPoliciesOperator@deprecated(planned_removal_date="September 30, 2026",use_instead="airflow.providers.google.cloud.operators.monitoring.CloudMonitoringListAlertPoliciesOperator",reason="Stackdriver operators are deprecated. They will be removed on September 30, 2026, ""in favor of their Cloud Monitoring/Observability equivalents.",category=AirflowProviderDeprecationWarning,)classStackdriverListAlertPoliciesOperator(CloudMonitoringListAlertPoliciesOperator):
pass
Update docstrings.
Add/update unit tests (including tests for the deprecation warnings).
Fix system tests.
By following this approach, we ensure that current users encounter no disruptions beyond the deprecation warning. This gives everyone enough time to transition to the new classes.
After the grace period (at least 6 months), we can:
Remove the deprecated classes.
Bump the major version.
Release the updated provider.
I hope this is helpful for anyone looking to implement this change
Thank you for opening this issue. It makes total sense to start introducing these changes to the provider. As you mentioned, we should approach this with caution to avoid breaking workflows.
As a starting point, I’d like to highlight the deprecation policy for the Google provider.
I’ve reviewed the current implementation and found that while no changes are required at the SDK level, we do need to perform several updates within the provider itself.
I suggest the following implementation plan:
Audit Occurrences: Find every occurrence of stackdriver in class names (Operators, Hooks, Links, Log Handlers, etc.).
Service Mapping: Map these classes to their correct modern service: Cloud Logging, Cloud Monitoring, or Cloud Observability.
Module Organization: Create separate modules for different services if they don’t already exist (e.g., airflow.providers.google.cloud.operators.monitoring).
Class Refactoring:
Rename: Update the class names to use proper naming instead of Stackdriver(e.g., rename StackdriverListAlertPoliciesOperator to CloudMonitoringListAlertPoliciesOperator).
Relocate: Move the renamed class to the correct module.
Maintain Backward Compatibility: Create a stub in the original stackdriver module that inherits from the new class using the old name.
Deprecation: Apply the @deprecated decorator to the old class names (use the deprecated class from airflow.providers.google.common.deprecated module)
Example Implementation:
from airflow.exceptions import AirflowProviderDeprecationWarning
from airflow.providers.google.common.deprecated import deprecated
from airflow.providers.google.cloud.operators.monitoring import CloudMonitoringListAlertPoliciesOperator
@deprecated(
planned_removal_date="September 30, 2026",
use_instead="airflow.providers.google.cloud.operators.monitoring.CloudMonitoringListAlertPoliciesOperator",
reason="Stackdriver operators are deprecated. They will be removed on September 30, 2026, "
"in favor of their Cloud Monitoring/Observability equivalents.",
category=AirflowProviderDeprecationWarning,
)
class StackdriverListAlertPoliciesOperator(CloudMonitoringListAlertPoliciesOperator):
pass
Update docstrings.
Add/update unit tests (including tests for the deprecation warnings).
Fix system tests.
By following this approach, we ensure that current users encounter no disruptions beyond the deprecation warning. This gives everyone enough time to transition to the new classes.
After the grace period (at least 6 months), we can:
Remove the deprecated classes.
Bump the major version.
Release the updated provider.
I hope this is helpful for anyone looking to implement this change
Thanks for the detailed comment, including the reference to the deprecation policy and related instructions!
It will be very helpful for the process.
I'll try to take care at least for auditing the occurences so we could proceed from there :)
Activity
SeifEddineMezned commentedon Jan 24, 2026
@shahar1 can i work on this ?
shahar1 commentedon Jan 24, 2026
Hey, thanks for your will to contribute!
Specifically in this issue - I'd rather let someone who's more experienced, as errors here could potentially impact the entire provider.
Nontheless - I'll appreciate some help with other issues labeled as
good first issue(maybe try this one).SeifEddineMezned commentedon Jan 24, 2026
@shahar1 Thank you for your insight, I will work on the issue you suggested
Jasminekaur2005 commentedon Jan 25, 2026
Hi! I opened a small PR that updates Stackdriver wording in docstrings to Cloud Monitoring naming (no functional changes).
molcay commentedon Feb 3, 2026
Hi @shahar1,
Thank you for opening this issue. It makes total sense to start introducing these changes to the provider. As you mentioned, we should approach this with caution to avoid breaking workflows.
As a starting point, I’d like to highlight the deprecation policy for the Google provider.
I’ve reviewed the current implementation and found that while no changes are required at the SDK level, we do need to perform several updates within the provider itself.
I suggest the following implementation plan:
stackdriverin class names (Operators, Hooks, Links, Log Handlers, etc.).airflow.providers.google.cloud.operators.monitoring).Stackdriver(e.g., renameStackdriverListAlertPoliciesOperatortoCloudMonitoringListAlertPoliciesOperator).stackdrivermodule that inherits from the new class using the old name.@deprecateddecorator to the old class names (use thedeprecateddecorator fromairflow.providers.google.common.deprecatedmodule)By following this approach, we ensure that current users encounter no disruptions beyond the deprecation warning. This gives everyone enough time to transition to the new classes.
After the grace period (at least 6 months), we can:
shahar1 commentedon Feb 6, 2026
Thanks for the detailed comment, including the reference to the deprecation policy and related instructions!
It will be very helpful for the process.
I'll try to take care at least for auditing the occurences so we could proceed from there :)
Rename Google Stackdriver operators and hook to Cloud Monitoring
Rename Google Stackdriver operators and hook to Cloud Monitoring (#73354
Rename Google Stackdriver task log handler to Cloud Logging
Rename Google Stackdriver task log handler to Cloud Logging (#73575)