Comments (3)
Attach another issue on same topic for more context: #3391
Logging traces to Azure Cosmos DB requires credential, and its current implementation only supports Azure CLI. So if Azure Web App does not support Azure CLI, according to Ryan's comment in the Q&A, that should be current limitation.
To support this, prompt flow needs to support retrieving credential from something else like environment variables. I added feature tag (and remove bug tag) on this issue, and we can track this using this issue.
BTW, for the error message that complains "pf command not found", it requires you to correctly configure your environment in Azure Web App.
from promptflow.
Hi @tyler-suard-parker , could you please share how you deploy a flow to web APP?
Currently, prompt flow serving supports collect trace to Azure application insights.
You could use pf build
to build a docker image from a flow and then deploy to Azure APP service. For more details, please refer to this article.
After deploy, you can set environment variables of your application insights connection string in the APP service, and then you can collect the trace to the app insights.
from promptflow.
@zhengfeiwang @likebupt I was able to get tracing to work using a container web app, but it still will not work using a code-based web app. Choosing to make the user sign in using az login is, in my opinion, a poor design choice. It isn't necessary (Azure can use opentelemetry to send telemetry from a web app to azure metrics without using az login, see here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=python) and it adds a ton of frustration. I had to containerize my app code, create a new web app, and change our whole deployment pipeline just to use tracing.
from promptflow.
Related Issues (20)
- [Feature Request] Hiding Sensitive Inputs HOT 1
- [BUG] PFClient.run using flow with AsyncIterator raises `TypeError: cannot pickle '_thread.lock' object`
- [BUG] [VSCode Extension]Embedding Tool Error HOT 3
- Set Trace Destination fails with Cosmos DB is disabled error HOT 3
- [BUG] Do now show warning messages from werkzeug HOT 1
- [Feature Request]The server shuts down after one hour of inactivity, which is not good HOT 1
- I need to serve to 0.0.0.0 HOT 3
- [BUG] Confusing, incomplete tutorial HOT 2
- [BUG] [promptflow-evals] Failed to invoke the Azure CLI when running evaluation
- [Feature Request] Allow disabling tracing for large intermediate objects HOT 3
- [BUG] [promptflow-evals] Adversarial simulator cannot generate samples with jailbreak correctly if `max_simulation_results` is large. HOT 3
- [BUG] [promptflow-evals] The `AdversarialSimulator` object cannot be reused.
- [Feature Request] Official example for streaming PromptFlow using AutoGen HOT 2
- Deploy fails to Azure Container Apps HOT 1
- [BUG] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 80: invalid start byte HOT 3
- [Feature Request] LLM output token probabilities
- [BUG] HOT 1
- [BUG] Difference in retrieved results between PromptFlow's index Lookup and AI Search Web HOT 1
- [BUG] Documentation not according to actual API spec HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptflow.