navan-observability

Featured

Use when setting up monitoring, logging, and alerting for Navan API integrations in production environments. Trigger with "navan observability" or "navan monitoring" or "navan api dashboards".

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

# Navan Observability ## Overview Navan exposes no built-in API metrics dashboard — monitoring is your responsibility. This skill implements structured logging, latency tracking, error classification, and alerting for Navan REST API integrations. Since Navan uses OAuth 2.0 with token expiration, observability must also cover the authentication lifecycle. Patterns are provided for Datadog, CloudWatch, and Prometheus/Grafana. ## Prerequisites - **Running Navan API integration** with OAuth 2.0 credentials - **Monitoring platform** — Datadog, AWS CloudWatch, or Prometheus/Grafana - **Node.js 18+** or equivalent runtime for the instrumentation middleware - API base URL: `https://api.navan.com/v1` ## Instructions ### Step 1 — Instrument API Calls with Structured Logging Wrap every Navan API call with timing, status, and correlation tracking: ```typescript import { randomUUID } from 'crypto'; interface NavanApiLog { event: 'navan.api.request'; correlation_id: string; method: string; endpoint: string; status: number; duration_ms: number; error_type?: 'auth' | 'rate_limit' | 'server' | 'client' | 'network'; timestamp: string; } async function navanRequest( method: string, endpoint: string, token: string, body?: object ): Promise<Response> { const correlationId = randomUUID(); const start = performance.now(); try { const response = await fetch(`https://api.navan.com/v1/${endpoint}`, { method, headers: { 'Authorization': `...

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

navan-ci-integration

Use when setting up CI/CD pipelines that validate Navan API integrations, run booking data health checks, or generate automated compliance reports. Trigger with "navan ci integration" or "navan pipeline" or "navan github actions".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-upgrade-migration

Use when handling Navan API changes in production — defensive coding patterns, schema validation, deprecation monitoring, and gradual rollout strategies for unversioned APIs. Trigger with "navan upgrade migration" or "navan api change handling".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-install-auth

Set up OAuth 2.0 authentication for the Navan REST API. Use when configuring a new Navan integration or rotating API credentials. Trigger with "install navan", "setup navan auth", "navan credentials", "navan oauth".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-security-basics

Secure Navan API credentials with OAuth 2.0 best practices, SSO/SAML, and SCIM provisioning. Use when hardening a Navan integration, rotating credentials, or configuring identity provider SSO. Trigger with "navan security", "navan sso", "navan credentials", "navan scim".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-reference-architecture

Use when designing a production Navan API integration architecture — API gateway, token management, data sync pipelines, ERP connectors, and monitoring stack. Trigger with "navan reference architecture" or "navan integration architecture".

2,266 Updated today
jeremylongshore