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

No worries.
You don't have to configure resource attributes using SDK, but I would
suggest setting OTEL_RESOURCE_ATTRIBUTES environment variable when you're
running Airflow that will make the tracer attach those when running. More
detail is here:
https://opentelemetry.io/docs/specs/otel/resource/sdk/#specifying-resource-information-via-an-environment-variable

On Wed, Apr 9, 2025 at 5:59 AM praphi-git ***@***.***> wrote:

> ok. Thanks for the reply @howardyoo <https://github.com/howardyoo>
>
> I have another question where i need to add custom attributes to tracer to
> send traces in my Organization.
>
> i think i came across a configuration where we can add custom attributes
> to Tracer. Can you help me point to the airflow configuration
>
> below is psuedo code to relate my requirement
>
> resource = Resource(attributes={
>         "my_key": "value"
>     }
>
> trace.set_tracer_provider(TracerProvider(resource=resource))
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/airflow/discussions/48658#discussioncomment-12776759>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHZNLLTCXGBWUPTTHYVIBMT2YT4QZAVCNFSM6AAAAAB2IXLZPWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZXGY3TKOI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>


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

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

Reply via email to