• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Monitor AI Agents in Production with Zero Code

Sascha Оффлайн

Sascha

Заместитель Администратора
Команда форума
Администратор
Регистрация
9 Май 2015
Сообщения
1,605
Баллы
155
Learn to monitor AI agents in production with Amazon Bedrock AgentCore Observability. Zero-code implementation, real-time traces, and production-ready dashboards. Step-by-step tutorial.
🇻🇪🇨🇱

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.




Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



You deployed your AI agent to production with

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

and added

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

. Now users interact with your agent, but can you answer these questions: How do you trace agent decisions? What happens when behavior is inconsistent? How do you detect performance degradation?

Traditional monitoring shows infrastructure status. Agent observability reveals whether your AI makes effective decisions. Amazon Bedrock AgentCore Observability solves this problem. When you deploy your agent on AgentCore Runtime, observability works automatically—complete visibility without instrumentation code or configuration changes.

📊 AgentCore Observability by Services Overview

ServicePurposeObservability Features
AgentCore RuntimeServerless execution Automatic observability without code changes
AgentCore MemoryCross-session persistenceBuilt-in span tracking
AgentCore GatewayAPI managementTool invocation monitoring
AgentCore IdentityCredential managementAccess logging
AgentCore Observability*Production monitoringOpenTelemetry traces, metrics, dashboards
🧩 Understanding Sessions, Traces, and Spans


AgentCore Observability uses a three-tier hierarchy providing visibility at different granularity levels:


  • 1️⃣ Sessions represent complete interaction context between you and your agent, from initialization to termination. Sessions provide high-level views of engagement patterns, monitor agent performance, and show how you interact with agents over time. Learn more in

    Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

    documentation.


  • 2️⃣ Traces capture single request-response cycles within sessions—the complete execution path from agent invocation to response. Traces include request details, processing steps, tool invocations, resource utilization, error information, and response generation. This provides deep insights into internal agent workings for troubleshooting and optimization. Learn more in

    Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

    documentation.


  • 3️⃣ Spans represent discrete, measurable units of work within traces—fine-grained operations with defined start and end times. Spans capture operation names, timestamps, parent-child relationships, tags, events, and status information. Spans form hierarchical structures within traces; for example, a "process user query" span contains child spans for "parse input," "retrieve context," and "generate response." Learn more in

    Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

    documentation.
🚀 The AgentCore Observability Advantage

  • Zero Development - Automatic instrumentation for Runtime agents
  • Complete Visibility - Sessions, traces, spans, and metrics in one place
  • Pre-Built Dashboards - CloudWatch GenAI Observability ready to use
  • Framework Agnostic - Works with Strands Agents, LangChain, CrewAI, or custom code
  • OpenTelemetry Standard - Industry-standard telemetry format
  • Production-Grade - Built for scale and enterprise reliability
📖 Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation.
Step-by-Step: Enable CloudWatch for AI Agent Monitoring

🔧 Console Setup (5-minute tutorial)


Important: This is a one-time setup per AWS account. After you enable it, all AgentCore agents automatically send observability data to CloudWatch.

Via Console:

  1. Open the

    Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

  2. Navigate to Application SignalsTransaction Search
  3. Choose Enable Transaction Search
  4. Select the checkbox to ingest spans as structured logs
  5. Set indexing percentage to 1% (free tier) or adjust based on your requirements


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Wait 10 minutes after enabling for spans to become available for search and analysis.

Learn more:

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



✨ Verify Observability is Active


When you deploy your agent with agentcore launch, observability activates automatically. No additional configuration needed.

Use the AgentCore CLI to check your agent's status:

agentcore status


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Your agent now sends session metrics, trace data with spans, performance metrics (latency, duration, tokens), and error tracking.

📖 Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation.
📊 Navigate the GenAI Observability Dashboard


Access your agent's observability data through the CloudWatch GenAI dashboard:

  1. Open the

    Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

  2. In the left navigation, select GenAI Observability
  3. Click the Bedrock AgentCore tab

