kunwp1 commented on code in PR #9233:
URL: https://github.com/apache/texera/pull/9233#discussion_r4463210270
##########
common/observability/src/main/scala/org/apache/texera/observability/SpanAttrs.scala:
##########
@@ -39,11 +39,6 @@ object SpanAttrs {
val WorkflowId: AttributeKey[java.lang.Long] =
AttributeKey.longKey("texera.workflow.id")
val ExecutionId: AttributeKey[java.lang.Long] =
AttributeKey.longKey("texera.execution.id")
- val ProjectId: AttributeKey[java.lang.Long] =
AttributeKey.longKey("texera.project.id")
- val UserId: AttributeKey[java.lang.Long] =
AttributeKey.longKey("texera.user.id")
- val OperatorId: AttributeKey[String] =
AttributeKey.stringKey("texera.operator.id")
- val OperatorName: AttributeKey[String] =
AttributeKey.stringKey("texera.operator.name")
- val Outcome: AttributeKey[String] = AttributeKey.stringKey("texera.outcome")
// ---- Pure helpers (exposed for testing) ------------------------------
Review Comment:
With `OperatorName` gone, `SpanAttrs` has no free-text key left.
`sanitizeFreeText` and `FreeTextMaxLen` below also have no production caller,
since `WorkflowService` only sets the two ID keys. By this PR's own criterion
they're unused too. Either dropping them with their five tests or keeping them
deliberately for future free-text attributes seems fine, but it's worth
choosing one and noting it in the description.
--
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]