> ## Documentation Index
> Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt flow

> Create flows using Microsoft Prompt flow and send their traces to the Arize AX platform. Traces are fully OpenTelemetry compatible and can be sent to any OpenTelemetry collector for viewing.

<Card title="openinference/python/instrumentation/openinference-instrumentation-promptflow/examples/chat_flow_example_to_arize.ipynb at main · Arize-ai/openinference" icon="github" href="https://github.com/Arize-ai/openinference/blob/main/python/instrumentation/openinference-instrumentation-promptflow/examples/chat_flow_example_to_arize.ipynb">
  GitHub
</Card>

This integration will allow you to trace [Microsoft PromptFlow](https://github.com/microsoft/promptflow) flows and send their traces into Arize AX.

<Tabs>
  <Tab title="Python">
    ```bash theme={null}
    pip install arize-otel promptflow
    ```

    Import `arize_otel` and other dependencies required for setup.

    ```python theme={null}
    import os
    from arize.otel import register, Endpoint
    from opentelemetry.sdk.environment_variables import OTEL_EXPORTER_OTLP_ENDPOINT
    from promptflow.tracing._start_trace import setup_exporter_from_environ
    ```

    Set up OpenTelemetry using our convenience function: `register` with your Arize AX credentials.

    ```python theme={null}
    # Setup OTel via our convenience function
    tracer_provider = register(
        space_id = "your-space-id", # in app space settings page
        api_key = "your-api-key", # in app space settings page
        project_name = "your-project-name", # name this to whatever you would like
    )
    ```

    Then set up the OpenTelemetry endpoint to be Arize AX and use Prompt flow's `setup_exporter_from_environ` to start tracing any further flows and LLM calls.

    ```java theme={null}
    os.environ[OTEL_EXPORTER_OTLP_ENDPOINT] = Endpoint.ARIZE
    setup_exporter_from_environ()
    ```

    Proceed with creating Prompt flow flows as usual.
  </Tab>
</Tabs>
