potiuk commented on a change in pull request #20847:
URL: https://github.com/apache/airflow/pull/20847#discussion_r783715774
##########
File path: airflow/www/gunicorn_config.py
##########
@@ -37,3 +42,18 @@ def on_starting(server):
# Load providers before forking workers
ProvidersManager().connection_form_widgets
+
Review comment:
This one is a bit tricky - but I think there shoudl also be a way to
pass the information from the `--open-telemetry` flag of the `webserver` herre.
Likely it can be done by setting an environment variable in the "webserver"
command.
Something like:
```
os.environ["AIRFLOW_ENABLE_GUNICORN_OPENTELEMETRY"] = "true"
```
Then you could check it in post_fork() method and run the code if the
variable is set.
--
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]