{"slug": "reskpoints-ai-agent-logging-with-sampling-masking-and-multi-export", "title": "ReskPoints: AI Agent Logging with Sampling, Masking, and Multi-Export", "summary": "ReskPoints, a new Python library from Resk Security, provides purpose-built logging for AI agent loops with features like sampling, masking, and multi-export to console, Datadog, Prometheus, and OpenTelemetry. The library captures every agent action with context, including tool calls, latency, and token counts, and requires Python 3.13+ with zero required dependencies beyond the chosen exporters.", "body_md": "ReskPoints makes every agent action observable. Console, Datadog, Prometheus, OpenTelemetry — one install, all exporters.\n\n**Links:**\n\nA typical AI agent orchestrator makes dozens of tool calls per user request. Each call has request parameters a response latency and a success or failure state. When something goes wrong you need to replay what the agent was thinking and doing.\n\nStandard Python logging gives you raw text. Datadog APM gives you traces but not the agent intent layer. You need a purpose-built logger that captures the agent loop not just the HTTP calls.\n\nReskPoints is a Python library that hooks into your agent loop and records every action with context. Here is the core API:\n\n``` python\nfrom reskpoints import AgentLogger\n\nlogger = AgentLogger(\n    service=\"my-agent\",\n    sampling_rate=0.1,   # keep 10 percent of actions\n    exporters=[\n        \"console\",\n        \"datadog\",\n        \"prometheus\"\n    ],\n    masks=[\n        \"api_key\",\n        \"user.email\"\n    ]\n)\n\n# Inside your agent loop\nlogger.log_action(\n    action=\"tool_call\",\n    tool=\"search_docs\",\n    input={\"query\": user_input},\n    output=result,\n    duration_ms=340,\n    token_count=1200\n)\n```\n\nThe library works with Python 3.13+ and has zero required dependencies beyond the exporters you use.\n\n```\npip install reskpoints\n```\n\nThen add one `AgentLogger`\n\ninstance to your agent loop and wire your exporters. Full docs on GitHub.\n\n[https://github.com/Resk-Security/ReskPoints](https://github.com/Resk-Security/ReskPoints)\n\nWhat logging setup do you use for your AI agents?", "url": "https://wpnews.pro/news/reskpoints-ai-agent-logging-with-sampling-masking-and-multi-export", "canonical_source": "https://dev.to/resk/reskpoints-ai-agent-logging-with-sampling-masking-and-multi-export-5g88", "published_at": "2026-07-11 07:01:00+00:00", "updated_at": "2026-07-11 07:13:21.464304+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "mlops"], "entities": ["ReskPoints", "Resk Security", "Datadog", "Prometheus", "OpenTelemetry"], "alternates": {"html": "https://wpnews.pro/news/reskpoints-ai-agent-logging-with-sampling-masking-and-multi-export", "markdown": "https://wpnews.pro/news/reskpoints-ai-agent-logging-with-sampling-masking-and-multi-export.md", "text": "https://wpnews.pro/news/reskpoints-ai-agent-logging-with-sampling-masking-and-multi-export.txt", "jsonld": "https://wpnews.pro/news/reskpoints-ai-agent-logging-with-sampling-masking-and-multi-export.jsonld"}}