feat(consumer): add workflow_id field in traces for consumer tasks (#480)

This commit is contained in:
Nishant Joshi
2023-02-02 16:39:25 +05:30
committed by GitHub
parent a8132e1082
commit 9ec435e86e
4 changed files with 9 additions and 5 deletions

View File

@ -50,6 +50,7 @@ const MERCHANT_ID: &str = "merchant_id";
const REQUEST_METHOD: &str = "request_method";
const REQUEST_URL_PATH: &str = "request_url_path";
const REQUEST_ID: &str = "request_id";
const WORKFLOW_ID: &str = "workflow_id";
/// Set of predefined implicit keys.
pub static IMPLICIT_KEYS: Lazy<rustc_hash::FxHashSet<&str>> = Lazy::new(|| {
@ -84,6 +85,7 @@ pub static EXTRA_IMPLICIT_KEYS: Lazy<rustc_hash::FxHashSet<&str>> = Lazy::new(||
set.insert(REQUEST_METHOD);
set.insert(REQUEST_URL_PATH);
set.insert(REQUEST_ID);
set.insert(WORKFLOW_ID);
set
});