Skip to main content

ATI SDK: shared config + semantic conventions helpers for agent-aware OpenTelemetry tracing

Project description

ATI SDK

The Core SDK for IOcane ATI (Agent Traffic Intelligence) integrations. This package provides shared utilities for implementing OpenTelemetry instrumentation across various agent frameworks.

Installation

pip install ati-sdk

Features

  • AtiTracer: A wrapper around opentelemetry.trace.Tracer that enforces ATI semantic conventions.
  • AtiConfig: validation and merging of configuration from environment variables and code.
  • Semantic Conventions: Constants for standard ATI attributes (ati.span.type, etc.).

Configuration

The SDK reads the following environment variables:

Variable Description
ATI_CAPTURE_PAYLOADS Enable capturing of input/output payloads (default: false)
ATI_REDACTION_ENABLED Enable redaction of sensitive data (default: true)
ATI_DEBUG Enable internal debug logging

Usage for Integrators

from ati_sdk import AtiConfig, AtiTracer, AtiSpanType
from opentelemetry.trace import Status, StatusCode

# 1. Initialize Config
config = AtiConfig.from_env()

# 2. Create Tracer
tracer = AtiTracer(framework="mynetwork", tracer_name="ati.myframework", config=config)

# 3. Start Spans
span = tracer.start_span(
    "agent.step",
    AtiSpanType.STEP,
    attributes={"custom.attr": "value"}
)
try:
    # ... execution ...
    pass
except Exception as e:
    span.record_exception(e)
    span.set_status(Status(StatusCode.ERROR))
finally:
    span.end()

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

ati_sdk-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

ati_sdk-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ati_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for ati_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0a2c744734a2f7f2a757a3e918d1b02a47793c19e1b28a4ee218c695e7b69282
MD5 233b7e5bf0528cfad1491eee8ac3757d
BLAKE2b-256 651f54476105d4a14081d860755c92a026e2d430d719c9ca822268b9425e5ec7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ati_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for ati_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d91ffab93c03b3a0c47ea01ba7a210c729a43bf6723ccfc1f7ae908804ad02f
MD5 f4e3b08de808c3ef4cd6e9a101868204
BLAKE2b-256 4bb9d53c6c3230a71ea05c50f40498aa655855e97e83174568cb55de79b7bc86

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