Giter Club home page Giter Club logo

Comments (3)

zhengfeiwang avatar zhengfeiwang commented on June 27, 2024

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.

likebupt avatar likebupt commented on June 27, 2024

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.
image

from promptflow.

tyler-suard-parker avatar tyler-suard-parker commented on June 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.