aglinxinyuan opened a new issue, #9232:
URL: https://github.com/apache/texera/issues/9232
### Task Summary
Removes unreferenced classes, methods, and attributes in the
\common/observability\ module:
1.
\common/observability/src/main/scala/org/apache/texera/observability/TraceparentValidator.scala\:
- Drop orphaned file (-81 lines) containing \TraceparentValidator\ (\
alidateTraceparent\, \alidateTracestate\, \MaxTracestateLength\) with zero
production callers across the repository.
2.
\common/observability/src/test/scala/org/apache/texera/observability/TraceparentValidatorSpec.scala\:
- Drop companion spec file (-85 lines).
3.
\common/observability/src/main/scala/org/apache/texera/observability/TexeraTracer.scala\:
- Drop unreferenced \currentContext\ snapshot helper and unused
\io.opentelemetry.context.Context\ import (-7 lines).
4.
\common/observability/src/test/scala/org/apache/texera/observability/TexeraTracerSpec.scala\:
- Drop unit tests for \currentContext\ and companion unused import (-15
lines).
5.
\common/observability/src/main/scala/org/apache/texera/observability/SpanAttrs.scala\:
- Drop unused standard correlation attribute keys \ProjectId\, \UserId\,
\OperatorId\, \OperatorName\, and \Outcome\ (-5 lines), keeping active keys
\WorkflowId\ and \ExecutionId\.
6.
\common/observability/src/test/scala/org/apache/texera/observability/SpanAttrsSpec.scala\:
- Drop test assertions for \OperatorName\ (-3 lines).
This is a pure refactor with no behavior change.
### Task Type
- [x] Refactor / Cleanup
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]