MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/functions-framework-nodejs / getTextWithContext

Function getTextWithContext

src/logger.ts:138–147  ·  view source on GitHub ↗
(
  data: Uint8Array | string,
  context: ExecutionContext,
)

Source from the content-addressed store, hash-verified

136}
137
138function getTextWithContext(
139 data: Uint8Array | string,
140 context: ExecutionContext,
141) {
142 return {
143 message: data,
144 [EXECUTION_CONTEXT_LABELS_KEY]: {execution_id: context.executionId},
145 [EXECUTION_CONTEXT_SPAN_ID_KEY]: context.spanId,
146 };
147}
148
149// eslint-disable-next-line @typescript-eslint/no-explicit-any
150function getJSONWithContext(json: any, context: ExecutionContext) {

Callers 1

getModifiedDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected