For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
    • Overview
  • TypeScript
    • Opik TypeScript SDK
  • Python
    • Opik Python SDK
    • OpenTelemetry Python SDK
  • Java
    • Spring AI
    • Quarkus LangChain4j
  • .NET
  • Ruby
    • OpenTelemetry Ruby SDK
  • No-Code
    • Cursor
    • Dify
    • Flowise
    • Langflow
    • n8n
    • OpenClaw
    • OpenAI Codex
    • OpenWebUI
    • Prompt Flow
  • Multi-Language
    • OpenTelemetry
LogoLogo
Copy to LLMGithubGo to App
On this page
  • When this guide applies
  • Opik OTLP endpoint modes
  • Example (Prompt Flow tracing API)
  • Validation
  • Source references
No-Code

Observability for Prompt Flow with Opik

Was this page helpful?
Previous

OpenTelemetry

Describes how to send data to Opik using OpenTelemetry
Next
Built with

Prompt Flow enables tracing through Prompt Flow APIs and uses OpenTelemetry export settings for outbound telemetry.

When this guide applies

Use this when your Prompt Flow project already uses Prompt Flow tracing and you want its telemetry exported into Opik.

Opik OTLP endpoint modes

For full endpoint/header details, see Opik OpenTelemetry overview.

Opik Cloud
Enterprise deployment
Self-hosted instance
$export OTEL_EXPORTER_OTLP_ENDPOINT=https://www.comet.com/opik/api/v1/private/otel
$export OTEL_EXPORTER_OTLP_HEADERS='Authorization=<your-api-key>,Comet-Workspace=<your-workspace>,projectName=<your-project-name>'

Required headers: Authorization, Comet-Workspace Optional headers: projectName

Example (Prompt Flow tracing API)

Intent: Enable Prompt Flow tracing and export telemetry through your configured OTLP endpoint.

Applies when: You use Prompt Flow’s native tracing API and want those traces exported via your OTEL settings.

Required inputs:

  • Prompt Flow tracing enabled in code
  • OTEL endpoint/header env vars for your Opik mode

Optional inputs:

  • service/resource metadata
  • additional OTel collector routing or enrichment

Minimal valid setup:

1from promptflow.tracing import start_trace
2
3start_trace()
4
5# Run prompt flow pipeline as usual.

Validation

  1. Run a flow with start_trace() enabled.
  2. Confirm telemetry export calls are made to your configured OTLP endpoint.
  3. Verify trace records appear in the expected Opik project.

Source references

  • Prompt Flow tracing docs
  • Opik OpenTelemetry overview