Skip to content

fix: Add asyncio task context propagation to env vars#884

Merged
CagriYonca merged 1 commit into
mainfrom
fix/asyncio
Jun 25, 2026
Merged

fix: Add asyncio task context propagation to env vars#884
CagriYonca merged 1 commit into
mainfrom
fix/asyncio

Conversation

@CagriYonca

Copy link
Copy Markdown
Contributor

Some of LLM technologies, such as Open WebUI and LiteLLM, use asyncio internally, so when we don't set asyncio task context propagation to True manually (which is False by default), internal async threads are created with individual Trace IDs. As a result, you were seeing SOURCE: Not monitored by Instana on the Instana UI, instead of appearing as a child of the Open WebUI request.

@CagriYonca CagriYonca self-assigned this Jun 19, 2026
@CagriYonca CagriYonca added the do NOT merge Depends on another PR or WIP label Jun 19, 2026
@CagriYonca CagriYonca marked this pull request as ready for review June 23, 2026 13:55
@CagriYonca CagriYonca requested a review from a team as a code owner June 23, 2026 13:55
@CagriYonca CagriYonca removed the do NOT merge Depends on another PR or WIP label Jun 23, 2026
Comment thread src/instana/options.py Outdated
@CagriYonca CagriYonca force-pushed the fix/asyncio branch 2 times, most recently from d037d53 to 03edb9b Compare June 25, 2026 09:05
@CagriYonca CagriYonca requested a review from pvital June 25, 2026 09:15
@CagriYonca CagriYonca force-pushed the fix/asyncio branch 3 times, most recently from e251275 to 5d21edd Compare June 25, 2026 13:42
Signed-off-by: Cagri Yonca <cagri@ibm.com>
@sonarqubecloud

Copy link
Copy Markdown

@pvital pvital left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@CagriYonca CagriYonca merged commit 9926113 into main Jun 25, 2026
20 checks passed
@CagriYonca CagriYonca deleted the fix/asyncio branch June 25, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants