Skip to content

Allow visibility of current trace/span inside the python backend #8837

@joseparajelesGL

Description

@joseparajelesGL

Is your feature request related to a problem? Please describe.

We would like to link/nest the triton server traces with the code that is runned inside a python backend can be properly linked using open telemetry

Describe the solution you'd like
A method ( and documentation ) for triton_python_backend_utils to get the either the current trace (full object ) or just the span_id

I'm not sure if this could be wired into the module easily
https://github.com/triton-inference-server/python_backend/blob/r25.11/src/pb_stub.cc#L1641-L1649

Describe alternatives you've considered
Getting the request trace as a param, however this leaves it detach from the triton server chain

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions