Skip to content

Add optional OpenTelemetry tracing with a documented privacy boundary #4

Open

Description

@hector2394

Context

StudyAgent stores minimal operational trace events but does not emit standard distributed traces.

Problem

Maintainers cannot follow request stages across generation, retrieval, and ingestion using standard observability tooling.

Proposed work

Design opt-in OpenTelemetry instrumentation with explicit redaction and exporter configuration, keeping current metadata traces as a baseline.

Acceptance criteria

  • Telemetry is disabled by default.
  • Prompts, answers, PDF text, keys, and personal identifiers are excluded.
  • Trace stages correlate through request IDs.
  • Exporter failures do not break user requests.

Tests/validation

Test redaction and disabled/failure behavior; inspect a local trace for expected stages only.

Out of scope

Hard-coding a vendor, storing private content, or replacing the current trace table without migration review.

Activity

  1. added
    enhancement
    security
    backend
    on Aug 11, 2026
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

    backendenhancementsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions