salesforce-observability

Featured

Set up observability for Salesforce integrations with API limit monitoring, error tracking, and alerting. Use when implementing monitoring for Salesforce operations, tracking API consumption, or configuring alerting for Salesforce integration health. Trigger with phrases like "salesforce monitoring", "salesforce metrics", "salesforce observability", "monitor salesforce", "salesforce alerts", "salesforce API usage dashboard".

AI & Automation 2,266 stars 315 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

# Salesforce Observability ## Overview Instrument Salesforce integrations with API limit monitoring, SOQL performance tracking, error classification, and alerting. Uses Salesforce's built-in Limits API and EventLogFile for deep visibility. ## Prerequisites - jsforce connection configured - Prometheus or compatible metrics backend (optional) - Grafana or similar dashboarding tool (optional) - Salesforce Enterprise+ for EventLogFile access ## Instructions ### Step 1: API Limit Monitoring (Core Metric) ```typescript import { getConnection } from './salesforce/connection'; import { Registry, Gauge, Counter, Histogram } from 'prom-client'; const registry = new Registry(); // The single most important Salesforce metric const apiLimitGauge = new Gauge({ name: 'salesforce_api_limit_remaining', help: 'Remaining daily API calls', registers: [registry], }); const apiLimitMaxGauge = new Gauge({ name: 'salesforce_api_limit_max', help: 'Maximum daily API calls', registers: [registry], }); const apiUsagePercent = new Gauge({ name: 'salesforce_api_usage_percent', help: 'Percentage of daily API calls used', registers: [registry], }); // Poll limits every 5 minutes (each poll = 1 API call) setInterval(async () => { try { const conn = await getConnection(); const limits = await conn.request('/services/data/v59.0/limits/'); apiLimitGauge.set(limits.DailyApiRequests.Remaining); apiLimitMaxGauge.set(limits.DailyApiRequests.Max); const used = limi...

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

salesforce-rate-limits

Implement Salesforce API limit management, backoff, and quota monitoring. Use when handling REQUEST_LIMIT_EXCEEDED errors, implementing retry logic, or optimizing API request throughput for Salesforce. Trigger with phrases like "salesforce rate limit", "salesforce API limit", "salesforce 403", "salesforce retry", "salesforce governor limits", "API quota".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-advanced-troubleshooting

Apply Salesforce advanced debugging with debug logs, SOQL query plans, and EventLogFile analysis. Use when standard troubleshooting fails, investigating SOQL performance issues, or analyzing Apex governor limit violations. Trigger with phrases like "salesforce hard bug", "salesforce debug log", "salesforce governor limit", "salesforce query plan", "salesforce deep debug", "SOQL slow".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-debug-bundle

Collect Salesforce debug evidence including API limits, debug logs, and org info for support tickets. Use when encountering persistent issues, preparing support tickets, or collecting diagnostic information for Salesforce problems. Trigger with phrases like "salesforce debug", "salesforce support bundle", "collect salesforce logs", "salesforce diagnostic", "salesforce debug log".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-cost-tuning

Optimize Salesforce costs through API call reduction, edition selection, and license management. Use when analyzing Salesforce costs, reducing API consumption, or choosing the right Salesforce edition for your integration needs. Trigger with phrases like "salesforce cost", "salesforce pricing", "reduce salesforce costs", "salesforce license", "salesforce API usage", "salesforce budget".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-known-pitfalls

Identify and avoid Salesforce anti-patterns including SOQL N+1, governor limit violations, and API waste. Use when reviewing Salesforce code for issues, onboarding new developers, or auditing existing Salesforce integrations for best practices violations. Trigger with phrases like "salesforce mistakes", "salesforce anti-patterns", "salesforce pitfalls", "salesforce what not to do", "salesforce code review".

2,266 Updated today
jeremylongshore