Series II: From infrastructure to agentic projects in production. Episode 14 of 20.
The fictional B2B portal featured in the series has passed launch checks. Still, a user might encounter a stuck request, even though the server responds. For an SME, the next decision isn’t about buying the most feature-rich dashboard, but about choosing the signals that reflect their users’ experience and allow someone to step in. We propose a minimum level of observability, applied first to a single crucial flow.
Observability starts with a question
Observability is the ability to understand the internal state of a system from the signals it emits. Telemetry refers to the data collected about its operation. The useful question is: “Why did this request not complete?”, not “How many charts do we have?”.
We continue with the portal for requests and documents through a hypothetical scenario. An uploaded document goes into a processing queue. A workflow process picks it up and, in a proposed pilot, an agent embedded in the app prepares a summary for human review. This is not the coding agent that changes the repository—the codebase. The first carries out a product function; the second helps the team build it.
Three signals, one request
A log records an event: processing started, failed, or finished. A metric is a numeric measurement tracked over time. A trace, a distributed trace, connects operations from the same execution across services. A span is an operation within this trace, with a start, finish, and descriptive attributes.
Correlation means linking this evidence using common identifiers. For the portal, we connect request receipt, message publication to the queue, processing, and calls to the model or other services. The context must be transmitted via asynchronous messages as well, which are processed later; otherwise, the flow appears broken. The trace identifier does not replace access rights checks.
The Dapper technical paper, published by Google in 2010, is a landmark for distributed tracing. It does not prove our portal’s performance. The practical lesson is that timings for isolated services don’t always explain the wait for the entire process.
OpenTelemetry is not the whole system
OpenTelemetry provides tools and conventions for producing, collecting, and exporting telemetry. It doesn’t, by itself, solve storage, search, and alerting. We separately choose where the data goes, who can access it, and how much storing it costs.
Instrumentation means adding mechanisms that emit signals. We start with the web service and the process that picks up documents, then add the steps relevant to the user. We record the app version and environment to compare behavior before and after the controlled release from the previous episode.
At the review on October 15, 2026, the OpenTelemetry conventions for generative AI in the dedicated repository are labeled “Development”. We don’t treat all names and fields as final interfaces. We pin the instrumentation library versions and test compatibility after updating. If an integration does not provide a measurement, we display it as unavailable, not as zero.
The portal’s minimal dashboard
The starting proposal combines the process outcome with technical explanations. A successful web response can only confirm receipt of the document, not completion of processing.
Team’s question | Proposed signal |
|---|---|
Does the user receive the result? | Completed, failed, and pending requests |
Where is time lost? | Total duration, stage durations, and age of the oldest message |
What is the AI component doing? | Call durations, errors, retries, and available token usage |
Can we trust our visibility? | Resources in use, export errors, and unexpected lack of telemetry |
A token is a unit of text processed by the model; reported usage is not automatically a bill. Calculating costs depends on the provider’s conditions and usage context. For durations, we can track p95, the percentile below which roughly 95% of observations for the chosen interval fall. We also show the number of observations: an interval with few requests cannot reliably describe future load.
We avoid email addresses and each request’s identifiers in metric labels. These can increase cardinality, meaning the number of distinct label combinations, making collection and analysis more expensive. Investigation-relevant details are recorded in a controlled way in logs and traces.
In our scenario, a delayed summary does not immediately justify switching the model. The trace might reveal that the document waited in the queue and the AI call was brief. In that case, we investigate the capacity of the workflow, not prompt optimization. If average duration goes up after a rollout, we filter by installed version and compare similar requests, careful not to confuse simple coincidence with a demonstrated cause.
Before scaling up, we also trigger a known error in an isolated environment. We check that the event appears in the log, is counted in metrics, and can be linked to the corresponding trace. This test shows whether instrumentation explains the real issue, not just whether it sends data.
An alert must trigger an action
As a strictly hypothetical example, the team might test an alert if documents are waiting for over ten minutes and the situation persists for five minutes. These thresholds are to illustrate the mechanism, not to represent an SLA or universally appropriate values. We adjust them based on user needs and portal measurements.
The alert is sent to the designated operational owner and includes the environment, the interval, the observed effect, and a link to intervention guidelines. The responsible person checks if the workflow is running, if messages are being picked up, and if the external dependency is responding. They don’t restart all operations automatically: some retries could duplicate actions.
We test the rule in pre-production, the verification environment before production, by controlledly stopping the workflow. We confirm receipt of the notification and the alert’s disappearance after remediation. An alert with no available owner and no clear action is just noise.
Visibility without copying documents
For this process, we propose an explicit allowlist of fields: service, version, operation type, duration, result, and error category. We do not, by default, send documents, prompts, full responses, credentials, or authentication headers to the observability platform.
We also check data automatically emitted by libraries. Removal of sensitive information must happen before external storage is reached, not just by hiding on a screen. Access is restricted, and retention periods are set based on risk and purpose. Replacing an identifier with a hash does not guarantee anonymization.
Sampling keeps only a fraction of traces to control volume. The absence of a trace does not prove the absence of an execution. We document what is sampled and monitor collection health separately, so a telemetry issue isn’t mistaken for perfect operation.
A successful execution doesn’t mean a correct response
The agent may finish quickly and without technical errors yet skip an obligation in the document. We keep quality assessment separate, with verified samples and acceptance criteria, discussed in the episode about agent evaluation. Telemetry supports investigation but does not single-handedly establish the summary’s accuracy.
The usable result is a report of the followed path, the signals collected, forbidden fields, the dashboard, and the alert’s owner. The development agent can propose instrumentation and tests; the team verifies what data actually gets exported. The next episode adds backup, recovery, and incident response, for situations where diagnosis must be followed by service restoration.
Sources
Sources verified on October 15, 2026:
- OpenTelemetry, Signals, Traces and Metrics, about signals, spans, context propagation, and cardinality.
- OpenTelemetry, Generative AI semantic conventions, about the domain conventions and Development stage.
- OpenTelemetry, Handling sensitive data, on minimization and the limits of anonymization by hashing.
- Google, Site Reliability Engineering, Monitoring Distributed Systems, on useful monitoring and alerts.
- Sigelman et al., Dapper, a Large-Scale Distributed Systems Tracing Infrastructure, 2010, research technical report on distributed tracing.
Understand errors and delays in your applications
Want to find out where errors and delays occur in your applications? Chat with i8 about observability, protected data, and alerts that drive action.



