@mastra/mssql 1.0.0 → 1.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { MastraError, ErrorCategory, ErrorDomain } from '@mastra/core/error';
2
- import { MemoryStorage, TABLE_THREADS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, createStorageErrorId, normalizePerPage, calculatePagination, ObservabilityStorage, TABLE_SPANS, SPAN_SCHEMA, listTracesArgsSchema, ScoresStorage, TABLE_SCORERS, WorkflowsStorage, TABLE_WORKFLOW_SNAPSHOT, MastraCompositeStore, TraceStatus, getDefaultValue, transformScoreRow as transformScoreRow$1 } from '@mastra/core/storage';
2
+ import { MemoryStorage, TABLE_THREADS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, createStorageErrorId, normalizePerPage, calculatePagination, ObservabilityStorage, TABLE_SPANS, SPAN_SCHEMA, listTracesArgsSchema, toTraceSpans, ScoresStorage, TABLE_SCORERS, WorkflowsStorage, TABLE_WORKFLOW_SNAPSHOT, MastraCompositeStore, TraceStatus, getDefaultValue, transformScoreRow as transformScoreRow$1 } from '@mastra/core/storage';
3
3
  import sql from 'mssql';
4
4
  import { MessageList } from '@mastra/core/agent';
5
5
  import { MastraBase } from '@mastra/core/base';
@@ -2880,11 +2880,13 @@ var ObservabilityMSSQL = class _ObservabilityMSSQL extends ObservabilityStorage
2880
2880
  perPage,
2881
2881
  hasMore: (page + 1) * perPage < count
2882
2882
  },
2883
- spans: result.recordset.map(
2884
- (span) => transformFromSqlRow({
2885
- tableName: TABLE_SPANS,
2886
- sqlRow: span
2887
- })
2883
+ spans: toTraceSpans(
2884
+ result.recordset.map(
2885
+ (span) => transformFromSqlRow({
2886
+ tableName: TABLE_SPANS,
2887
+ sqlRow: span
2888
+ })
2889
+ )
2888
2890
  )
2889
2891
  };
2890
2892
  } catch (error) {