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.0.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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ati_sdk-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d57dbeda548cb4b50af1c2a764460cdad04bb7a4a71f769d068a481f33dd2827
MD5 75b8e5d3da19fbcde9b547cd4be8eab5
BLAKE2b-256 e2c96e016fe1df117322e48a8ced3164666c3f3681a28e2eecdce570bfe1a4fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ati_sdk-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ac19cbfcbbd780f402fbd660923acbfcfc7f68029c3cd6a6f70816dfc523241
MD5 97da624c2a465bbb97eb6b2fef7431e4
BLAKE2b-256 4e51cacc07eda6d46115e8c2238888eff792d6d1d55dc35ee851238a9a4e2c35

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