- added
origin_base_url
to WasmLayerConfig (#15)- A URL that's prepended to origins.
- Thanks @rksm!
- notes: the addition of
origin_base_url
implies thatWasmLayerConfig
is no longer copy.
set_as_global_default_with_config
now returns a Result. This will fail if the global default is already set. This was erroneously performed in a patch version. In the future,wasm-tracing
will adhere to semver.
WASMLayerConfig
andWASMLayer
type aliases. UseWasmLayerConfig
andWasmLayer
, respectively.
- Suggestions for well-formed
tracing
analogs that could better support that functionality in this crate. If there is a particular extension for tracing that you enjoy, or believe has a great interface (possibly likertt
), please let me know!
- Update docs, doc links
- Add licenses to crate root
wasm_tracing::set_as_global_default_with_config
should not panic by default
Thank y'all for bearing with me! I have not been able to find a satisfactory test reference, so I've gone ahead and manually checked different logging configuration options. More importantly, I think this crate's recording implementation is flawed from the ground up. Without overhauling literally every original aspect of tracing-wasm
, I have opted to find a middle route. Suggestions are highly appreciated!
- Added
WasmLayerConfig::show_origin
. When disabled, this will remove the line numbers from the console.
WASMLayerConfigBuilder
has been removed.- This builder performed 1:1 logic on
WasmLayerConfig
, and was not useful. The values forWasmLayerConfig
are now public.
- This builder performed 1:1 logic on
WasmLayerConfig
now takes in aConsoleConfig
parameter. This replacesWasmLayerConfig::report_logs_in_console
andWasmLayerConfig::use_console_color
. This removes the capability to use a console color while the console is disabled. If there is a use case for this, please let me know.
WASMLayerConfig
has been semantically renamed toWasmLayerConfig
. A type alias has been marked as deprecated.WASMLayer
has been semantically renamed toWasmLayer
. A type alias has been marked as deprecated.
- Added more documentation to the crate
- Added a single
wasm_bindgen_test
to visibly check differentWasmLayerConfig
options. This is far from ideal. I plan on expanding functionality of this crate to modify the default global recorder in the future.
Full Changelog: https://github.com/dsgallups/wasm-tracing/compare/0.2.0...1.0.0
- Capture and print span fields (#1)
- Implement support for
log
withtracing-log
(#3)
- Cloned initial code from tracing-wasm