Commit 8f44895
refactor: Remove duplication logic in start_span (#1281)
* refactor: Remove duplication logic in start_span
There are 2 places where checked mostly the same: parent span id and
trace id base on parent_span. Because there is no other places in gems,
that use method `internal_start_span`, leave that logic there
and removed unused attributes.
* Remove extract to constant default name
* Applied proposal from github comments
* Changed variable name to fit param name
* Remove extra blank line
Co-authored-by: Francis Bogsanyi <[email protected]>1 parent 3ec7d8a commit 8f44895
File tree
2 files changed
+6
-11
lines changed- sdk/lib/opentelemetry/sdk/trace
2 files changed
+6
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 34 | | |
41 | | - | |
| 35 | + | |
42 | 36 | | |
43 | 37 | | |
44 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | | - | |
| 137 | + | |
136 | 138 | | |
137 | | - | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
0 commit comments