normalizeTraceIDOperand normalizes a Static operand for trace ID
(operand Static)
| 581 | |
| 582 | // normalizeTraceIDOperand normalizes a Static operand for trace ID |
| 583 | func normalizeTraceIDOperand(operand Static) Static { |
| 584 | if operand.Type != TypeString { |
| 585 | return operand |
| 586 | } |
| 587 | traceID := operand.EncodeToString(false) |
| 588 | traceID = strings.TrimLeft(traceID, "0") |
| 589 | return NewStaticString(traceID) |
| 590 | } |
| 591 | |
| 592 | // nolint: revive |
| 593 | func (BinaryOperation) __fieldExpression() {} |
no test coverage detected