0.0.1-canary.108 • Published 2 months ago

@whop-core/observability v0.0.1-canary.108

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

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.
0.0.1-canary.108

2 months ago

0.0.1-canary.107

2 months ago

0.0.1-canary.106

2 months ago

0.0.1-canary.105

4 months ago

0.0.1-canary.104

4 months ago

0.0.1-canary.103

5 months ago

0.0.1-canary.100

5 months ago

0.0.1-canary.101

5 months ago

0.0.1-canary.102

5 months ago

0.0.1-canary.96

5 months ago

0.0.1-canary.95

5 months ago

0.0.1-canary.94

5 months ago

0.0.1-canary.93

5 months ago

0.0.1-canary.99

5 months ago

0.0.1-canary.98

5 months ago

0.0.1-canary.97

5 months ago

0.0.1-canary.92

5 months ago

0.0.1-canary.91

5 months ago

0.0.1-canary.90

5 months ago

0.0.1-canary.67

6 months ago

0.0.1-canary.66

6 months ago

0.0.1-canary.74

6 months ago

0.0.1-canary.73

6 months ago

0.0.1-canary.72

6 months ago

0.0.1-canary.71

6 months ago

0.0.1-canary.78

5 months ago

0.0.1-canary.77

5 months ago

0.0.1-canary.76

5 months ago

0.0.1-canary.75

6 months ago

0.0.1-canary.70

6 months ago

0.0.1-canary.69

6 months ago

0.0.1-canary.68

6 months ago

0.0.1-canary.85

5 months ago

0.0.1-canary.84

5 months ago

0.0.1-canary.83

5 months ago

0.0.1-canary.82

5 months ago

0.0.1-canary.89

5 months ago

0.0.1-canary.88

5 months ago

0.0.1-canary.87

5 months ago

0.0.1-canary.86

5 months ago

0.0.1-canary.81

5 months ago

0.0.1-canary.80

5 months ago

0.0.1-canary.79

5 months ago

0.0.1-canary.65

6 months ago

0.0.1-canary.64

7 months ago

0.0.1-canary.63

7 months ago

0.0.1-canary.62

7 months ago

0.0.1-canary.61

7 months ago

0.0.1-canary.60

8 months ago

0.0.1-canary.59

8 months ago

0.0.1-canary.58

8 months ago

0.0.1-canary.57

8 months ago

0.0.1-canary.56

8 months ago

0.0.1-canary.55

9 months ago

0.0.1-canary.54

9 months ago

0.0.1-canary.52

9 months ago

0.0.1-canary.53

9 months ago

0.0.1-canary.51

9 months ago

0.0.1-canary.50

9 months ago