GitHub user howardyoo added a comment to the discussion: add additional Otel 
traces

Hi Praphi,

Oh yes, I now remember.
https://stackoverflow.com/questions/69839049/how-do-we-set-os-environment-variables-in-airflow
So, since tasks could be executed on separate processes, the env variable
in normal way may not work in Airflow, so that's why I have implemented the
code

    def get_constant_tags(cls) -> str | None:
        """Get constant tags to add to all traces."""
        tags_in_string = conf.get("traces", "tags", fallback=None)


So, yes, this works - and you could put the tags inside your airflow
configuration under traces to make it work similar to the resource
attributes.



On Thu, Apr 10, 2025 at 2:54 AM praphi-git ***@***.***> wrote:

> @howardyoo <https://github.com/howardyoo> i set the environment variables
> to ran the airflow. it's not picking up the attributes.
>
> I have tried using the SDK in the same environment and the values are
> being picked up. Looks like an issue with Airflow itself. can you check
> once ?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/airflow/discussions/48658#discussioncomment-12788254>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHZNLLXX4YK7XMK2DQTN6NT2YYPSTAVCNFSM6AAAAAB2IXLZPWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZYHAZDKNA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>


GitHub link: 
https://github.com/apache/airflow/discussions/48658#discussioncomment-12791763

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to