npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@trustabl/agent-reliability-otel-labels

v0.1.0

Published

Process-metadata labels for OpenTelemetry agent spans

Readme

@trustabl/agent-reliability-otel-labels

Process-metadata labels for OpenTelemetry agent spans.

This library adds about nine attributes and one event type to spans that your agent already emits. It answers questions a trace cannot otherwise answer: was this the same call as before, was this a retry, does this tool destroy something, and which signed policies were actually in force.

No API key, no account, no Trustabl service.

The one prerequisite

Your agent must already be instrumented. This library decorates spans; it never creates them. The Vercel AI SDK's telemetry, OpenLIT, Traceloop, OpenInference or a framework's native gen_ai support all qualify.

Install

npm install @trustabl/agent-reliability-otel-labels @opentelemetry/api

Node 18 or newer. Ships ESM and CJS with type definitions. @opentelemetry/api is a peer dependency; the OpenTelemetry SDK is not required.

Use

import { Run, bindAuthority, markRunEnd, markToolSpan } from "@trustabl/agent-reliability-otel-labels";

const run = new Run();

await tracer.startActiveSpan("invoke_agent", async (root) => {
  run.markStart(root);
  bindAuthority(root, [
    { id: "openshell-seccomp-v3", type: "sandbox", sha256: "...",
      version: "3.1.0", required: true, source: "entrypoint" },
  ]);

  await tracer.startActiveSpan("execute_tool", async (span) => {
    const result = await searchFlights(args);
    markToolSpan(span, {
      args, result, attempt: 1, sideEffect: "read",
      stepIndex: run.nextStep(), runId: run.runId,
    });
    span.end();
  });

  // Call before the root span ends; an ended span drops the write.
  markRunEnd(root, "final_answer");
  root.end();
});

Arguments and results are fingerprinted, never stored: the span carries a 16-character hash, not what the caller asked for. No usable span is a silent no-op, so a workload with tracing disabled is unaffected.

What it writes

| Attribute | On | Answers | |---|---|---| | trustabl.step_index | tool calls | What order did this really happen in? | | trustabl.run_id | root and tool calls | Which spans belong to one job? | | trustabl.tool.input_fp | tool calls | Was this the same call as before? | | trustabl.tool.output_fp | tool calls | Did the same input give the same result? | | trustabl.tool.side_effect | tool calls | pure, read, write or irreversible? Omitted when unknown. | | trustabl.tool.error_class | tool calls | Did it actually work? | | trustabl.tool.attempt | tool calls | Is it retrying? | | trustabl.handoff_id | child agent span | Which agent delegated to which? | | trustabl.exit_reason | root, before it ends | How did the run end? | | trustabl.policy.binding (event) | agent / sandbox root | Which signed policies were loaded? |

More

The full documentation, the Python and Go bindings, and a runnable example on the Vercel AI SDK (typescript/examples/vercel-ai/) are in the repository: https://github.com/trustabl/agent-reliability-otel-labels

License

Apache-2.0. See LICENSE.