Skip to content

requestContext not propagated to workflow in networkLoop #12330

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1465416421918904410:

Open in Discord

When using agent.network(), the requestContext is not passed to the internal workflow's stream() and resumeStream() calls, causing workflow_run spans to lack metadata (e.g., userId, resourceId). This breaks observability pipelines that rely on span metadata for billing, analytics, or audit logging.

Metadata

Metadata

Assignees

Labels

Agent NetworkIssues with Mastra's Agent Network primitiveAgentsIssues regarding Mastra's Agent primitiveObservability (AI Telemetry)Issues related to AI related Observability/Telemetry (Traces, Metrics, Logs)bugSomething isn't workingdiscordFor issues created from Discord discussions.effort:mediumimpact:hightrio-tnt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions