Commit 9fd99bf
ref(grpc): Eliminate duplicate span status logic in finishSpan
Refactored finishSpan to call setRPCStatus internally instead of
duplicating the same three lines (grpcStatusCode, toSpanStatus,
SetData). This avoids maintaining identical status-setting logic
in two places and ensures consistency if the logic needs to change.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent c2bdf69 commit 9fd99bf
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
0 commit comments