Metadata-Version: 2.4
Name: neatlogs-instrumentations
Version: 0.1.1
Summary: Neatlogs OpenTelemetry-compatible instrumentations for AI agent ecosystems.
Author: Neatlogs
License: Proprietary
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opentelemetry-api>=1.0
Requires-Dist: opentelemetry-instrumentation>=0.40b0
Requires-Dist: wrapt>=1.15
Provides-Extra: azure-ai-inference
Requires-Dist: azure-ai-inference>=1.0.0b0; extra == "azure-ai-inference"
Dynamic: license-file

# Neatlogs Instrumentations

Neatlogs OpenTelemetry-compatible instrumentations for AI agent ecosystems.

## Install

Install from PyPI:

```bash
pip install neatlogs-instrumentations
```

If you need Azure AI Inference support:

```bash
pip install "neatlogs-instrumentations[azure-ai-inference]"
```

## Quickstart (Azure AI Inference)

This package provides an OpenTelemetry `BaseInstrumentor` for the
`azure.ai.inference.ChatCompletionsClient.complete` method.

```python
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleSpanProcessor, ConsoleSpanExporter

from neatlogs_instrumentation_azure_ai_inference.instrumentor import (
    AzureAIInferenceInstrumentor,
)


provider = TracerProvider()
provider.add_span_processor(SimpleSpanProcessor(ConsoleSpanExporter()))

AzureAIInferenceInstrumentor().instrument(tracer_provider=provider)
```

To confirm it is installed:

```bash
python -c "from neatlogs_instrumentation_azure_ai_inference.instrumentor import AzureAIInferenceInstrumentor; print(AzureAIInferenceInstrumentor)"
```
