Commit 3373da2
authored
feat(span-streaming): Add more span properties (#5421)
- add setters(/getters) or properties for `op`, `source`, `name`,
`origin`, `status`, feature flags, `span_id`
- also, rename `name` -> `_name` since it has a getter/setter now
In general regarding this getter/setter business vs. property-based
getting and setting: The idiomatic way would be to use properties (e.g.
`span.name = "name"`), but since we can't get around having _some_
getters/setters (e.g. `set_attribute`, `set_flag`, etc.), it's probably
better to go for consistency and have getters/setters everywhere, even
if it's not idiomatic. Otherwise users would have to remember if the
specific thing they want to set is a property or has a setter.
The above is about stuff people might want to set, so public API. For
internal stuff that no one should be setting by hand (e.g. `span_id`),
we can still go with properties where it makes sense.
Chipping away at #5317.1 parent 4621c29 commit 3373da2
2 files changed
+111
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
18 | 64 | | |
19 | 65 | | |
20 | 66 | | |
| |||
26 | 72 | | |
27 | 73 | | |
28 | 74 | | |
29 | | - | |
| 75 | + | |
30 | 76 | | |
| 77 | + | |
31 | 78 | | |
| 79 | + | |
| 80 | + | |
32 | 81 | | |
33 | 82 | | |
34 | 83 | | |
| |||
38 | 87 | | |
39 | 88 | | |
40 | 89 | | |
41 | | - | |
| 90 | + | |
42 | 91 | | |
43 | 92 | | |
44 | 93 | | |
45 | 94 | | |
46 | 95 | | |
47 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
48 | 103 | | |
49 | 104 | | |
50 | 105 | | |
| |||
62 | 117 | | |
63 | 118 | | |
64 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
65 | 169 | | |
66 | 170 | | |
67 | 171 | | |
| |||
0 commit comments