notion-observability

Featured

Set up observability for Notion integrations with metrics, traces, and alerts. Use when implementing monitoring for Notion API calls, setting up dashboards, or configuring alerting for Notion integration health. Trigger with phrases like "notion monitoring", "notion metrics", "notion observability", "monitor notion", "notion alerts", "notion tracing".

AI & Automation 2,274 stars 319 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Notion Observability ## Overview Instrument Notion API calls with metrics, structured logging, and alerting. Track request rates, latencies, error rates, and rate limit headroom. This skill covers a full observability stack: an instrumented client wrapper, Prometheus metrics with histogram buckets tuned for Notion's typical 200-800ms latency, structured logging via pino, health check endpoints, and Prometheus alerting rules for error rate spikes, rate limit exhaustion, high latency, and service outages. ## Prerequisites - `@notionhq/client` v2+ installed (`npm install @notionhq/client`) - Python alternative: `notion-client` (`pip install notion-client`) - Prometheus-compatible metrics backend (optional: Grafana, Datadog, or CloudWatch) - Structured logging library: `pino` (Node.js) or `structlog` (Python) ## Instructions ### Step 1: Instrumented Notion Client Wrapper Wrap every Notion API call with timing, error classification, and structured logging: ```typescript import { Client, isNotionClientError, APIErrorCode } from '@notionhq/client'; interface NotionMetrics { requestCount: number; errorCount: number; rateLimitCount: number; totalLatencyMs: number; latencyBuckets: Map<string, number[]>; lastError: { code: string; message: string; timestamp: string } | null; } class InstrumentedNotionClient { private client: Client; private metrics: NotionMetrics = { requestCount: 0, errorCount: 0, rateLimitCount: 0, totalLatencyMs: 0, lat...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

notion-advanced-troubleshooting

Deep debugging for Notion API: response inspection, permission chain tracing, property type mismatches, pagination edge cases, and block nesting limits. Use when standard troubleshooting fails or investigating intermittent errors. Trigger with phrases like "notion deep debug", "notion permission trace", "notion property mismatch", "notion pagination bug", "notion nesting limit".

2,274 Updated today
jeremylongshore
AI & Automation Featured

hubspot-observability

Set up observability for HubSpot integrations with metrics, traces, and alerts. Use when implementing monitoring for HubSpot API operations, setting up dashboards, or configuring alerting for CRM integration health. Trigger with phrases like "hubspot monitoring", "hubspot metrics", "hubspot observability", "monitor hubspot", "hubspot alerts", "hubspot dashboard".

2,274 Updated today
jeremylongshore
AI & Automation Featured

evernote-observability

Implement observability for Evernote integrations. Use when setting up monitoring, logging, tracing, or alerting for Evernote applications. Trigger with phrases like "evernote monitoring", "evernote logging", "evernote metrics", "evernote observability".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-reliability-patterns

Graceful degradation when Notion is down: offline cache, retry with exponential backoff, circuit breaker, health checks, and fallback content. Use when building fault-tolerant Notion integrations for production. Trigger with phrases like "notion reliability", "notion circuit breaker", "notion offline fallback", "notion health check", "notion graceful degradation".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-reference-architecture

Design and implement a production-ready Notion integration architecture with proper layering, caching, error handling, and testing strategies. Use when designing new Notion integrations, reviewing existing project structure, establishing architecture standards for Notion applications, or migrating from ad-hoc API calls to a layered architecture. Trigger: "notion architecture", "notion project structure", "notion reference architecture", "notion integration design", "notion layered architecture", "notion service pattern".

2,274 Updated today
jeremylongshore