File
Blob: src/workerd/api/tests/tail-worker-test-no-op.js
| 1 | // Copyright (c) 2017-2023 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | export default { |
| 6 | // https://developers.cloudflare.com/workers/observability/logs/tail-workers/ |
| 7 | tailStream(event, env, ctx) { |
| 8 | // Return a handler object that does not include any handler functions for individual tail |
| 9 | // events – serves as a regression test for a bug where a handler that did not have handler |
| 10 | // functions for any events in the final tail stream RPC call caused stream cancellation |
| 11 | // warnings. |
| 12 | return {}; |
| 13 | }, |
| 14 | }; |