Skip to main content

Neatlogs OpenTelemetry-compatible instrumentations for AI agent ecosystems.

Project description

Neatlogs Instrumentations

Neatlogs OpenTelemetry-compatible instrumentations for AI agent ecosystems.

Install

Install from PyPI:

pip install neatlogs-instrumentations

If you need Azure AI Inference support:

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.

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)"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neatlogs_instrumentations-0.1.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neatlogs_instrumentations-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file neatlogs_instrumentations-0.1.1.tar.gz.

File metadata

File hashes

Hashes for neatlogs_instrumentations-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5754df3874070eb9a398d95fdad54c83c50610592b2660bd62a0f4a9091564d1
MD5 3ff7580ed67968681c5e22e86bda960b
BLAKE2b-256 9bba1f8ca90397fdea6a2fb9c10911a7c6d9e944e106b60ace5c74f49d3101e5

See more details on using hashes here.

File details

Details for the file neatlogs_instrumentations-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for neatlogs_instrumentations-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db5e9b9385a8d50a77857218cf6bf7f43e499e19327b70e51d4886dbd948251e
MD5 36216a6efe524aa0435188501fab9b29
BLAKE2b-256 3a0878dd89b3187675cb1453be805bd91dde4829406f2e32559f48b546b76493

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page