exa-observability

Featured

Set up monitoring, metrics, and alerting for Exa search integrations. Use when implementing monitoring for Exa operations, building dashboards, or configuring alerting for search quality and latency. Trigger with phrases like "exa monitoring", "exa metrics", "exa observability", "monitor exa", "exa alerts", "exa 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

# Exa Observability ## Overview Monitor Exa search API performance, result quality, and cost efficiency. Key metrics: search latency by type (neural ~500-2000ms, keyword ~200-500ms), result count per query, cache hit rates, error rates by status code, and daily search volume for budget tracking. ## Prerequisites - Exa API integration in production - Metrics backend (Prometheus, Datadog, or OpenTelemetry) - Alerting system (PagerDuty, Slack, or equivalent) ## Instructions ### Step 1: Instrument the Exa Client ```typescript import Exa from "exa-js"; const exa = new Exa(process.env.EXA_API_KEY); // Generic metrics emitter (replace with your metrics library) function emitMetric(name: string, value: number, tags: Record<string, string>) { // Prometheus: histogram/counter.observe(value, tags) // Datadog: dogstatsd.histogram(name, value, tags) // OpenTelemetry: meter.createHistogram(name).record(value, tags) console.log(`[metric] ${name}=${value}`, tags); } async function trackedSearch(query: string, options: any = {}) { const start = performance.now(); const type = options.type || "auto"; const hasContents = options.text || options.highlights || options.summary; try { const method = hasContents ? "searchAndContents" : "search"; const results = hasContents ? await exa.searchAndContents(query, options) : await exa.search(query, options); const duration = performance.now() - start; emitMetric("exa.search.duration_ms", duration, { t...

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