-
Notifications
You must be signed in to change notification settings - Fork 0
feat(dd-trace-propagation): export datadog
mod
#62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(dd-trace-propagation): export datadog
mod
#62
Conversation
pub const DATADOG_HIGHER_ORDER_TRACE_ID_BITS_KEY: &str = "_dd.p.tid"; | ||
pub const DATADOG_TRACE_ID_KEY: &str = "x-datadog-trace-id"; | ||
pub const DATADOG_ORIGIN_KEY: &str = "x-datadog-origin"; | ||
pub const DATADOG_PARENT_ID_KEY: &str = "x-datadog-parent-id"; | ||
pub const DATADOG_SAMPLING_PRIORITY_KEY: &str = "x-datadog-sampling-priority"; | ||
pub const DATADOG_TAGS_KEY: &str = "x-datadog-tags"; | ||
pub const DATADOG_PROPAGATION_ERROR_KEY: &str = "_dd.propagation_error"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if it would be better to export some of this as constants
so that the import is not dd_trace_propgation::datadog::{...}
but just dd_trace_propagation::constants::{...}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep them in the datadog
namespace.
pub const DATADOG_HIGHER_ORDER_TRACE_ID_BITS_KEY: &str = "_dd.p.tid"; | ||
pub const DATADOG_TRACE_ID_KEY: &str = "x-datadog-trace-id"; | ||
pub const DATADOG_ORIGIN_KEY: &str = "x-datadog-origin"; | ||
pub const DATADOG_PARENT_ID_KEY: &str = "x-datadog-parent-id"; | ||
pub const DATADOG_SAMPLING_PRIORITY_KEY: &str = "x-datadog-sampling-priority"; | ||
pub const DATADOG_TAGS_KEY: &str = "x-datadog-tags"; | ||
pub const DATADOG_PROPAGATION_ERROR_KEY: &str = "_dd.propagation_error"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep them in the datadog
namespace.
What does this PR do?
Exports the
datadog
module and some constantsMotivation
Need to replace the code in the Datadog Lambda Extension (precursor of this module) to use this crate
Additional Notes
n/a