It should be possible to derive serde::Deserialize for InstrumentationConfig and that way consumers of this library will be able to use whichever serialization format they prefer.
It will also mean that if this library is exposed via wasm-bindgen, it will automatically support passing these as JavaScript objects and it will output TypeScript definitions to match.