You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# What does this PR do?
Moves the `otel-thread-ctx` feature behind a Cargo feature.
# Motivation
This feature broke the dd-trace-php CI because they build with clang 17, and `-mtls-dialect=gnu2` is not recognized there.
I expect this would be problematic for some customers as well. So it seems like a good idea for now to feature flag it.
# Additional Notes
I think the TracerMetadata stuff is okay since it's not `repr(C)` but someone should double-check if this is okay or not, maybe that part needs to always be there and just use empty/default values.
# How to test the change?
Test as usual, and you can test again when enabling feature `otel-thread-ctx`, for example:
```sh
cargo test \
-p libdd-profiling\
-p libdd-library-config \
--features otel-thread-ctx
```
Or:
```sh
cargo nextest run \
-p libdd-profiling \
-p libdd-library-config \
--features otel-thread-ctx
```
Co-authored-by: yannham <yann.hamdaoui@datadoghq.com>
Co-authored-by: bob.weinand <bob.weinand@datadoghq.com>
0 commit comments