Skip to content

[FEATURE]: Tracing for APIWebSocketRoute in fastapi. #14604

@hongyiweiwu01

Description

@hongyiweiwu01

Package Name

fastapi

Package Version(s)

No response

Describe the goal of the feature

ddtrace already supports tracing regular APIRoute in fastapi (which is for regular REST APIs). It should also support APIWebSocketRoute which is fastapi's version for web socket connections.

I also see that ddtrace already supports tracing web sockets in generic ASGI applications, so wondering what's the lift to extend that support for fastapi specifically?

Is your feature request related to a problem?

Our web socket endpoints are not being traced and we're currently using a manual tracer.wrap() to do it, but it lacks many auto-added contexts from traces for other REST endpoints.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions