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

Function annotateItem

packages/infra/src/ClusterCosmos.ts:137–148  ·  view source on GitHub ↗
(resp: {
  readonly requestCharge?: number
  readonly statusCode?: number
  readonly diagnostics?: {
    readonly clientSideRequestStatistics?: { readonly totalResponsePayloadLengthInBytes?: number }
  }
})

Source from the content-addressed store, hash-verified

135) => resp.diagnostics?.clientSideRequestStatistics?.totalResponsePayloadLengthInBytes ?? 0
136
137const annotateItem = (resp: {
138 readonly requestCharge?: number
139 readonly statusCode?: number
140 readonly diagnostics?: {
141 readonly clientSideRequestStatistics?: { readonly totalResponsePayloadLengthInBytes?: number }
142 }
143}) =>
144 annotateCosmosResponse({
145 requestCharge: resp.requestCharge,
146 statusCode: resp.statusCode,
147 responseBytes: respBytes(resp)
148 })
149
150const annotateFeed = (resp: {
151 readonly resources: readonly unknown[]

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…