-
Notifications
You must be signed in to change notification settings - Fork 21
chore!: update protobufs to be in sync with datadog-agent #2180
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
Changes from all commits
bcd399f
f8b4091
b386a6f
f97eaf5
fbb6a57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -426,6 +426,41 @@ pub struct TracerPayload { | |
| /// @gotags: json:"app_version" msg:"app_version" | ||
| #[prost(string, tag = "10")] | ||
| pub app_version: ::prost::alloc::string::String, | ||
| /// containerDebug holds debug information about the container tags resolution. | ||
| /// @gotags: json:"container_debug,omitempty" msg:"container_debug,omitempty" | ||
| #[prost(message, optional, tag = "11")] | ||
| #[serde(skip_serializing_if = "Option::is_none")] | ||
| pub container_debug: ::core::option::Option<ContainerDebug>, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When sending V07 payloads through Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in f97eaf5.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @codex review There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a Serde-encoded v0.7 payload includes Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in fbb6a57.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @codex review There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
||
| } | ||
| /// ContainerDebug holds debug information about the container tags resolution process. | ||
| #[derive(Deserialize, Serialize, PartialOrd, Ord)] | ||
| #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] | ||
| pub struct ContainerDebug { | ||
| /// error specifies any error that occurred during container tag resolution. | ||
| /// @gotags: json:"error,omitempty" msg:"error,omitempty" | ||
| #[prost(string, tag = "1")] | ||
| #[serde(default)] | ||
| pub error: ::prost::alloc::string::String, | ||
| /// latencyMs specifies the latency in milliseconds of the container tag resolution. | ||
| /// @gotags: json:"latency_ms,omitempty" msg:"latency_ms,omitempty" | ||
| #[prost(int64, tag = "2")] | ||
| #[serde(default)] | ||
| pub latency_ms: i64, | ||
| /// wasBuffered specifies whether the payload was buffered while waiting for container tags. | ||
| /// @gotags: json:"was_buffered,omitempty" msg:"was_buffered,omitempty" | ||
| #[prost(bool, tag = "3")] | ||
| #[serde(default)] | ||
| pub was_buffered: bool, | ||
| /// bufferMs specifies how long the payload was buffered in milliseconds. | ||
| /// @gotags: json:"buffer_ms,omitempty" msg:"buffer_ms,omitempty" | ||
| #[prost(int64, tag = "4")] | ||
| #[serde(default)] | ||
| pub buffer_ms: i64, | ||
| /// bufferEvictionReason specifies why the payload was evicted from the buffer. | ||
| /// @gotags: json:"buffer_eviction_reason,omitempty" msg:"buffer_eviction_reason,omitempty" | ||
| #[prost(string, tag = "5")] | ||
| #[serde(default)] | ||
| pub buffer_eviction_reason: ::prost::alloc::string::String, | ||
| } | ||
| /// AgentPayload represents payload the agent sends to the intake. | ||
| #[derive(Clone, PartialEq, ::prost::Message)] | ||
|
|
@@ -659,13 +694,16 @@ pub struct ClientGroupedStats { | |
| #[serde(rename = "srv_src")] | ||
| pub service_source: ::prost::alloc::string::String, | ||
| /// used to identify service override origin | ||
| /// span_derived_primary_tags are user-configured tags that are extracted from spans and used for stats aggregation | ||
| /// E.g., `aws.s3.bucket`, `http.url`, or any custom tag | ||
| /// Deprecated: use additional_metric_tags (field 23) instead. | ||
| #[prost(string, repeated, tag = "22")] | ||
| #[serde(default)] | ||
| pub span_derived_primary_tags: ::prost::alloc::vec::Vec< | ||
| ::prost::alloc::string::String, | ||
| >, | ||
| /// additional_metric_tags are tags sent by tracers to be used as additional dimensions for stats aggregation | ||
| #[prost(string, repeated, tag = "23")] | ||
| #[serde(default)] | ||
| pub additional_metric_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
| } | ||
| /// Trilean is an expanded boolean type that is meant to differentiate between being unset and false. | ||
| #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] | ||
|
|
||
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.
When callers pass V07 payloads with this field populated,
coalesce_send_data()still invokesTracerPayloadCollection::merge(), which treats payloads as equal viacmp_send_data_payloads()without looking atcontainer_debugand then appends one payload's chunks into the other while dropping its top-level fields. Two payloads with different container tag resolution errors/latencies will therefore be sent as one payload with only the retained payload's debug value, misreporting the new diagnostics for the chunks from the dropped payload; includecontainer_debugin the merge key or avoid merging when it differs.Useful? React with 👍 / 👎.
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.
Fixed in f8b4091.
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.
@codex review