Skip to content

fix(tracing): address incorrect svc_src/service logic#18833

Draft
emmettbutler wants to merge 101 commits into
mainfrom
emmett.butler/missing-default-service-early
Draft

fix(tracing): address incorrect svc_src/service logic#18833
emmettbutler wants to merge 101 commits into
mainfrom
emmett.butler/missing-default-service-early

Conversation

@emmettbutler

@emmettbutler emmettbutler commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Description

those that use core.context_with_event, which previously was not grabbing the service name from the event instance's service attribute. The affected integrations are:

  • fastapi
  • starlette
  • asgi
  • anthropic
  • llama_index
  • mistralai
  • azure_durable_functions
  • aiohttp
  • django (via asgi)
  • google_cloud_pubsub
  • pytest
  • ray

The fix for this issue is the change in subscribers/_base.py.

Some test expectations are changed based on the above functional changes, especially snapshots where svc_src and service were mismatched. In every case, the updated expectations seem to me to more closely match the service name specification than they did previously.

Additional Notes

This change could probably be split apart somewhat, but since many of the snapshot files are affected by multiple fixes, splitting it might be more effort than it's worth.

Comment thread tests/contrib/fastapi/test_fastapi.py Outdated
(None, None, "fastapi", "fastapi.request"),
(None, "v0", "fastapi", "fastapi.request"),
(None, "v1", DEFAULT_DDTRACE_SUBPROCESS_TEST_SERVICE_NAME, "http.server.request"),
(None, "v1", "httpx", "http.server.request"),

@mabdinur mabdinur Jul 21, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like a regression. For v1 the default service should be DEFAULT_DDTRACE_SUBPROCESS_TEST_SERVICE_NAME

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.

3 participants