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

@miden-sdk/telemetry-sentry

v0.17.6

Published

Opt-in Sentry binding for Miden SDK observations

Readme

@miden-sdk/telemetry-sentry

Opt-in Sentry binding for Miden SDK observations.

@miden-sdk/miden-sdk emits one observation per client operation — name, outcome, duration — and never transports one. It has no telemetry dependency and no egress primitive in that path. This package is the adapter that turns those observations into Sentry calls, so you can wire the SDK into a Sentry project you already own without the core gaining anything.

Installation

pnpm add @miden-sdk/telemetry-sentry

Sentry itself is not a dependency of this package, not even a peer. The binding is defined against the captureMessage shape rather than a Sentry import, so you own your Sentry version, its configuration, and its lifecycle. Nothing here calls Sentry.init, constructs a client, or knows a DSN.

Usage

import * as Sentry from "@sentry/browser";
import { MidenClient } from "@miden-sdk/miden-sdk";
import { createSentryObserver } from "@miden-sdk/telemetry-sentry";

Sentry.init({ dsn: "..." }); // yours to call, once, in your entry point

const client = await MidenClient.create({
  rpcUrl: "testnet",
  feeFaucetId: FEE_FAUCET,
  observer: createSentryObserver({ client: Sentry, minDurationMs: 5_000 }),
});

Pass anything with a captureMessage(message, { level, tags, extra }) method: the module namespace of any Sentry SDK, a Scope, a queue of your own, or a test double.

Options

client

  • Type: SentryLikeClient — an object with a captureMessage method
  • Required. createSentryObserver throws a TypeError at wiring time if it is missing or cannot capture a message. That is the one thing this package reports by throwing, and it throws from the factory rather than the observer: an observer cannot report its own misconfiguration, so one built around a missing client would discard every observation forever and look exactly like a working one.

minDurationMs

  • Type: number
  • Default: Infinity — failures only

Successful operations are forwarded only when they took at least this long. Failures are always forwarded, however fast they were. The default is deliberately conservative: the SDK's successful call volume is not something to bill a Sentry quota for because an option was left out.

includeSensitive

  • Type: boolean
  • Default: false

See below. Only a literal true enables it.

Reported shape

One captureMessage per forwarded observation, synchronously, with nothing scheduled afterwards:

| | | |---|---| | message | miden.<op> <outcome>, e.g. miden.proveTransaction error | | level | "error" on failure, "info" on success | | tags.op | the operation name | | tags.outcome | "ok" or "error" | | extra.durationMs | the observation's durationMs: from the call's turn on its client's queue until it settled |

Sensitive detail

An observation's sensitive channel carries verbatim error text — the untouched error.message and stack, neither classified nor redacted, and populated only when an operation fails. It also declares an accountId field, which the SDK does not currently populate; entries with no value are filtered out before the report is built, so nothing appears in its place. It is opt-in at both ends: observeSensitive: true when you construct the client, and includeSensitive: true here. Either one left alone and nothing from that channel reaches Sentry.

By default the SDK omits the sensitive key from an observation entirely, and this binding forwards nothing in its place — no placeholder, no inferred value, no empty rows in the Sentry UI. An observation without the key is still reported; only its detail is absent.

Do not enable either flag in an application with confidentiality obligations to its users. A wallet, for example, must never enable it.

Failure behaviour

The observer never throws. A Sentry client that is down, misconfigured, or throwing takes the report with it and nothing else — the client operation being reported on still succeeds, and the next observation is still reported. The SDK guards observer invocation too, but this binding is usable outside that guard, so it does not rely on it.

License

MIT