Check out the Colab for an interactive example (you may need to adapt OTel setup for Arize as shown below).
API Key Setup
Before running your application, set the following environment variables:HF_TOKEN is your Hugging Face API token.
Install
Install smolagents, the OpenInference instrumentor, Arize OTel, and supporting OpenTelemetry packages:Setup Tracing
Add yourHF_TOKEN as an environment variable: