Skip to main content

Respan exporter for Superagent (safety-agent) SDK

Project description

Respan Exporter for Superagent

Exports safety-agent (Superagent) calls to Respan traces ingestion.

Installation

pip install respan-exporter-superagent

Usage

import os
from respan_exporter_superagent import create_client

client = create_client(
    api_key=os.getenv("RESPAN_API_KEY"),
    endpoint=os.getenv("RESPAN_ENDPOINT"),  # optional
)

result = await client.guard(
    input="hello",
    respan_params={
        "span_workflow_name": "wf",
        "span_name": "sp",
        "customer_identifier": "user-123",
    },
)
print(result)

Environment variables

  • RESPAN_API_KEY: API key used for ingest authorization.
  • RESPAN_ENDPOINT: optional override for ingest endpoint.

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

respan_exporter_superagent-0.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

respan_exporter_superagent-0.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file respan_exporter_superagent-0.2.0.tar.gz.

File metadata

  • Download URL: respan_exporter_superagent-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.8 Darwin/25.2.0

File hashes

Hashes for respan_exporter_superagent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ab41d1b7c64a9928b6aae1fd8c5498ba1fea53662b275d56a2de0173feec9e7f
MD5 32a30565a230ddb05ad33faf89147425
BLAKE2b-256 0d19c88a405247a13216b50814886046b8c93f3c5c461eea2142efe91c1463bb

See more details on using hashes here.

File details

Details for the file respan_exporter_superagent-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for respan_exporter_superagent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a00a864a3d5a3180f9ef09a858687258248d17dab5e2d6042f14658123c36330
MD5 ce989e8558334b051de1f69f95f6d741
BLAKE2b-256 d17c81f42c3346df3706605982e954b067b192536fe53f747153afa73e313fda

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