nicolasge opened a new issue, #42210:
URL: https://github.com/apache/airflow/issues/42210

   ### Apache Airflow version
   
   2.10.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   When enabled the OTEL in Airflow, the OTEL_SERVICE_NAME is hardcoded to 
"Airflow".  Based on 
https://opentelemetry.io/docs/languages/sdk-configuration/general/ users should 
be able to overwrite this to any value via environment variable 
OTEL_SERVICE_NAME.
   
   Image code path: 
/home/airflow/.local/lib/python3.12/site-packages/airflow/metrics/otel_logger.py
   Bug line:  resource = Resource(attributes={SERVICE_NAME: "Airflow"})
   
   ### What you think should happen instead?
   
   If user specified OTEL_SERVICE_NAME via environment, airflow use should this 
value instead of hardcoded value which is "Airflow"
   
   ### How to reproduce
   
   During the installation, inject an extra environment OTEL_SERVICE_NAME and 
set the value to a value not equal to Airflow
   
   ### Operating System
   
   Debian 12
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to