shopify-observability

Featured

Set up observability for Shopify app integrations with query cost tracking, rate limit monitoring, webhook delivery metrics, and structured logging. Trigger with phrases like "shopify monitoring", "shopify metrics", "shopify observability", "monitor shopify API", "shopify alerts", "shopify dashboard".

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# Shopify Observability ## Overview Instrument your Shopify app to track GraphQL query cost, rate limit consumption, webhook delivery success, and API latency. Shopify-specific metrics that generic monitoring misses. ## Prerequisites - Prometheus or compatible metrics backend - pino or similar structured logger - Shopify API client with response interception ## Instructions ### Step 1: Shopify-Specific Metrics ```typescript import { Registry, Counter, Histogram, Gauge } from "prom-client"; const registry = new Registry(); // GraphQL query cost tracking const queryCostHistogram = new Histogram({ name: "shopify_graphql_query_cost", help: "Shopify GraphQL actual query cost", labelNames: ["operation", "shop"], buckets: [1, 10, 50, 100, 250, 500, 1000], registers: [registry], }); // Rate limit headroom const rateLimitGauge = new Gauge({ name: "shopify_rate_limit_available", help: "Shopify rate limit points currently available", labelNames: ["shop", "api_type"], registers: [registry], }); // REST bucket state const restBucketGauge = new Gauge({ name: "shopify_rest_bucket_used", help: "REST API leaky bucket current fill level", labelNames: ["shop"], registers: [registry], }); // API request duration const apiDuration = new Histogram({ name: "shopify_api_duration_seconds", help: "Shopify API call duration", labelNames: ["operation", "status", "api_type"], buckets: [0.1, 0.25, 0.5, 1, 2, 5, 10], registers: [registry], }); // Webhook pro...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category