You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"level": "error",
"logger": "OpenTelemetry",
"message": "{\"message\":\"Request timed out\",\"originalLine\":\"59\",\"originalColumn\":\"25\",\"line\":\"87\",\"column\":\"24\",\"sourceURL\":\"/app/node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/node/http-transport-utils.js\",\"stack\":\"Error: Request timed out\\n at <anonymous> (/app/node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/node/http-transport-utils.js:87:24)\\n at emit (node:events:70:22)\\n at emitCloseNT (node:http:718:33)\\n at <anonymous> (node:http:1012:70)\\n at <anonymous> (native:19:28)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}",
"timestamp": "2024-11-22T14:15:18.780Z"
}
My setup:
constlog=winston.createLogger({ ... })// Need to patch `child` since graphql-mesh uses a non-standard `.child(str: string)` to create log childrenconstlogging=newProxy(log,{get(target,prop,receiver){if(prop==='child'){return(firstArg: string|object, ...args: any[])=>{if(typeoffirstArg==='string'){returntarget.child({logger: firstArg, ...args});}else{returnReflect.apply(Reflect.get(target,prop,receiver),target,[firstArg,
...args,]);}};}returnReflect.get(target,prop,receiver);},});exportconstgatewayConfig=defineConfig({
logging,plugins: (ctx)=>[useOpenTelemetry({
...ctx,inheritContext: true,// Optional, whether to inherit the context from the incoming requestpropagateContext: true,// Optional, whether to propagate the context to the outgoing requestsexporters: [createOtelExporter({url: `http://${config.OTEL_COLLECTOR_HOST}:${otelPort}`,}),],}),],});
and starting with bun hive-gateway supergraph
I can "fix" it by applying a patch commit to the @graphql-mesh/plugin-opentelemetry:
But these patch commits are very tedious to maintain.
The text was updated successfully, but these errors were encountered:
Sample log:
My setup:
and starting with
bun hive-gateway supergraph
I can "fix" it by applying a patch commit to the
@graphql-mesh/plugin-opentelemetry
:But these patch commits are very tedious to maintain.
The text was updated successfully, but these errors were encountered: