Install
Install with PiG
pig install npm:@agimon-ai/po-telemetryInstall with Pi
pi install npm:@agimon-ai/po-telemetryPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
README
Written by the package's publisher, shown as published in version 0.0.0-alpha.29 (README.md). PiG does not review it.
@agimon-ai/po-telemetry
Host-neutral telemetry helpers and Log Sink adapters shared by Po packages.
Part of the Po distribution.
This is a library, not a Pi extension. It has no Pi manifest or Pi peer dependency and should not be added to a Po layer.
Alpha: telemetry attributes and sink contracts may change between releases.
Requirements
- Node.js 24 or newer
Install
npm install @agimon-ai/po-telemetry
Use
import { createPoTelemetry } from '@agimon-ai/po-telemetry';
const telemetry = createPoTelemetry({
serviceName: 'review-extension',
packageName: '@example/review-extension',
cwd: process.cwd(),
env: process.env,
enableLogs: true,
enableTraces: true,
});
await telemetry.recordEvent('review.started', { 'review.file_count': 3 });
await telemetry.flush();
await telemetry.shutdown();
The root and /telemetry subpath expose createPoTelemetry, attribute sanitization, header
creation, record subscriptions, and related types.
Data and failure behavior
The adapter sanitizes attribute shapes and hashes selected identifiers before export. It is designed for operational metadata, but callers remain responsible for the values they pass. Do not attach prompt text, file contents, credentials, or unreviewed user data.
Exception export is optional and can include error names, messages, and stack context. Those fields may disclose code paths or values even when ordinary attributes are metadata-only.
When no endpoint is configured, telemetry export becomes a no-op rather than breaking the host. Explicit file fallback must be enabled by the caller; it is not silently selected. Status and diagnostic callbacks surface sink initialization, recording, flushing, and shutdown behavior.
Common controls used by Po hosts include AGENT_TELEMETRY_DISABLED, OTEL_SDK_DISABLED, and
AGENT_OTEL_TRACES. Hosts must decide whether these variables, endpoint configuration, or explicit
options have precedence in their integration.
Development
pnpm build
pnpm typecheck
pnpm test
pnpm lint
Maintained by Agimon.
License
Business Source License 1.1: free for personal use, organisations under USD 1M revenue, non-profits and education. See LICENSE and https://agimon.ai/licensing.