sandeepmandal70 commented on issue #49671:
URL: https://github.com/apache/airflow/issues/49671#issuecomment-3294252105

   I’ve implemented the proposed log enhancements by updating the Tableau 
operator to print friendly object names and types alongside the IDs during job 
execution. Specifically, I added four lines of code in  
`/airflow/providers/tableau/operators/tableau.py`  that ensure the Airflow logs 
now display Tableau object details (e.g., Workbook, Datasource names) rather 
than only showing their LUIDs.
   
   
   I’ve tested the changes locally, triggering various Tableau jobs and 
monitoring the resulting logs. The log messages now correctly include the 
object type and human readable name for each operation.
   
   The existing log line (145):
   
       self.log.info("Found matching with id %s", resource_id)
       
   I added the following lines immediately after, without changing any existing 
logic:
   
       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)
   
   These additions enhance the log details by printing:
   
   -   The entire resource object for better visibility,
   -   The human friendly name of the Tableau content,
   -   The folder/project name the content belongs to,
   -   The URL to directly access the content on Tableau Server or Tableau 
Online.
       
   The  `Content URL`  log is especially useful as it provides a clickable link 
(for users with Tableau access) to quickly navigate to the actual Tableau 
content in the web interface, saving time when troubleshooting or validating 
the pipeline execution.
   
   This logging does not alter any behavior or logic; it only enriches 
observability for operators and developers working with Tableau workflows in 
Airflow.
   
   
   Current Logs :
   
   <img width="2638" height="1320" alt="Image" 
src="https://github.com/user-attachments/assets/438091f2-6d29-4166-9c74-99f11eccf4fc";
 />
   
   
   Logs after adding new log items : 
   
   <img width="2686" height="1666" alt="Image" 
src="https://github.com/user-attachments/assets/da64e687-b60e-4608-9e6f-0e8e4175451a";
 />
   
   
   
   **Happy to contribute this improvement! if this looks okay.**
   
   @danielle @eladkal 


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