Commit 2453a51
authored
process_discovery: expose threadlocal_attribute_keys (#135)
Add the optional `threadlocal_attribute_keys: Option<Vec<String>>`
field to the NAPI `TracerMetadata` and forward it to libdatadog's
`tracer_metadata::TracerMetadata`. When set, libdatadog's
`to_otel_process_ctx` injects:
threadlocal.schema_version = "tlsdesc_v1_dev"
threadlocal.attribute_key_map = ["datadog.local_root_span_id",
...threadlocal_attribute_keys]
into the OTel process context, giving an out-of-process reader the
name table for the uint8 key indices that OTEP-4947 thread-context
records carry on the wire. The implicit `datadog.local_root_span_id`
key is prepended by libdatadog itself; callers only supply their
*additional* keys (entry 0 in this list = wire key index 1).
The field is gated behind libdatadog's `otel-thread-ctx` Cargo
feature, which arrived after v29.0.0. Bump the
`libdd-library-config` dependency to v35.0.0 (matches the version
already pinned by the crashtracker crate in this workspace) and
enable the feature.
Existing 8-arg constructor calls keep working because the new
field is optional. The test exercises both the absent and present
forms.1 parent 0c3f048 commit 2453a51
4 files changed
Lines changed: 38 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
| |||
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
25 | 46 | | |
26 | 47 | | |
27 | 48 | | |
| |||
0 commit comments