Prerequisites
-
Create a LangSmith Account
- Sign up for an account at LangSmith.
- Obtain your API key from the LangSmith dashboard.
-
Set Environment Variables
-
Install Dependencies
Sending Traces to LangSmith
langsmith_tracing.py
Run the Example
Save the code aslangsmith_tracing.py, then run:
Data Region
SetLANGSMITH_ENDPOINT to the endpoint for your LangSmith data region. The code appends /otel/v1/traces to that value.