
built-in-metrics
Instrument an existing codebase with LaunchDarkly config tracking
by launchdarklyFree
Description
built-in-metrics is a LaunchDarkly skill that adds agent metrics around an existing provider call in your codebase. It first audits what is already there, then picks the right tier on a four-step ladder and implements the least code that still captures what the Monitoring tab needs: duration, input and output tokens, success or error, and time to first token when streaming. The top tier is a managed runner, used for conversational calls, where the SDK tracks everything with no tracker calls. The second tier is a provider package with trackMetricsOf, for one-shot completions, structured output or agent steps, where a package exists for OpenAI, LangChain or Vercel in Node, and OpenAI or LangChain in Python. The lower tiers add a custom extractor and manual tracker calls. The page warns that writing manual tracker calls by default brings drift and missed metrics. The skill tells the agent to use the highest tier that fits the shape of the call and to stop at the first one that does. It is aimed at developers who already call a model provider and want those calls measured in LaunchDarkly.…
Highlights
- Audits existing provider calls before changing them
- Four tiers from managed runner to custom tracker
- Tracks duration, tokens, success and time to first token
- Packages for OpenAI, LangChain and Vercel
Ratings & Reviews
No ratings yet
Be the first to rate built-in-metrics.
People also visit
built-in-metrics FAQ
What does the skill change?
It adds LaunchDarkly metric tracking around an existing provider call, choosing the highest tier that fits the shape of the call.
Which metrics does it capture?
Duration, input and output tokens, success or error, and time to first token when streaming.
Which provider packages does it cover?
In Node, @launchdarkly/server-sdk-ai-openai, -langchain and -vercel. In Python, launchdarkly-server-sdk-ai-openai and -langchain.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best built-in-metrics alternatives?
Popular alternatives to built-in-metrics include launchdarkly-metric-instrument, apply and plan. See all built-in-metrics alternatives









