Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Void drops cloudflare.observability on deploy

Offen
#486 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
53/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
cloud, devops

Rechercherichtung

Start by tracing uploadPinnedCloudflareVersion and the cf workers versions create --prebuilt path described in the issue, then compare them with the cf deploy --prebuilt path that applies the setting. Check how observability is passed through each deploy path and use the Worker's script settings endpoint to confirm the result. Done means deploying with observability enabled applies it for the affected paths.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Summary

I tried to enable traces for my worker via void configuration, followed by a deploy, but it never altered the worker settings. void deploy accepts cloudflare.observability in void.config.ts and records it in void.lock.json, but never applies it to the Worker.

More info from Claude:

Steps to reproduce
  1. Deploy a Void app to your own Cloudflare account once, so the Worker exists.

  2. Set at least one secret: void secret put OWNER_EMAIL.

  3. Add observability to void.config.ts:

    import { defineConfig } from 'void/config';
    
    export default defineConfig({
      deploy: { cloudflare: { mode: 'atomic' } },
      cloudflare: {
        name: 'my-app',
        observability: {
          enabled: true,
          logs: { enabled: true },
          traces: { enabled: true },
        },
      },
    });
    
  4. Run void deploy. It succeeds, and void.lock.json now records observability under source and resolved.

  5. Read the Worker's script settings: GET /accounts/{account_id}/workers/scripts/{script_name}/settings.

From reading the code, the default staged mode should fail the same way, with or without secrets. Only atomic mode was tested.

Root cause

Cloudflare only applies observability through the Worker's script settings (PATCH .../workers/scripts/{name}/script-settings) or a full script upload. A version upload does not carry it. Which call Void makes depends on the deploy path:

Path Used when Applies observability?
uploadPinnedCloudflareVersion (Workers beta versions API) Existing Worker with secrets, staged or atomic No: observability is on the allowlist of accepted keys but never sent
cf workers versions create --prebuilt Existing Worker, no secrets, staged No: cf sends observability: undefined
cf deploy --prebuilt First deploy, or atomic with no secrets Yes: cf PATCHes script-settings
Vorherrschende Sprache
TypeScript
Sterne
402
Forks
32
Ø Merge
12 Std. 1 Min.
Gemergte PRs (30 T.)
80

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus voidzero-dev/void

Alle Issues in voidzero-dev/void

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.