@latitude-data/pi-telemetry
Pi coding agent extension that streams sessions to Latitude as OTLP traces
Package details
Install @latitude-data/pi-telemetry from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@latitude-data/pi-telemetry- Package
@latitude-data/pi-telemetry- Version
0.0.3- Published
- Jun 18, 2026
- Downloads
- 273/mo · 7/wk
- Author
- cesr
- License
- MIT
- Types
- extension
- Size
- 146.1 KB
- Dependencies
- 2 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./dist/extension.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Latitude pi telemetry
Pi coding agent extension that streams prompts, model turns, tool calls, and tool results to Latitude as OTLP traces.
Install
npx -y @latitude-data/pi-telemetry install
Non-interactive:
npx -y @latitude-data/pi-telemetry install \
--api-key=lat_xxx \
--project=your-project-slug \
--yes
The installer writes:
~/.pi/agent/settings.jsonwith the pi package entrynpm:@latitude-data/pi-telemetry@<version>~/.pi/agent/latitude-telemetry.jsonwith Latitude configuration
Restart pi after installation so it can install and load the package.
Privacy
By default this captures full prompts, assistant responses, tool inputs, and tool outputs. Install with --no-content to keep structure, timing, token usage, model names, and tool names while scrubbing content fields.
For field-level PII controls while keeping content capture enabled, add redact to ~/.pi/agent/latitude-telemetry.json or set LATITUDE_REDACT_ATTRIBUTES. Patterns are exact strings, regex source strings, or /pattern/flags strings.
{
"redact": {
"attributes": ["/^gen_ai\\.(input|output)\\.messages$/", "gen_ai.tool.call.arguments"],
"mask": "[]"
}
}
Environment equivalent:
LATITUDE_REDACT_ATTRIBUTES='["/^gen_ai\\.(input|output)\\.messages$/"]' \
LATITUDE_REDACT_MASK='[]' \
pi
Disable
LATITUDE_PI_TELEMETRY_ENABLED=0 pi
Uninstall
npx -y @latitude-data/pi-telemetry uninstall