You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When deploying a prompt flow to Azure Container Apps (ACA), with Authentication turned on, I receive trace messages (logs) in Application Insights but do not get dependencies that track the flow execution. This is observed when using the built in UI.
I noticed that if I call the /score endpoint with OTel traceparent set with trace flag 01, that it works as expected and I see logs and dependencies. With a trace flag of 00 or with the header omitted then I see only traces.
I suspect that the underlying issue is in the PF handling of the traceparent header, and that ACA is just showing this issue. I would expect that regardless of the trace flag, I should be seeing my dependency information show up.
When running the docker image locally, I get all expected telemetry regardless of the traceparent header.
How To Reproduce the bug
Steps to reproduce the behavior:
Create a flow
Package the flow in the docker format
Build the docker image (and push to an ACR)
Define an Azure Container App based on the image
Enable Authentication
Use the built in PF UI to make a request. I
Expected behavior
Consistent logging to application insights regardless of the hosting environment of the built docker image.
Running Information(please complete the following information):
{
"promptflow": "1.15.0",
"promptflow-azure": "1.15.0",
"promptflow-core": "1.15.0",
"promptflow-devkit": "1.15.0",
"promptflow-tracing": "1.15.0"
}
Describe the bug
When deploying a prompt flow to Azure Container Apps (ACA), with Authentication turned on, I receive trace messages (logs) in Application Insights but do not get dependencies that track the flow execution. This is observed when using the built in UI.
I noticed that if I call the /score endpoint with OTel traceparent set with trace flag
01
, that it works as expected and I see logs and dependencies. With a trace flag of00
or with the header omitted then I see only traces.I suspect that the underlying issue is in the PF handling of the traceparent header, and that ACA is just showing this issue. I would expect that regardless of the trace flag, I should be seeing my dependency information show up.
When running the docker image locally, I get all expected telemetry regardless of the traceparent header.
How To Reproduce the bug
Steps to reproduce the behavior:
Expected behavior
Consistent logging to application insights regardless of the hosting environment of the built docker image.
Running Information(please complete the following information):
{
"promptflow": "1.15.0",
"promptflow-azure": "1.15.0",
"promptflow-core": "1.15.0",
"promptflow-devkit": "1.15.0",
"promptflow-tracing": "1.15.0"
}
Python (Darwin) 3.11.9 (v3.11.9:de54cf5be3, Apr 2 2024, 07:12:50)
Additional context
Adding a trace parent header to start the span in the deployed UI with the appropriate trace flag could be an easy fix to this
The text was updated successfully, but these errors were encountered: