Comments (3)
OTLPSpanExporter expects an endpoint of: OTLPSpanExporter(endpoint="/v1/traces")
OTLPMetricExporter expects an endpoint of: OTLPMetricExporter(endpoint="/v1/metrics")
Could you provide more details on this? I don't think the suffix is needed here if you use OTEL_EXPORTER_OTLP_ENDPOINT
.
In the latest code, this is what promptflow supported now:
- Support trace/metrics/log exporter, you can configure it via a common
OTEL_EXPORTER_OTLP_ENDPOINT
or you can configure to enable each one separately withOTEL_EXPORTER_OTLP_METRICS_ENDPOINT
,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
; - Support both http and grpc OTLP collector, by default it's http, you can use a grpc server by
- add the
opentelemetry-exporter-otlp-proto-grpc
dependency in your requirements.txt - configure
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
- add the
I'll close this first, let me know whether this can meet your expectation. @joshuaphelpsms, if not, feel free to re-open and we can continue the discussion.
from promptflow.
Since the endpoint is passed explicitly to the OTLPMetricExporter and OTLPSpanExporter's, it must have the /v1/traces
or /v1/metrics
in the endpoint.
If no endpoint is passed then it will fall back to the environment variables. See how the endpoint is currently passed to the constructor for prompt flow:
Looking through the OpenTelemetry code for http/proto, the order of precedence for traces would be:
- Endpoint is passed explicitly to the constructor (must include
/v1/traces
) OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
environment var- (must include/v1/traces
)OTEL_EXPORTER_OTLP_ENDPOINT
environment var - (/v1/traces
is appended to the endpoint for us, so we do not include/v1/traces
)- If no endpoint or environment variables are set, it defaults to
http://localhost:4318/v1/traces
I think what you probably want is to not pass the endpoint explicitly and rely on the environment variables to set the endpoint.
from promptflow.
FYI: I am unable to reopen the issue because it was not closed by me
from promptflow.
Related Issues (20)
- [BUG] pf.config.set failed with MissingAzurePackage: "promptflow[azure]" is required for this functionality, please install it by running "pip install promptflow-azure" with your version. HOT 2
- [BUG] I only want to send 1 trace, but PromptFlow sends 4 every time HOT 6
- [BUG] How do I change the icons in the trace report? HOT 1
- [BUG] Parsing of tool calls does not support arrays in the "arguments"
- [BUG] Cannot connect to promptflow tracing during release deploy pipeline HOT 11
- Bulk processing of inputs in an LLM - bulk categorization HOT 6
- All Blank Input Fields in PromptFlow UI HOT 3
- [FeatureAsk] Unable to use tracing in a promptflow endpoint that has been deployed to Azure Machine Learning HOT 3
- [BUG] Error when running AOAI function calling example HOT 3
- [BUG] Potential incompatible with mlflow>=2.13.1 HOT 2
- Integrate a APIM in front of deployments in PromptFlow HOT 1
- [Feature Request] Hiding Sensitive Inputs HOT 1
- [BUG] Promptflow tracing is not compatible with code-based Azure Web Apps HOT 3
- [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 3
- I need to serve to 0.0.0.0 HOT 3
- [BUG] Confusing, incomplete tutorial HOT 2
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.