Skip to content

Commit 7f2f889

Browse files
cleanup
1 parent b0a8dd8 commit 7f2f889

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

dogstatsd/src/aggregator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ fn build_sketch(now: i64, entry: &Metric, mut base_tag_vec: SortedTags) -> Optio
274274

275275
let origin: Option<Origin> = get_origin(entry, base_tag_vec);
276276
if let Some(origin) = origin {
277-
sketch.set_metadata(Metadata::from(Metadata {
277+
sketch.set_metadata(Metadata {
278278
origin: MessageField::some(origin),
279279
special_fields: SpecialFields::default(),
280-
}));
280+
});
281281
}
282282

283283
Some(sketch)

dogstatsd/src/origin.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const AWS_LAMBDA_PREFIX: &str = "aws.lambda";
2020
const AWS_STEP_FUNCTIONS_PREFIX: &str = "aws.states";
2121

2222
/// Represents the product origin of a metric.
23-
/// The full enum is exhaustive so we only include what we need. Please reference the corresponding enum for all possible values
24-
/// https://github.com/DataDog/dd-source/blob/573dee9b5f7ee13935cb3ad11b16dde970528983/domains/metrics/shared/libs/proto/origin/origin.proto#L161
23+
/// The full enum is exhaustive so we only include what we need. Please reference the corresponding
24+
/// enum for all possible values https://github.com/DataDog/dd-source/blob/573dee9b5f7ee13935cb3ad11b16dde970528983/domains/metrics/shared/libs/proto/origin/origin.proto#L161
2525
pub enum OriginProduct {
2626
Other = 0,
2727
Serverless = 1,
@@ -34,8 +34,8 @@ impl From<OriginProduct> for u32 {
3434
}
3535

3636
/// Represents the category origin of a metric.
37-
/// The full enum is exhaustive so we only include what we need. Please reference the corresponding enum for all possible values
38-
/// https://github.com/DataDog/dd-source/blob/573dee9b5f7ee13935cb3ad11b16dde970528983/domains/metrics/shared/libs/proto/origin/origin.proto#L276
37+
/// The full enum is exhaustive so we only include what we need. Please reference the corresponding
38+
/// enum for all possible values https://github.com/DataDog/dd-source/blob/573dee9b5f7ee13935cb3ad11b16dde970528983/domains/metrics/shared/libs/proto/origin/origin.proto#L276
3939
pub enum OriginCategory {
4040
Other = 0,
4141
AppServicesMetrics = 35,
@@ -52,8 +52,8 @@ impl From<OriginCategory> for u32 {
5252
}
5353

5454
/// Represents the service origin of a metric.
55-
/// The full enum is exhaustive so we only include what we need. Please reference the corresponding enum for all possible values
56-
/// https://github.com/DataDog/dd-source/blob/573dee9b5f7ee13935cb3ad11b16dde970528983/domains/metrics/shared/libs/proto/origin/origin.proto#L417
55+
/// The full enum is exhaustive so we only include what we need. Please reference the corresponding
56+
/// enum for all possible values https://github.com/DataDog/dd-source/blob/573dee9b5f7ee13935cb3ad11b16dde970528983/domains/metrics/shared/libs/proto/origin/origin.proto#L417
5757
pub enum OriginService {
5858
Other = 0,
5959
}

0 commit comments

Comments
 (0)