We Provide LLM Services That You Can Trust!
Our LLM models are top of class. These models help in the automation of software drastically reducing the cost of development.
A proprietary technology framework designed to enhance reliability and performance of enterprise systems.
LEARN MOREEnhancing software code automation with AI and LLM can significantly improve efficiency, accuracy, and productivity in software development.
LEARN MORE
We maintain access to some of the most talented people in the industry
We stand by our DSM platform and can jump in at any time to help trouble shoot any of your applications
As part of our DSM guarantee we can take the data generated and provide Diagnostics and help trouble shoot imposible issues on your application.
As a customer of Nuvol 9, our DSM platform will provide you with a free application health check.

A lightweight envelope system for .NET that wraps every operation result with structured telemetry: timing, error codes, caller context, and trace headers.
DSM (Dynamic Stability Modules) is a proprietary technology framework designed to enhance reliability and performance of enterprise systems. At its core, DSM provides a generic wrapper DSMEnvelope<T> around data and execution metadata that enables:
Every operation is automatically timed with precise start time, end time, and execution duration measured in milliseconds.
Unique identifiers and HTTP trace headers enable tracking requests across microservices and distributed systems.
Captures exception details, standardized error codes, caller information including class, method, file path, and line number.
Link nested operations for complete request traces with automatic header propagation through the call stack.
The DSM lifecycle follows a simple, consistent pattern:
Create an envelope using InitWithCaller() (recommended for async) or Init(). The envelope captures caller information and starts timing immediately.
var envelope = DSMEnvelope<PersonDto>
.InitWithCaller(nameof(PersonController))
.CaptureAndSetHeaders(HttpContext);Automatically capture HTTP headers for distributed tracing:
Perform your business logic, then mark the operation as successful or capture exceptions:
// Success
envelope.Success(result);
// Error
catch (Exception ex) {
envelope.CaptureException(ex);
}Lock parent envelopes in a failure state when inner operations fail, preventing status changes and ensuring error propagation through the stack.
Each DSMEnvelope captures comprehensive metadata about the operation:
DSM includes a comprehensive error code system and structured validation handling:
DSMEnvelopeCodeEnum defines codes for different error categories:
The ValidationErrorCollector provides fluent API for collecting field-level errors:
var validator = new ValidationErrorCollector()
.ValidateRequired(request.Email, "email")
.ValidateEmail(request.Email, "email")
.ValidateLength(request.Name, "name", 2, 100);
if (validator.HasErrors()) {
return envelope.ValidationFailed(validator);
}Validation errors are structured as a dictionary mapping field names to error message lists, perfect for API responses.
DSM provides powerful capabilities for tracking operations across service boundaries:
A singleton stack-based manager for handling nested envelopes with automatic parent-child relationships:
// Initialize and push onto stack
var envelope = DSMEnvelopeManager.Instance
.InitEnvelopeWithCaller<PersonDto>(
nameof(PersonController),
httpContext: HttpContext
);
// Headers automatically propagate to child operations
var childResult = await _service.GetData();
// Pop when done
DSMEnvelopeManager.Instance.PopEnvelope();When an error occurs in a nested operation, freeze the entire stack to prevent inconsistent states:
catch (Exception ex) {
envelope.CaptureException(ex);
DSMEnvelopeManager.Instance.FreezeStackWith(envelope);
}DSM envelopes create a high-fidelity event stream describing low-level execution, timing, error states, and call context. This structured data can be fed to AI/agent systems or Model Context Protocol (MCP) monitoring to:
Trace execution flow with precise timing and caller context for rapid root-cause analysis.
Monitor for intrusion attempts and suspicious patterns through comprehensive operation logging.
Identify bottlenecks and regressions with millisecond-accurate execution time tracking.
Maintain audit trails with immutable operation records including timestamps and user context.
Here's a complete example of using DSM in an ASP.NET Core controller:
[HttpGet("{id}")]
public async Task<ActionResult<DSMEnvelope<PersonDto>>> GetPerson(int id)
{
var envelope = DSMEnvelope<PersonDto>
.InitWithCaller(nameof(PersonController))
.CaptureAndSetHeaders(HttpContext);
try
{
var person = await _service.GetByIdAsync(id);
if (person == null)
{
envelope.SetState(
DSMEnvelopeCodeManager.Manager
.Find(DSMEnvelopeCodeEnum.API_APPVLD_02001),
$"Person {id} not found"
);
return NotFound(envelope);
}
envelope.Success(person);
return Ok(envelope);
}
catch (Exception ex)
{
envelope.CaptureException(ex);
return StatusCode(500, envelope);
}
}Automatically captures HTTP headers from HttpContext for distributed tracing:
DSMEnvelopeAttribute can auto-wrap methods at entry/exit:
DSM provides multiple output formats for different use cases:
Color-coded console output with comprehensive details for development and debugging. Yellow for initialized state, green for success, red for errors.
Call ToRawJson() to get JSON output perfect for logging pipelines, analytics systems, and AI/MCP integration.
Contact us today for a free consultation on how DSM can transform your application monitoring and debugging capabilities.
Contact Us