Support an instrumentation preload for the Nest queue consumer

オープン
#5,385 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript

調査の方向性

Read the Nest queue consumer generation path in @workflow/nest and the workflow-nest build --vercel CLI options, then trace how the consumer, workflow, and step bundles are built. Check the lifecycle-hook documentation and local development behavior. Done means a supported preload runs once per function instance before consumer and step modules, is included in the generated function, and has documented bundle and local development behavior.

索引モデルが issue の本文から書いたものです。

説明

Problem

A Nest application deployed with workflow-nest build --vercel runs Workflow's queue consumer in a standalone function that does not load the Nest application's bootstrap or instrumentation module. As a result, an application cannot use its existing OpenTelemetry and error-reporting setup in that function through a documented configuration hook.

The Workflow lifecycle-hook documentation says application startup registration is not supported for the standalone Nest function and cautions against registering at a workflow file's top level. The workflow-nest build CLI does not expose a preload, instrumentation entry, or bundle injection option.

Request

Provide a supported instrumentation or preload entry for the generated Nest queue consumer. It should execute once per function instance before the consumer and step modules, allow an application to register its OpenTelemetry provider and error-reporting integration idempotently, and be bundled with the generated function. Please document how it interacts with the separate workflow and step bundles and local development.

Environment

  • @workflow/nest 5.1.4
  • workflow 5.2.3
  • @workflow/builders 5.0.6
  • Vercel Node.js functions

A supported entry would remove the need for each application to arrange a shared step-side import or patch generated build output.

主要言語
TypeScript
スター
2.5k
フォーク
401
平均マージ
2日 36分
マージ済み PR(30日)
150

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vercel/workflow のほかの issue

vercel/workflow の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。