MCPcopy Create free account
hub / github.com/effect-app/libs / annotateFeed

Function annotateFeed

packages/infra/src/ClusterCosmos.ts:150–161  ·  view source on GitHub ↗
(resp: {
  readonly resources: readonly unknown[]
  readonly requestCharge?: number
  readonly diagnostics?: {
    readonly clientSideRequestStatistics?: { readonly totalResponsePayloadLengthInBytes?: number }
  }
})

Source from the content-addressed store, hash-verified

148 })
149
150const annotateFeed = (resp: {
151 readonly resources: readonly unknown[]
152 readonly requestCharge?: number
153 readonly diagnostics?: {
154 readonly clientSideRequestStatistics?: { readonly totalResponsePayloadLengthInBytes?: number }
155 }
156}) =>
157 annotateCosmosResponse({
158 requestCharge: resp.requestCharge,
159 returnedRows: resp.resources.length,
160 responseBytes: respBytes(resp)
161 })
162
163const envelopeId = (envelope: Envelope.Encoded) => envelope._tag === "Request" ? envelope.requestId : envelope.id
164

Callers

nothing calls this directly

Calls 2

annotateCosmosResponseFunction · 0.90
respBytesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…