Installation
Install the appropriate packages for the modules you want to use.LLM Foundation Models
Vector DBs
LLM Frameworks
| Framework | PyPi Package Name |
|---|---|
| Haystack | opentelemetry-instrumentation-haystack |
| Langchain | opentelemetry-instrumentation-langchain |
| LlamaIndex | opentelemetry-instrumentation-llamaindex |
Usage
Instantiate the instrumentations you want to use and callinstrument() to register them with OpenTelemetry.
For example, to use the OpenAI instrumentation:
Python
If you’re setting OpenTelemetry’s
TracerProvider manually, make sure to do
this before calling instrument().
