Skip to content

Commit 08a746e

Browse files
chore(version): include version in tag
1 parent 86398ff commit 08a746e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

dd-tracing-layer/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dd-tracing-layer"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
authors = ["Roberto Huertas <[email protected]>"]
55
description = "Send your logs to Datadog"
66
edition = "2021"
@@ -15,7 +15,7 @@ maintenance = { status = "actively-developed" }
1515
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1616

1717
[dependencies]
18-
log-tracing-layer = { path = "../log-tracing-layer", version = "0.1.5" }
18+
log-tracing-layer = { path = "../log-tracing-layer", version = "0.1.6" }
1919
tracing-subscriber = "0.3"
2020
tracing = "0.1"
2121
reqwest = { version = "0.11", features = ["blocking", "json"] }

dd-tracing-layer/src/datadog_ingestor.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::{collections::VecDeque, sync::Arc};
77
use tokio::sync::RwLock;
88

99
const DD_SOURCE: &str = "dd-tracing-layer";
10-
const DD_TAGS: &str = "source-version:0.1.4";
1110
const MAX_BATCH_SIZE: usize = 1000;
1211
const MAX_BATCH_DURATION_SECS: i64 = 5;
1312
const MAX_RETRIES: u8 = 3;
@@ -82,9 +81,11 @@ impl DatadogLogIngestor {
8281
.to_string()
8382
});
8483

84+
let source_tags = &format!("source-version:{}", env!("CARGO_PKG_VERSION"));
85+
8586
let tags = options
8687
.tags
87-
.map_or_else(|| DD_TAGS.into(), |t| format!("{t}, {DD_TAGS}"));
88+
.map_or_else(|| source_tags.into(), |t| format!("{t}, {source_tags}"));
8889

8990
Self {
9091
url,

log-tracing-layer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "log-tracing-layer"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
authors = ["Roberto Huertas <[email protected]>"]
55
description = "Build your own custom tracing layer."
66
edition = "2021"

0 commit comments

Comments
 (0)