The main dashboard provides overview metrics: Total Agents, Sessions, Traces, Error Rate, and Throttle Rate. Adjust time filters to view specific periods (last hour, day, week, or custom range).


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Yes, I don't have many agents on this account.
🤖 Analyzing AI Agent Performance: Dashboard Deep Dive


The dashboard offers three specialized views for detailed analysis:

Agents View shows all agents (Runtime and non-Runtime hosted), agent-specific performance metrics, session and trace counts per agent, error rates, and visualization graphs. Use this view to monitor operational health and compare performance across agents.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Sessions View displays all sessions across agents, session duration, request counts, session-level errors, user engagement patterns, and session timelines. Filter by Session ID, Agent, Time range, Duration, or Error status. Key insights reveal longest sessions, error locations, typical conversation length, and average requests per session.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Traces View provides detailed trace information, complete span breakdowns, execution timelines (waterfall visualization), tool invocation sequences, and error stack traces. Use this view to debug issues, optimize bottlenecks, and understand complete execution flow.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



📖 Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation.
🔍 Analyze Trace Details


Click any Trace ID in the Traces View to open detailed visualization. The trace shows a tree structure of operations (spans) with parent-child relationships. A waterfall chart displays the execution timeline, identifying sequential operations, parallel operations, bottlenecks, and error points.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Click any span to see detailed information in three tabs: Attributes (operation metadata, input parameters, output results), Events (significant occurrences with timestamps), and Duration and Status (exact start/end times, total duration, success/error status).


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



📖 Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation.
You achieved comprehensive production monitoring without writing instrumentation code. AgentCore Runtime handles this automatically.

📈 Expanding Observability to All AgentCore Services


AgentCore Runtime automatically creates CloudWatch log groups for service-provided logs. However, for Memory, Gateway, Identity, and Built-in Tools resources, you must configure log destinations manually. Follow the

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

steps.

Since Memory, Gateway, Identity, and Built-in Tools don't appear in the GenAI Observability dashboard, access their metrics directly in CloudWatch:

AgentCore Memory tracks memory lifecycle operations: Latency, Invocations, System/User Errors, Throttles, and Creation Count. Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



AgentCore Gateway monitors tool invocations: Invocations, Latency, Duration, TargetExecutionTime, Throttles, Errors, and TargetType. Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation.

AgentCore Identity tracks authentication operations: WorkloadAccessTokenFetch metrics, ResourceAccessTokenFetch metrics, and ApiKeyFetch metrics. Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation.

Built-in Tools monitors Code Interpreter and Browser: Tool Invocations, Browser TakeOver events, and Resource Usage (CPU, Memory). Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

documentation

📈 Monitor Key Performance Metrics


AgentCore automatically tracks critical metrics for production monitoring. Learn more in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



🎉 What You've Learned


In this tutorial, you mastered production observability for AI agents without writing instrumentation code. You activated CloudWatch Transaction Search for automatic observability, understood the observability hierarchy (sessions, traces, spans), navigated the GenAI Observability Dashboard, analyzed trace details with waterfall visualizations, extended observability to Memory, Gateway, Identity, and Built-in Tools, and used OpenTelemetry standards for flexibility.

AgentCore Observability provides zero-code instrumentation for Runtime agents and comprehensive metrics for all services—giving you production-grade visibility into agent behavior, performance, and operational health.

🔗 Complete AgentCore Series


Master production AI agents with this series:

1️⃣

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



2️⃣

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



3️⃣ Monitor AI Agents in Production Without New Development ← You are here

❤ If This Helped You


❤ Heart it - helps others discover this tutorial

🦄 Unicorn it - if it blew your mind

🔖 Bookmark it - for when you need it later

📤 Share it - with your team or on social media

📚 Resources


Happy building! 🚀


¡Gracias!

🇻🇪🇨🇱

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.




Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.





Источник:

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу