New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@whop-core/observability

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whop-core/observability

This package is designed to export standardized helpers and wrappers to cover every application in the Whop Frontend/Apps stack with observability. Our observability stack exists on top of [Highlight](https://highlight.io), but is designed such that we ca

canary
latest
npmnpm
Version
0.0.1-canary.117
Version published
Weekly downloads
173
476.67%
Maintainers
2
Weekly downloads
 
Created
Source

Whop Observability Package

This package is designed to export standardized helpers and wrappers to cover every application in the Whop Frontend/Apps stack with observability. Our observability stack exists on top of Highlight, but is designed such that we can drop in any provider as we see fit. It exports numerous things, so we'll cover those down the list here.

  • cf-otel.ts exports a function called instrumentCfWorker. This is used to instrument all our app components with Highlight.
  • config-wrapper.ts exports a function called withObservabilityConfig. This is used to instrument our Next.JS apps on the server side.
  • error-boundary.tsx exports a React component that renders the Highlight Error Boundary. This allows us to standardize the error state across our apps.
  • highlight.ts exports the H helper from Highlight's client library. This ensures that we use the same version of Highlight across all of our apps, in case you need to call Highlight directly.
  • identify-user.ts exports helpers to identify users in Highlight inside of a Whop App. It uses the Whop Apps SDK to retrieve the user and set the user in the current Highlight session.
  • opentelemetry.ts exports everything from the @opentelemetry/api package
  • track-event.ts exports a standardized method to track an analytics/observability event. It sends the event to both Highlight and PostHog, and if we want to add another provider, we can do so here to keep it standard for all apps.
  • vercel-otel.ts exports a helper to configure Next.js instrumentation
  • whop-apps-observability-provider.ts exports a React component that is designed to wrap a Whop App in the Highlight error boundary, initialize Highlight on the page, and identify the user with the session they are currently on.
  • whop-core-observability-provider.ts exports a React component that is designed to wrap a Whop Core application in the Highlight error boundary and initialize Highlight on the page.

FAQs

Package last updated on 26 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts