Currently there is no way to enrich active span with middleware information.
Rationale
Adding tracing support provides an enhanced tracing experience as http-wasm middlewares could give more context on their outcomes e.g. status code mutation, body mutation, etc.
Implementation should allow users to plug in the span extractor or just to provide an attribute setter.
Implementation details
- method:
set_active_span_attribute
- params:
i32 attribute_key
i32 attribute_key_len
i32 attribute_value
i32 attribute_value_len
Ping @anuraaga @mohit-a21
Reference proxy-wasm/spec#5
Currently there is no way to enrich active span with middleware information.
Rationale
Adding tracing support provides an enhanced tracing experience as http-wasm middlewares could give more context on their outcomes e.g. status code mutation, body mutation, etc.
Implementation should allow users to plug in the span extractor or just to provide an attribute setter.
Implementation details
set_active_span_attributei32 attribute_keyi32 attribute_key_leni32 attribute_valuei32 attribute_value_lenPing @anuraaga @mohit-a21
Reference proxy-wasm/spec#5