Download the PHP package haro/aitracer without Composer
On this page you can find all versions of the php package haro/aitracer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download haro/aitracer
More information about haro/aitracer
Files in haro/aitracer
Download haro/aitracer
More information about haro/aitracer
Files in haro/aitracer
Vendor haro
Package aitracer
Short Description AITracer PHP SDK - Monitor and trace AI/LLM API calls
License MIT
Homepage https://aitracer.co
Package aitracer
Short Description AITracer PHP SDK - Monitor and trace AI/LLM API calls
License MIT
Homepage https://aitracer.co
Please rate this library. Is it a good library?
Informations about the package aitracer
AITracer PHP SDK
AITracer PHP SDK - AI/LLM APIコールのモニタリングとトレーシング
インストール
クイックスタート
基本的な使い方
OpenAI クライアントのラップ
Anthropic クライアントのラップ
トレースによるグループ化
関連するAPIコールをトレースでグループ化できます:
PII検出とマスキング
個人情報を自動検出してマスキングできます:
設定オプション
| オプション | デフォルト | 説明 |
|---|---|---|
api_key |
- | AITracer APIキー(必須) |
project |
- | プロジェクト名/ID(必須) |
base_url |
https://api.aitracer.co |
APIエンドポイント |
sync |
false |
同期モード(サーバーレス環境用) |
enabled |
true |
ログ記録の有効/無効 |
flush_on_exit |
true |
終了時に自動フラッシュ |
batch_size |
10 |
バッチ送信のログ数 |
flush_interval |
5.0 |
自動フラッシュ間隔(秒) |
timeout |
30 |
HTTPタイムアウト(秒) |
pii_detection |
false |
PII検出の有効化 |
pii_action |
mask |
PII処理方法 |
pii_types |
[email, phone, ...] |
検出するPIIタイプ |
環境変数
サーバーレス環境(AWS Lambda等)
サーバーレス環境では同期モードを使用してください:
手動フラッシュ
ログデータ構造
要件
- PHP 8.1以上
- Guzzle HTTP 7.0以上
ライセンス
MIT License
All versions of aitracer with dependencies
PHP Build Version
Package Version
The package haro/aitracer contains the following files
Loading the files please wait ...