Commit a0f9a74
authored
Span tags for "unified naming conventions" (#20)
* net_util -> platform_util
* get_process_id()
* move pthread_atfork into platform_util.cpp
* Tag every span with the process ID.
- glibc does not cache the process ID in user space. So, as a
(premature?) optimization, we cache the process ID and recalculate it
whenever the process forks.
- The existing behavior of tagging each span with _dd.origin wasn't
tested, so in testing this process ID change I also added a test for
origin.
* Tag every span with the language "cpp".
* move random number generation into its own component
* Tag every span with a resource-id UUID.
* update includes graph
* missed a spot
* fix typo
* be consistent with the order
* wrong again!
* inline some at_fork handlers
* remove unnecessary includes
* comment the cached_* functions
* fix tag name: error.msg -> error.message
* remove unnecessary caveat
* delambdify
* generate 64 bits of randomness in a go, not 63
* modify bits high-to-low
* zero most significant bit of 64-bit trace IDs
* zero most significant bit of span IDs1 parent ae90dc5 commit a0f9a74
File tree
21 files changed
+2596
-2258
lines changed- doc
- src/datadog
- test
21 files changed
+2596
-2258
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| 99 | + | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
0 commit comments