Welcome to Portkey Forum

Updated 3 months ago

Tracing with Async Python Client

Im having some difficulty in getting the tracing to work via the Async Python client. Im doing just as the instructions say and passing in traceId via the metadata properties and I can see it show in the web portal but its still generating its own trace. If I use the trace_id kwarg I can get it to work but that doesnt allow me to pass span information.

result = await client.with_options( config="[CONFIG_NAME]", metadata={ "traceId": "123-test", }, ).chat.completions.create([CREATION_ARGS])
Attachment
Screenshot_2024-08-30_at_9.34.49_AM.png
V
1 comment
Add a reply
Sign up and join the conversation on Discord