GitHub user zoomingrocket created a discussion: What is the use of OTEL Property otel_task_log_event ?
Hi Everyone, For context, we configured Airflow 3.1.x to successfully emit Metrics & Traces to our OTEL Collector. The next obvious item we wanted to achieve is ingest the task logs and correlate them. We found varying documentation regarding log emit added/removed to the Scheduler code, so not sure what's the latest progress on that. https://github.com/apache/airflow/pull/40802 https://lists.apache.org/thread/5cgpsfhofq32o7ndjvy2pqpwfqnsgxk7 Regardless, we were taking the approach to directly ingest the task log file and establish correlation by having print trace id and span id for current context. While investigating those options one of the documentation suggested that [otel_task_log_event](https://github.com/apache/airflow/blob/21a2fa554533accfff8e25258f265528a0d1db4a/airflow-core/docs/administration-and-deployment/logging-monitoring/traces.rst) needs to be set to True to emit logs. We are a little lost as to whats the use of this? At present, we are trying to print the traceparent in the log lines so that during ingestion of raw log files, we can easily establish the correlation of all the traces emitted. Let me know if there is a better way to do log ingestion, or if we are missing something obvious? Thanks! GitHub link: https://github.com/apache/airflow/discussions/60140 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
