flexport-observability

Featured

Set up observability for Flexport logistics integrations with metrics, structured logging, distributed tracing, and alerting dashboards. Trigger: "flexport monitoring", "flexport observability", "flexport metrics", "flexport alerts".

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

# Flexport Observability ## Overview Full observability stack for Flexport integrations: Prometheus metrics for API health, pino structured logging for debugging, OpenTelemetry tracing for latency analysis, and Grafana dashboards for monitoring. ## Instructions ### Step 1: Prometheus Metrics ```typescript import { Counter, Histogram, Gauge, register } from 'prom-client'; const flexportRequests = new Counter({ name: 'flexport_api_requests_total', help: 'Total Flexport API requests', labelNames: ['method', 'endpoint', 'status'], }); const flexportLatency = new Histogram({ name: 'flexport_api_latency_seconds', help: 'Flexport API response time', labelNames: ['endpoint'], buckets: [0.1, 0.25, 0.5, 1, 2.5, 5, 10], }); const flexportRateLimit = new Gauge({ name: 'flexport_rate_limit_remaining', help: 'Remaining API calls in current window', }); // Instrumented fetch wrapper async function instrumentedFlexport(path: string, options: RequestInit = {}) { const endpoint = path.split('?')[0]; const timer = flexportLatency.startTimer({ endpoint }); try { const res = await fetch(`https://api.flexport.com${path}`, { ...options, headers: { ...headers, ...options.headers } }); flexportRequests.inc({ method: options.method || 'GET', endpoint, status: res.status.toString() }); const remaining = res.headers.get('X-RateLimit-Remaining'); if (remaining) flexportRateLimit.set(parseInt(remaining)); timer(); return res; } catch (err) { f...

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