sandeepmandal70 opened a new pull request, #56513:
URL: https://github.com/apache/airflow/pull/56513

   
   Linked Issue
   
   Closes: [#49671](https://github.com/apache/airflow/issues/49671)
   
   ### Description
   
   This PR enhances the observability of Tableau workflows by improving logging 
within the TableauOperator.
   
   Previously, Airflow logs only displayed Tableau object LUIDs (IDs) when a 
matching resource was found. This made it difficult for users and developers to 
identify which Tableau content (e.g., workbook, datasource) was being processed 
during execution.
   
   To improve visibility, additional log lines have been added immediately 
after the existing resource ID log message. These new lines display 
user-friendly object details, including resource name, folder/project, and a 
direct URL to the Tableau content on Tableau Server or Tableau Cloud.
   
   
   
   **Before**
   `self.log.info("Found matching with id %s", resource_id)`
   
   **After**
   
   ```
   self.log.info("Found matching with id %s", resource_id)
   self.log.info("Resource object : %s", resource)
   self.log.info("Content Name : %s", resource.name)
   self.log.info("Content Folder : %s", resource.project_name)
   self.log.info("Content URL : %s", resource.webpage_url)
   ```
   
   
   **Benefits**
   
   - Improves log readability by including meaningful Tableau content details.
   - Enables operators and developers to quickly identify which Tableau assets 
are processed during job runs.
   - Provides a direct clickable URL for quick navigation and validation on 
Tableau Server/Cloud.
   - Does not change any existing behavior it only enhances logging output.
   
   
   **Testing Done**
   
   - Tested locally by triggering various Tableau jobs.
   - Verified that logs now display:
   
   > - Resource object details
   > - Content name and project folder
   > - Direct Tableau content URL
   
   - Confirmed that existing functionality and job execution remain unaffected.
   
   This enhancement provides developers and data engineers greater transparency 
during Tableau workflow execution.
   The Content URL in particular enables faster troubleshooting by allowing 
direct access to the corresponding Tableau resource without manually searching 
for it.
   
   
   
   <!-- Please keep an empty line above the dashes. -->
   ---
   **^ Add meaningful description above**
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+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 a 
newsfragment file, named `{pr_number}.significant.rst` or 
`{issue_number}.significant.rst`, in 
[airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
   


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

Reply via email to