Skip to content

Migrate API v1 simulation services to centralized observability #685

Description

@anth-volk

Summary

Migrate the API v1 simulation entry, Modal gateway, executor, and batch workers to policyengine-observability 2.0 and central Google Cloud telemetry.

Scope

  • Replace version 1 global helpers with runtime-bound operations and spans.
  • Remove Logfire initialization, secrets, dependencies, and forced OpenTelemetry disablement.
  • Carry allowlisted request and trace correlation metadata from entry to gateway to worker.
  • Configure explicit service identity, environment, collector endpoint, Google project, and Workload Identity Federation credentials for approved API v1 applications.
  • Add service-level failure-isolation tests.
  • Keep other PolicyEngine applications outside this change.

Acceptance criteria

  • Each participating service emits the version 2 structured log schema.
  • Worker operations restore incoming correlation metadata without including simulation inputs or reform payloads.
  • No Logfire runtime path remains in these services.
  • Failed telemetry setup or export does not change simulation outcomes.
  • Relevant formatting, lint, unit, integration, and deployment configuration checks pass.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions