Neatlogs OpenTelemetry-compatible instrumentations for AI agent ecosystems.
| Package | Target Library |
|---|---|
neatlogs-instrumentation-azure-ai-inference |
azure.ai.inference |
| Package | Target Library |
|---|---|
@neatlogs/instrumentation-google-genai |
@google/genai |
@neatlogs/instrumentation-mastra |
@mastra/core |
See packages/js/ for TypeScript package documentation and development setup.
Install from PyPI:
pip install neatlogs-instrumentationsIf you need Azure AI Inference support:
pip install "neatlogs-instrumentations[azure-ai-inference]"This package provides an OpenTelemetry BaseInstrumentor for the
azure.ai.inference.ChatCompletionsClient.complete method.
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:
python -c "from neatlogs_instrumentation_azure_ai_inference.instrumentor import AzureAIInferenceInstrumentor; print(AzureAIInferenceInstrumentor)"