The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
3f9bdd481a4015657e485e0e345942b72381c9e6 / Xinyuan Lin <[email protected]>
refactor(observability): drop TraceparentValidator, SpanAttrs (#9233)

### What changes were proposed in this PR?
Removes unreferenced classes, methods, and attributes in the
`common/observability` module:
1.
`common/observability/src/main/scala/org/apache/texera/observability/TraceparentValidator.scala`:
- Drops orphaned file (-98 lines) containing `TraceparentValidator`
(`validateTraceparent`, `validateTracestate`, `MaxTracestateLength`)
with zero production callers across the repository.
2.
`common/observability/src/test/scala/org/apache/texera/observability/TraceparentValidatorSpec.scala`:
   - Drops companion spec file (-124 lines).
3.
`common/observability/src/main/scala/org/apache/texera/observability/TexeraTracer.scala`:
- Drops unreferenced `currentContext` snapshot helper and unused
`io.opentelemetry.context.Context` import (-9 lines).
4.
`common/observability/src/test/scala/org/apache/texera/observability/TexeraTracerSpec.scala`:
- Drops unit tests for `currentContext` and companion unused import (-15
lines).
5.
`common/observability/src/main/scala/org/apache/texera/observability/SpanAttrs.scala`:
- Drops unused standard correlation attribute keys `ProjectId`,
`UserId`, `OperatorId`, `OperatorName`, and `Outcome`, plus the
now-unused free-text helper `sanitizeFreeText` and `FreeTextMaxLen` (no
production callers; no free-text key remains), keeping active keys
`WorkflowId` and `ExecutionId`.
6.
`common/observability/src/test/scala/org/apache/texera/observability/SpanAttrsSpec.scala`:
- Drops test assertions for `OperatorName` and the five
`sanitizeFreeText` tests.

**+3/-301 lines.** Pure refactoring with no behavior change.

### Any related issues, documentation, discussions?
Closes #9232.

### How was this PR tested?
- Scalafmt check passed:
  ```bash
  sbt "project Observability" scalafmtCheck "Test / scalafmtCheck"
  ```
- Unit tests passed (71 tests, 6 suites):
  ```bash
  sbt "project Observability" test
  ```
- Verified 0 callers repo-wide on `origin/main` for
`TraceparentValidator`, `TexeraTracer.currentContext`, and the dropped
`SpanAttrs` keys (`ProjectId`, `UserId`, `OperatorId`, `OperatorName`,
`Outcome`), `SpanAttrs.sanitizeFreeText`, and
`SpanAttrs.FreeTextMaxLen`.

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity

Report URL: https://github.com/apache/texera/actions/runs/41785032255

With regards,
GitHub Actions via GitBox

Reply via email to