LangChain
The BlueRock runtime provides native, out-of-the-box telemetry tracing for the LangChain ecosystem. By embedding the bluerock sensor directly into the execution space, BlueRock automatically hooks into LangChain's internal orchestration engines without requiring architectural changes to the codebase or manual analytics callbacks.
Core Architecture

Environment Setup
Provision the Isolated Project Environment Initialize the local configuration layout with
uvto ensure strict, repeatable dependency management across testing environments:Inject and Register BlueRock Sensors Deploy the custom BlueRock telemetry sensor library directly within the activated workspace context:
Establish the Associated Tool Layer (MCP Sandbox) Launch the isolated Model Context Protocol tool container, ensuring the container bridges telemetry hooks securely using a shared socket mount configuration:
Agent Execution Block
Create the localized controller file as file_agent.py to initiate runtime actions. Ensure appropriate authorization environment variables (OPENAI_API_KEY) are bound to the parent terminal session:
Captured OpenTelemetry (OTEL) Lifecycle Events
During validation phases, the active bluepython sensor writes structured payloads tracking the progression of agent execution states.
Phase 1: Chain Initialization (chain_start)
Triggers at the point of boundary entry, registering raw intent values before prompt parsing steps.
Phase 2: System & Context Compilation (llm_start)
Logs model requests immediately after prompt construction, revealing state tracking injected by MCP adapters (TextResourceContents derived from the file server mount).
Phase 3: Structural Action Interception (tool_start / tool_end)
Captures downstream execution tasks, auditing intent values and programmatic outputs before mutation phases proceed.
Invocation Trace (tool_start):
Resolution Trace (
tool_end):
Phase 4: Resolution Convergence (chain_end)
Marks terminal parsing completion steps, mapping execution-wide performance metadata (including provider footprints, resource token counts, and internal fingerprint registers).
Last updated