You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/07 04:06:49 UTC

[GitHub] [airflow] mik-laj opened a new pull request #10212: [WIP] Disable sentry integration by default

mik-laj opened a new pull request #10212:
URL: https://github.com/apache/airflow/pull/10212


   Hello,
   
   Sentry imports a few libraries when not in use, but just have it installed. Users may not even be aware of this.
   
   Best regards,
   Kamil BreguĊ‚a
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk merged pull request #10212: Disable sentry integration by default

Posted by GitBox <gi...@apache.org>.
potiuk merged pull request #10212:
URL: https://github.com/apache/airflow/pull/10212


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on a change in pull request #10212: Disable sentry integration by default

Posted by GitBox <gi...@apache.org>.
potiuk commented on a change in pull request #10212:
URL: https://github.com/apache/airflow/pull/10212#discussion_r467571020



##########
File path: airflow/sentry.py
##########
@@ -57,135 +57,130 @@ def flush(self):
         """
 
 
-class ConfiguredSentry(DummySentry):
-    """
-    Configure Sentry SDK.
-    """
-
-    SCOPE_TAGS = frozenset(
-        ("task_id", "dag_id", "execution_date", "operator", "try_number")
-    )
-    SCOPE_CRUMBS = frozenset(("task_id", "state", "operator", "duration"))
-
-    UNSUPPORTED_SENTRY_OPTIONS = frozenset(
-        ("integrations", "in_app_include", "in_app_exclude", "ignore_errors",
-         "before_breadcrumb", "before_send", "transport")
-    )
+Sentry: DummySentry = DummySentry()
+if conf.getboolean("sentry", 'sentry_on', fallback=False):
+    import sentry_sdk

Review comment:
       Love it!




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org