Commit 12c8a54
telemetry: don't record net i/o loop spans in scuba (#1908)
Summary:
Pull Request resolved: #1908
These are used primarily to provide context for any logged events, and should not be recorded as separate spans in scuba.
We introduce a general mechanism, exposing the key `hyperactor_telemetry::skip_record` which, if included in a span, causes the downstream scuba subscribe to skip recording the span as its own discrete event. This also prevents us from entering and exiting the spans accordingly.
We do maintain the recorded fields, which provide important context; they continue to propagate to the individually recorded entries.
ghstack-source-id: 326152711
exported-using-ghexport
Reviewed By: vidhyav
Differential Revision: D87273700
fbshipit-source-id: 37ef580b0eea0226964c9d1539dc64ea1c4c3e311 parent f974b26 commit 12c8a54
File tree
3 files changed
+19
-1
lines changed- hyperactor_mesh/examples
- hyperactor_telemetry/src
- hyperactor/src/channel/net
3 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
| 800 | + | |
| 801 | + | |
800 | 802 | | |
801 | 803 | | |
802 | 804 | | |
| |||
806 | 808 | | |
807 | 809 | | |
808 | 810 | | |
| 811 | + | |
809 | 812 | | |
810 | 813 | | |
811 | 814 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
56 | 71 | | |
57 | 72 | | |
58 | 73 | | |
| |||
0 commit comments