chore: rename tracing_deps to observability_deps
OpenTelemetry makes this necessary.pull/24376/head
parent
cf93c91973
commit
80d55d0829
|
@ -773,6 +773,7 @@ dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"generated_types",
|
"generated_types",
|
||||||
"influxdb_line_protocol",
|
"influxdb_line_protocol",
|
||||||
|
"observability_deps",
|
||||||
"percent-encoding",
|
"percent-encoding",
|
||||||
"prost",
|
"prost",
|
||||||
"regex",
|
"regex",
|
||||||
|
@ -781,7 +782,6 @@ dependencies = [
|
||||||
"snafu",
|
"snafu",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tonic",
|
"tonic",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1152,6 +1152,7 @@ dependencies = [
|
||||||
"flatbuffers",
|
"flatbuffers",
|
||||||
"futures",
|
"futures",
|
||||||
"google_types",
|
"google_types",
|
||||||
|
"observability_deps",
|
||||||
"prost",
|
"prost",
|
||||||
"prost-build",
|
"prost-build",
|
||||||
"prost-types",
|
"prost-types",
|
||||||
|
@ -1159,7 +1160,6 @@ dependencies = [
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"tonic",
|
"tonic",
|
||||||
"tonic-build",
|
"tonic-build",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1461,6 +1461,7 @@ dependencies = [
|
||||||
"mem_qe",
|
"mem_qe",
|
||||||
"mutable_buffer",
|
"mutable_buffer",
|
||||||
"object_store",
|
"object_store",
|
||||||
|
"observability_deps",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"packers",
|
"packers",
|
||||||
"panic_logging",
|
"panic_logging",
|
||||||
|
@ -1487,7 +1488,6 @@ dependencies = [
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
"tonic",
|
"tonic",
|
||||||
"tonic-health",
|
"tonic-health",
|
||||||
"tracing_deps",
|
|
||||||
"wal",
|
"wal",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1515,10 +1515,10 @@ version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"influxdb2_client",
|
"influxdb2_client",
|
||||||
"nom",
|
"nom",
|
||||||
|
"observability_deps",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"snafu",
|
"snafu",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1528,11 +1528,11 @@ dependencies = [
|
||||||
"flate2",
|
"flate2",
|
||||||
"hex",
|
"hex",
|
||||||
"integer-encoding",
|
"integer-encoding",
|
||||||
|
"observability_deps",
|
||||||
"rand 0.8.3",
|
"rand 0.8.3",
|
||||||
"snafu",
|
"snafu",
|
||||||
"snap",
|
"snap",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1544,11 +1544,11 @@ dependencies = [
|
||||||
"influxdb_line_protocol",
|
"influxdb_line_protocol",
|
||||||
"influxdb_tsm",
|
"influxdb_tsm",
|
||||||
"internal_types",
|
"internal_types",
|
||||||
|
"observability_deps",
|
||||||
"packers",
|
"packers",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"snafu",
|
"snafu",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1578,9 +1578,9 @@ dependencies = [
|
||||||
"flatbuffers",
|
"flatbuffers",
|
||||||
"generated_types",
|
"generated_types",
|
||||||
"influxdb_line_protocol",
|
"influxdb_line_protocol",
|
||||||
|
"observability_deps",
|
||||||
"ouroboros",
|
"ouroboros",
|
||||||
"snafu",
|
"snafu",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1720,10 +1720,10 @@ dependencies = [
|
||||||
name = "logfmt"
|
name = "logfmt"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"observability_deps",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"regex",
|
"regex",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1777,9 +1777,9 @@ dependencies = [
|
||||||
"croaring",
|
"croaring",
|
||||||
"crossbeam",
|
"crossbeam",
|
||||||
"human_format",
|
"human_format",
|
||||||
|
"observability_deps",
|
||||||
"packers",
|
"packers",
|
||||||
"snafu",
|
"snafu",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1871,11 +1871,11 @@ dependencies = [
|
||||||
"generated_types",
|
"generated_types",
|
||||||
"influxdb_line_protocol",
|
"influxdb_line_protocol",
|
||||||
"internal_types",
|
"internal_types",
|
||||||
|
"observability_deps",
|
||||||
"snafu",
|
"snafu",
|
||||||
"string-interner",
|
"string-interner",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2070,6 +2070,21 @@ dependencies = [
|
||||||
"walkdir",
|
"walkdir",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "observability_deps"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"env_logger",
|
||||||
|
"opentelemetry",
|
||||||
|
"opentelemetry-jaeger",
|
||||||
|
"opentelemetry-prometheus",
|
||||||
|
"prometheus",
|
||||||
|
"tracing",
|
||||||
|
"tracing-futures",
|
||||||
|
"tracing-opentelemetry",
|
||||||
|
"tracing-subscriber",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "once_cell"
|
name = "once_cell"
|
||||||
version = "1.7.2"
|
version = "1.7.2"
|
||||||
|
@ -2228,17 +2243,17 @@ dependencies = [
|
||||||
"human_format",
|
"human_format",
|
||||||
"influxdb_tsm",
|
"influxdb_tsm",
|
||||||
"internal_types",
|
"internal_types",
|
||||||
|
"observability_deps",
|
||||||
"rand 0.8.3",
|
"rand 0.8.3",
|
||||||
"snafu",
|
"snafu",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "panic_logging"
|
name = "panic_logging"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"tracing_deps",
|
"observability_deps",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2615,13 +2630,13 @@ dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"influxdb_line_protocol",
|
"influxdb_line_protocol",
|
||||||
"internal_types",
|
"internal_types",
|
||||||
|
"observability_deps",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"snafu",
|
"snafu",
|
||||||
"sqlparser",
|
"sqlparser",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-stream",
|
"tokio-stream",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3237,6 +3252,7 @@ dependencies = [
|
||||||
"internal_types",
|
"internal_types",
|
||||||
"mutable_buffer",
|
"mutable_buffer",
|
||||||
"object_store",
|
"object_store",
|
||||||
|
"observability_deps",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"parquet_file",
|
"parquet_file",
|
||||||
"pin-project 1.0.6",
|
"pin-project 1.0.6",
|
||||||
|
@ -3249,7 +3265,6 @@ dependencies = [
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
"tracing_deps",
|
|
||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3555,9 +3570,9 @@ name = "test_helpers"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dotenv",
|
"dotenv",
|
||||||
|
"observability_deps",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3958,21 +3973,6 @@ dependencies = [
|
||||||
"tracing-serde",
|
"tracing-serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "tracing_deps"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"env_logger",
|
|
||||||
"opentelemetry",
|
|
||||||
"opentelemetry-jaeger",
|
|
||||||
"opentelemetry-prometheus",
|
|
||||||
"prometheus",
|
|
||||||
"tracing",
|
|
||||||
"tracing-futures",
|
|
||||||
"tracing-opentelemetry",
|
|
||||||
"tracing-subscriber",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "treeline"
|
name = "treeline"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -4091,6 +4091,7 @@ dependencies = [
|
||||||
"crc32fast",
|
"crc32fast",
|
||||||
"futures",
|
"futures",
|
||||||
"itertools 0.9.0",
|
"itertools 0.9.0",
|
||||||
|
"observability_deps",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"regex",
|
"regex",
|
||||||
"serde",
|
"serde",
|
||||||
|
@ -4099,7 +4100,6 @@ dependencies = [
|
||||||
"snap",
|
"snap",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tracing_deps",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -28,7 +28,7 @@ members = [
|
||||||
"read_buffer",
|
"read_buffer",
|
||||||
"server",
|
"server",
|
||||||
"test_helpers",
|
"test_helpers",
|
||||||
"tracing_deps",
|
"observability_deps",
|
||||||
"wal",
|
"wal",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ panic_logging = { path = "panic_logging" }
|
||||||
query = { path = "query" }
|
query = { path = "query" }
|
||||||
read_buffer = { path = "read_buffer" }
|
read_buffer = { path = "read_buffer" }
|
||||||
server = { path = "server" }
|
server = { path = "server" }
|
||||||
tracing_deps = { path = "tracing_deps" }
|
observability_deps = { path = "observability_deps" }
|
||||||
wal = { path = "wal" }
|
wal = { path = "wal" }
|
||||||
|
|
||||||
# Crates.io dependencies, in alphabetical order
|
# Crates.io dependencies, in alphabetical order
|
||||||
|
|
|
@ -17,7 +17,7 @@ serde = { version = "1.0", features = ["rc"] }
|
||||||
serde_regex = "1.1"
|
serde_regex = "1.1"
|
||||||
snafu = "0.6"
|
snafu = "0.6"
|
||||||
tonic = { version = "0.4.0" }
|
tonic = { version = "0.4.0" }
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
test_helpers = { path = "../test_helpers" }
|
test_helpers = { path = "../test_helpers" }
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//! Common error utilities
|
//! Common error utilities
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
use tracing_deps::tracing::error;
|
use observability_deps::tracing::error;
|
||||||
|
|
||||||
/// Add ability for Results to log error messages via `error!` logs.
|
/// Add ability for Results to log error messages via `error!` logs.
|
||||||
/// This is useful when using async tasks that may not have a natural
|
/// This is useful when using async tasks that may not have a natural
|
||||||
|
|
|
@ -13,7 +13,7 @@ futures = "0.3.1"
|
||||||
prost = "0.7"
|
prost = "0.7"
|
||||||
prost-types = "0.7"
|
prost-types = "0.7"
|
||||||
tonic = "0.4"
|
tonic = "0.4"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
google_types = { path = "../google_types" }
|
google_types = { path = "../google_types" }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0.44"
|
serde_json = "1.0.44"
|
||||||
|
|
|
@ -12,6 +12,7 @@ pub mod longrunning {
|
||||||
}
|
}
|
||||||
|
|
||||||
use self::protobuf::Any;
|
use self::protobuf::Any;
|
||||||
|
use observability_deps::tracing::error;
|
||||||
use prost::{
|
use prost::{
|
||||||
bytes::{Bytes, BytesMut},
|
bytes::{Bytes, BytesMut},
|
||||||
Message,
|
Message,
|
||||||
|
@ -19,7 +20,6 @@ use prost::{
|
||||||
use std::convert::{TryFrom, TryInto};
|
use std::convert::{TryFrom, TryInto};
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
use tonic::Status;
|
use tonic::Status;
|
||||||
use tracing_deps::tracing::error;
|
|
||||||
|
|
||||||
// A newtype struct to provide conversion into tonic::Status
|
// A newtype struct to provide conversion into tonic::Status
|
||||||
struct EncodeError(prost::EncodeError);
|
struct EncodeError(prost::EncodeError);
|
||||||
|
|
|
@ -9,7 +9,7 @@ influxdb2_client = { path = "../influxdb2_client" }
|
||||||
nom = "5.1.1"
|
nom = "5.1.1"
|
||||||
smallvec = "1.2.0"
|
smallvec = "1.2.0"
|
||||||
snafu = "0.6.2"
|
snafu = "0.6.2"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
test_helpers = { path = "../test_helpers" }
|
test_helpers = { path = "../test_helpers" }
|
||||||
|
|
|
@ -25,6 +25,7 @@ use nom::{
|
||||||
multi::many0,
|
multi::many0,
|
||||||
sequence::{preceded, separated_pair, terminated, tuple},
|
sequence::{preceded, separated_pair, terminated, tuple},
|
||||||
};
|
};
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
|
@ -35,7 +36,6 @@ use std::{
|
||||||
fmt,
|
fmt,
|
||||||
ops::Deref,
|
ops::Deref,
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
#[derive(Debug, Snafu)]
|
#[derive(Debug, Snafu)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
@ -8,7 +8,7 @@ edition = "2018"
|
||||||
integer-encoding = "1.0.7"
|
integer-encoding = "1.0.7"
|
||||||
snafu = "0.6.2"
|
snafu = "0.6.2"
|
||||||
snap = "1.0.0"
|
snap = "1.0.0"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
flate2 = "1.0"
|
flate2 = "1.0"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
use crate::reader::{BlockData, BlockDecoder, TSMIndexReader, ValuePair};
|
use crate::reader::{BlockData, BlockDecoder, TSMIndexReader, ValuePair};
|
||||||
use crate::{Block, BlockType, TSMError};
|
use crate::{Block, BlockType, TSMError};
|
||||||
|
|
||||||
use tracing_deps::tracing::warn;
|
use observability_deps::tracing::warn;
|
||||||
|
|
||||||
use std::collections::{BTreeMap, BTreeSet};
|
use std::collections::{BTreeMap, BTreeSet};
|
||||||
use std::fmt::{Display, Formatter};
|
use std::fmt::{Display, Formatter};
|
||||||
|
|
|
@ -11,7 +11,7 @@ influxdb_tsm = { path = "../influxdb_tsm" }
|
||||||
internal_types = { path = "../internal_types" }
|
internal_types = { path = "../internal_types" }
|
||||||
packers = { path = "../packers" }
|
packers = { path = "../packers" }
|
||||||
snafu = "0.6.2"
|
snafu = "0.6.2"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
flate2 = "1.0"
|
flate2 = "1.0"
|
||||||
|
|
|
@ -20,6 +20,7 @@ use influxdb_tsm::{
|
||||||
use internal_types::schema::{
|
use internal_types::schema::{
|
||||||
builder::InfluxSchemaBuilder, InfluxFieldType, Schema, TIME_COLUMN_NAME,
|
builder::InfluxSchemaBuilder, InfluxFieldType, Schema, TIME_COLUMN_NAME,
|
||||||
};
|
};
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use packers::{
|
use packers::{
|
||||||
ByteArray, Error as TableError, IOxTableWriter, IOxTableWriterSource, Packer, Packers,
|
ByteArray, Error as TableError, IOxTableWriter, IOxTableWriterSource, Packer, Packers,
|
||||||
};
|
};
|
||||||
|
@ -28,7 +29,6 @@ use std::{
|
||||||
collections::{BTreeMap, BTreeSet},
|
collections::{BTreeMap, BTreeSet},
|
||||||
io::{Read, Seek},
|
io::{Read, Seek},
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
pub mod parquet;
|
pub mod parquet;
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@ use arrow_deps::parquet::{
|
||||||
basic::{Compression, Encoding},
|
basic::{Compression, Encoding},
|
||||||
file::reader::{FileReader, SerializedFileReader},
|
file::reader::{FileReader, SerializedFileReader},
|
||||||
};
|
};
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use packers::{
|
use packers::{
|
||||||
stats::{ColumnStatsBuilder, FileStats, FileStatsBuilder},
|
stats::{ColumnStatsBuilder, FileStats, FileStatsBuilder},
|
||||||
Name,
|
Name,
|
||||||
};
|
};
|
||||||
use snafu::ResultExt;
|
use snafu::ResultExt;
|
||||||
use std::{collections::BTreeMap, convert::TryInto};
|
use std::{collections::BTreeMap, convert::TryInto};
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
error::{ParquetLibraryError, Result},
|
error::{ParquetLibraryError, Result},
|
||||||
|
|
|
@ -13,6 +13,7 @@ use arrow_deps::parquet::{
|
||||||
schema::types::{ColumnPath, Type},
|
schema::types::{ColumnPath, Type},
|
||||||
};
|
};
|
||||||
use internal_types::schema::{InfluxColumnType, InfluxFieldType, Schema};
|
use internal_types::schema::{InfluxColumnType, InfluxFieldType, Schema};
|
||||||
|
use observability_deps::tracing::{debug, log::warn};
|
||||||
use parquet::file::writer::ParquetWriter;
|
use parquet::file::writer::ParquetWriter;
|
||||||
use snafu::{OptionExt, ResultExt, Snafu};
|
use snafu::{OptionExt, ResultExt, Snafu};
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -21,7 +22,6 @@ use std::{
|
||||||
str::FromStr,
|
str::FromStr,
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing::{debug, log::warn};
|
|
||||||
|
|
||||||
use super::metadata::parquet_schema_as_string;
|
use super::metadata::parquet_schema_as_string;
|
||||||
use packers::{Error as TableError, IOxTableWriter, Packers};
|
use packers::{Error as TableError, IOxTableWriter, Packers};
|
||||||
|
|
|
@ -18,7 +18,7 @@ generated_types = { path = "../generated_types" }
|
||||||
influxdb_line_protocol = { path = "../influxdb_line_protocol" }
|
influxdb_line_protocol = { path = "../influxdb_line_protocol" }
|
||||||
ouroboros = "0.8.3"
|
ouroboros = "0.8.3"
|
||||||
snafu = "0.6"
|
snafu = "0.6"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
criterion = "0.3"
|
criterion = "0.3"
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
use observability_deps::tracing::warn;
|
||||||
use snafu::{OptionExt, ResultExt, Snafu};
|
use snafu::{OptionExt, ResultExt, Snafu};
|
||||||
use std::{
|
use std::{
|
||||||
collections::{HashMap, HashSet},
|
collections::{HashMap, HashSet},
|
||||||
convert::TryInto,
|
convert::TryInto,
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing::warn;
|
|
||||||
|
|
||||||
use arrow_deps::arrow::datatypes::{DataType as ArrowDataType, Field as ArrowField};
|
use arrow_deps::arrow::datatypes::{DataType as ArrowDataType, Field as ArrowField};
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ description="tracing_subscriber layer for writing out logfmt formatted events"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies] # In alphabetical order
|
[dependencies] # In alphabetical order
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
once_cell = { version = "1.4.0", features = ["parking_lot"] }
|
once_cell = { version = "1.4.0", features = ["parking_lot"] }
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
use std::borrow::Cow;
|
use observability_deps::tracing::{
|
||||||
use std::{io::Write, time::SystemTime};
|
|
||||||
use tracing_deps::tracing::{
|
|
||||||
self,
|
self,
|
||||||
field::{Field, Visit},
|
field::{Field, Visit},
|
||||||
subscriber::Interest,
|
subscriber::Interest,
|
||||||
Id, Level, Subscriber,
|
Id, Level, Subscriber,
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing_subscriber::{
|
use observability_deps::tracing_subscriber::{
|
||||||
fmt::MakeWriter, layer::Context, registry::LookupSpan, Layer,
|
fmt::MakeWriter, layer::Context, registry::LookupSpan, Layer,
|
||||||
};
|
};
|
||||||
|
use std::borrow::Cow;
|
||||||
|
use std::{io::Write, time::SystemTime};
|
||||||
|
|
||||||
/// Implements a `tracing_subscriber::Layer` which generates
|
/// Implements a `tracing_subscriber::Layer` which generates
|
||||||
/// [logfmt] formatted log entries, suitable for log ingestion
|
/// [logfmt] formatted log entries, suitable for log ingestion
|
||||||
|
@ -33,7 +33,7 @@ impl<W: MakeWriter> LogFmtLayer<W> {
|
||||||
/// For example:
|
/// For example:
|
||||||
/// ```
|
/// ```
|
||||||
/// use logfmt::LogFmtLayer;
|
/// use logfmt::LogFmtLayer;
|
||||||
/// use tracing_deps::tracing_subscriber::{EnvFilter, prelude::*, self};
|
/// use observability_deps::tracing_subscriber::{EnvFilter, prelude::*, self};
|
||||||
///
|
///
|
||||||
/// // setup debug logging level
|
/// // setup debug logging level
|
||||||
/// std::env::set_var("RUST_LOG", "debug");
|
/// std::env::set_var("RUST_LOG", "debug");
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
// that.... So punting on that for now
|
// that.... So punting on that for now
|
||||||
|
|
||||||
use logfmt::LogFmtLayer;
|
use logfmt::LogFmtLayer;
|
||||||
|
use observability_deps::tracing::{debug, error, info, span, trace, warn, Level};
|
||||||
|
use observability_deps::tracing_subscriber::{self, fmt::MakeWriter, prelude::*};
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
|
@ -11,8 +13,6 @@ use std::{
|
||||||
fmt,
|
fmt,
|
||||||
io::{self, Cursor},
|
io::{self, Cursor},
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing::{debug, error, info, span, trace, warn, Level};
|
|
||||||
use tracing_deps::tracing_subscriber::{self, fmt::MakeWriter, prelude::*};
|
|
||||||
|
|
||||||
/// Compares the captured messages with the expected messages,
|
/// Compares the captured messages with the expected messages,
|
||||||
/// normalizing for time and location
|
/// normalizing for time and location
|
||||||
|
|
|
@ -12,7 +12,7 @@ crossbeam = "0.8"
|
||||||
human_format = "1.0.3"
|
human_format = "1.0.3"
|
||||||
packers = { path = "../packers" }
|
packers = { path = "../packers" }
|
||||||
snafu = "0.6.8"
|
snafu = "0.6.8"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
criterion = "0.3"
|
criterion = "0.3"
|
||||||
|
|
|
@ -8,8 +8,8 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use datatypes::TimeUnit;
|
use datatypes::TimeUnit;
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use snafu::Snafu;
|
use snafu::Snafu;
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
use arrow_deps::arrow::record_batch::{RecordBatch, RecordBatchReader};
|
use arrow_deps::arrow::record_batch::{RecordBatch, RecordBatchReader};
|
||||||
use arrow_deps::arrow::{array, array::Array, datatypes, ipc};
|
use arrow_deps::arrow::{array, array::Array, datatypes, ipc};
|
||||||
|
@ -27,7 +27,7 @@ fn format_size(sz: usize) -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
tracing_deps::env_logger::init();
|
observability_deps::env_logger::init();
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
|
|
||||||
let path = &args[1];
|
let path = &args[1];
|
||||||
|
|
|
@ -5,7 +5,7 @@ use arrow_deps::arrow;
|
||||||
|
|
||||||
use super::encoding;
|
use super::encoding;
|
||||||
|
|
||||||
use tracing_deps::tracing::debug;
|
use observability_deps::tracing::debug;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Set<'a> {
|
pub enum Set<'a> {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::collections::{BTreeMap, BTreeSet};
|
use std::collections::{BTreeMap, BTreeSet};
|
||||||
|
|
||||||
use tracing_deps::tracing::{debug, error, info};
|
use observability_deps::tracing::{debug, error, info};
|
||||||
|
|
||||||
use super::column;
|
use super::column;
|
||||||
use super::column::{AggregateType, Column};
|
use super::column::{AggregateType, Column};
|
||||||
|
|
|
@ -17,9 +17,9 @@ use std::cmp::Ordering;
|
||||||
use std::collections::BTreeSet;
|
use std::collections::BTreeSet;
|
||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
|
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use snafu::ensure;
|
use snafu::ensure;
|
||||||
use snafu::Snafu;
|
use snafu::Snafu;
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
use super::column;
|
use super::column;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ influxdb_line_protocol = { path = "../influxdb_line_protocol" }
|
||||||
snafu = "0.6.2"
|
snafu = "0.6.2"
|
||||||
string-interner = "0.12.2"
|
string-interner = "0.12.2"
|
||||||
tokio = { version = "1.0", features = ["macros"] }
|
tokio = { version = "1.0", features = ["macros"] }
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
test_helpers = { path = "../test_helpers" }
|
test_helpers = { path = "../test_helpers" }
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[package]
|
[package]
|
||||||
# TODO(jacobmarble): rename to something like "observability_deps"
|
name = "observability_deps"
|
||||||
name = "tracing_deps"
|
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Paul Dix <paul@pauldix.net>"]
|
authors = ["Paul Dix <paul@pauldix.net>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Tracing ecosystem dependencies for InfluxDB IOx, to ensure consistent versions and unified updates"
|
description = "Observability ecosystem dependencies for InfluxDB IOx, to ensure consistent versions and unified updates"
|
||||||
|
|
||||||
[dependencies] # In alphabetical order
|
[dependencies] # In alphabetical order
|
||||||
env_logger = "0.8.3"
|
env_logger = "0.8.3"
|
|
@ -1,5 +1,6 @@
|
||||||
//! This crate exists to coordinate versions of `tracing` and related
|
//! This crate exists to coordinate versions of `opentelemetry`, `tracing`,
|
||||||
//! crates so that we can manage their updates in a single crate.
|
//! `prometheus` and related crates so that we can manage their updates in a
|
||||||
|
//! single crate.
|
||||||
|
|
||||||
// Export these crates publicly so we can have a single reference
|
// Export these crates publicly so we can have a single reference
|
||||||
pub use env_logger;
|
pub use env_logger;
|
|
@ -10,7 +10,7 @@ human_format = "1.0.3"
|
||||||
influxdb_tsm = { path = "../influxdb_tsm" }
|
influxdb_tsm = { path = "../influxdb_tsm" }
|
||||||
internal_types = { path = "../internal_types" }
|
internal_types = { path = "../internal_types" }
|
||||||
snafu = "0.6.2"
|
snafu = "0.6.2"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
rand = "0.8.3"
|
rand = "0.8.3"
|
||||||
|
|
|
@ -5,4 +5,4 @@ authors = ["Paul Dix <paul@pauldix.net>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies] # In alphabetical order
|
[dependencies] # In alphabetical order
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
|
|
||||||
use std::{fmt, panic, sync::Arc};
|
use std::{fmt, panic, sync::Arc};
|
||||||
|
|
||||||
|
use observability_deps::tracing::{error, warn};
|
||||||
use panic::PanicInfo;
|
use panic::PanicInfo;
|
||||||
use tracing_deps::tracing::{error, warn};
|
|
||||||
|
|
||||||
type PanicFunctionPtr = Arc<Box<dyn Fn(&PanicInfo<'_>) + Sync + Send + 'static>>;
|
type PanicFunctionPtr = Arc<Box<dyn Fn(&PanicInfo<'_>) + Sync + Send + 'static>>;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ snafu = "0.6.2"
|
||||||
sqlparser = "0.8.0"
|
sqlparser = "0.8.0"
|
||||||
tokio = { version = "1.0", features = ["macros"] }
|
tokio = { version = "1.0", features = ["macros"] }
|
||||||
tokio-stream = "0.1.2"
|
tokio-stream = "0.1.2"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
test_helpers = { path = "../test_helpers" }
|
test_helpers = { path = "../test_helpers" }
|
||||||
|
|
|
@ -20,7 +20,7 @@ use arrow_deps::{
|
||||||
|
|
||||||
use crate::exec::schema_pivot::{SchemaPivotExec, SchemaPivotNode};
|
use crate::exec::schema_pivot::{SchemaPivotExec, SchemaPivotNode};
|
||||||
|
|
||||||
use tracing_deps::tracing::debug;
|
use observability_deps::tracing::debug;
|
||||||
|
|
||||||
// Reuse DataFusion error and Result types for this module
|
// Reuse DataFusion error and Result types for this module
|
||||||
pub use arrow_deps::datafusion::error::{DataFusionError as Error, Result};
|
pub use arrow_deps::datafusion::error::{DataFusionError as Error, Result};
|
||||||
|
|
|
@ -18,8 +18,8 @@ use internal_types::{
|
||||||
schema::{InfluxColumnType, Schema, TIME_COLUMN_NAME},
|
schema::{InfluxColumnType, Schema, TIME_COLUMN_NAME},
|
||||||
selection::Selection,
|
selection::Selection,
|
||||||
};
|
};
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use snafu::{ensure, OptionExt, ResultExt, Snafu};
|
use snafu::{ensure, OptionExt, ResultExt, Snafu};
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
exec::{field::FieldColumns, make_schema_pivot, stringset::StringSet},
|
exec::{field::FieldColumns, make_schema_pivot, stringset::StringSet},
|
||||||
|
|
|
@ -32,7 +32,7 @@ snafu = "0.6"
|
||||||
snap = "1.0.0"
|
snap = "1.0.0"
|
||||||
tokio = { version = "1.0", features = ["macros", "time"] }
|
tokio = { version = "1.0", features = ["macros", "time"] }
|
||||||
tokio-util = { version = "0.6.3" }
|
tokio-util = { version = "0.6.3" }
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
uuid = { version = "0.8", features = ["serde", "v4"] }
|
uuid = { version = "0.8", features = ["serde", "v4"] }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
|
|
|
@ -21,9 +21,9 @@ use chrono::{DateTime, Utc};
|
||||||
use crc32fast::Hasher;
|
use crc32fast::Hasher;
|
||||||
use data_types::database_rules::WalBufferConfig;
|
use data_types::database_rules::WalBufferConfig;
|
||||||
use data_types::wal::{SegmentPersistence, SegmentSummary, WriterSummary};
|
use data_types::wal::{SegmentPersistence, SegmentSummary, WriterSummary};
|
||||||
|
use observability_deps::tracing::{error, info, warn};
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use snafu::{ensure, OptionExt, ResultExt, Snafu};
|
use snafu::{ensure, OptionExt, ResultExt, Snafu};
|
||||||
use tracing_deps::tracing::{error, info, warn};
|
|
||||||
|
|
||||||
#[derive(Debug, Snafu)]
|
#[derive(Debug, Snafu)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
@ -12,9 +12,9 @@ use read_buffer::Database as ReadBufferDb;
|
||||||
|
|
||||||
/// This module contains code for managing the configuration of the server.
|
/// This module contains code for managing the configuration of the server.
|
||||||
use crate::{db::Db, Error, JobRegistry, Result};
|
use crate::{db::Db, Error, JobRegistry, Result};
|
||||||
|
use observability_deps::tracing::{self, error, info, warn, Instrument};
|
||||||
use tokio::task::JoinHandle;
|
use tokio::task::JoinHandle;
|
||||||
use tokio_util::sync::CancellationToken;
|
use tokio_util::sync::CancellationToken;
|
||||||
use tracing_deps::tracing::{self, error, info, warn, Instrument};
|
|
||||||
|
|
||||||
pub(crate) const DB_RULES_FILE_NAME: &str = "rules.pb";
|
pub(crate) const DB_RULES_FILE_NAME: &str = "rules.pb";
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@ use std::sync::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
use observability_deps::tracing::{debug, info};
|
||||||
use parking_lot::{Mutex, RwLock};
|
use parking_lot::{Mutex, RwLock};
|
||||||
use snafu::{OptionExt, ResultExt, Snafu};
|
use snafu::{OptionExt, ResultExt, Snafu};
|
||||||
use tracing_deps::tracing::{debug, info};
|
|
||||||
|
|
||||||
use arrow_deps::{
|
use arrow_deps::{
|
||||||
datafusion::catalog::{catalog::CatalogProvider, schema::SchemaProvider},
|
datafusion::catalog::{catalog::CatalogProvider, schema::SchemaProvider},
|
||||||
|
|
|
@ -2,11 +2,11 @@ use arrow_deps::datafusion::physical_plan::SendableRecordBatchStream;
|
||||||
use data_types::chunk::{ChunkStorage, ChunkSummary};
|
use data_types::chunk::{ChunkStorage, ChunkSummary};
|
||||||
use internal_types::{schema::Schema, selection::Selection};
|
use internal_types::{schema::Schema, selection::Selection};
|
||||||
use mutable_buffer::chunk::Chunk as MBChunk;
|
use mutable_buffer::chunk::Chunk as MBChunk;
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use parquet_file::chunk::Chunk as ParquetChunk;
|
use parquet_file::chunk::Chunk as ParquetChunk;
|
||||||
use query::{exec::stringset::StringSet, predicate::Predicate, PartitionChunk};
|
use query::{exec::stringset::StringSet, predicate::Predicate, PartitionChunk};
|
||||||
use read_buffer::Database as ReadBufferDb;
|
use read_buffer::Database as ReadBufferDb;
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ use std::convert::TryInto;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use chrono::{DateTime, Utc};
|
use chrono::{DateTime, Utc};
|
||||||
|
use observability_deps::tracing::{error, info};
|
||||||
use parking_lot::{RwLock, RwLockUpgradableReadGuard};
|
use parking_lot::{RwLock, RwLockUpgradableReadGuard};
|
||||||
use tracing_deps::tracing::{error, info};
|
|
||||||
|
|
||||||
use data_types::{database_rules::LifecycleRules, error::ErrorLogger, job::Job};
|
use data_types::{database_rules::LifecycleRules, error::ErrorLogger, job::Job};
|
||||||
|
|
||||||
|
|
|
@ -75,9 +75,9 @@ use std::sync::{
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use bytes::BytesMut;
|
use bytes::BytesMut;
|
||||||
use futures::stream::TryStreamExt;
|
use futures::stream::TryStreamExt;
|
||||||
|
use observability_deps::tracing::{error, info, warn};
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use snafu::{OptionExt, ResultExt, Snafu};
|
use snafu::{OptionExt, ResultExt, Snafu};
|
||||||
use tracing_deps::tracing::{error, info, warn};
|
|
||||||
|
|
||||||
use data_types::{
|
use data_types::{
|
||||||
database_rules::{DatabaseRules, WriterId},
|
database_rules::{DatabaseRules, WriterId},
|
||||||
|
|
|
@ -15,10 +15,10 @@ use std::sync::Arc;
|
||||||
|
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
|
use observability_deps::tracing::{error, info};
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
use tokio::sync::oneshot;
|
use tokio::sync::oneshot;
|
||||||
use tracing_deps::tracing::{error, info};
|
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
#[derive(Debug, Snafu)]
|
#[derive(Debug, Snafu)]
|
||||||
|
|
|
@ -84,8 +84,8 @@ use std::sync::atomic::{AtomicUsize, Ordering};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
||||||
|
use observability_deps::tracing::warn;
|
||||||
use tokio_util::sync::CancellationToken;
|
use tokio_util::sync::CancellationToken;
|
||||||
use tracing_deps::tracing::warn;
|
|
||||||
|
|
||||||
pub use future::{TrackedFuture, TrackedFutureExt};
|
pub use future::{TrackedFuture, TrackedFutureExt};
|
||||||
pub use history::TrackerRegistryWithHistory;
|
pub use history::TrackerRegistryWithHistory;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use super::{Tracker, TrackerId, TrackerRegistration, TrackerRegistry};
|
use super::{Tracker, TrackerId, TrackerRegistration, TrackerRegistry};
|
||||||
use hashbrown::hash_map::Entry;
|
use hashbrown::hash_map::Entry;
|
||||||
use hashbrown::HashMap;
|
use hashbrown::HashMap;
|
||||||
|
use observability_deps::tracing::info;
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use tracing_deps::tracing::info;
|
|
||||||
|
|
||||||
/// A wrapper around a TrackerRegistry that automatically retains a history
|
/// A wrapper around a TrackerRegistry that automatically retains a history
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use super::{Tracker, TrackerRegistration};
|
use super::{Tracker, TrackerRegistration};
|
||||||
use hashbrown::HashMap;
|
use hashbrown::HashMap;
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
/// Every future registered with a `TrackerRegistry` is assigned a unique
|
/// Every future registered with a `TrackerRegistry` is assigned a unique
|
||||||
/// `TrackerId`
|
/// `TrackerId`
|
||||||
|
|
|
@ -4,6 +4,7 @@ use ingest::{
|
||||||
ConversionSettings, Error as IngestError, LineProtocolConverter, TSMFileConverter,
|
ConversionSettings, Error as IngestError, LineProtocolConverter, TSMFileConverter,
|
||||||
};
|
};
|
||||||
use internal_types::schema::Schema;
|
use internal_types::schema::Schema;
|
||||||
|
use observability_deps::tracing::{debug, info, warn};
|
||||||
use packers::{Error as TableError, IOxTableWriter, IOxTableWriterSource};
|
use packers::{Error as TableError, IOxTableWriter, IOxTableWriterSource};
|
||||||
use snafu::{OptionExt, ResultExt, Snafu};
|
use snafu::{OptionExt, ResultExt, Snafu};
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -13,7 +14,6 @@ use std::{
|
||||||
io::{BufReader, Read},
|
io::{BufReader, Read},
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing::{debug, info, warn};
|
|
||||||
|
|
||||||
use crate::commands::input::{FileType, InputReader};
|
use crate::commands::input::{FileType, InputReader};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! Logging initization and setup
|
//! Logging initization and setup
|
||||||
|
|
||||||
use tracing_deps::{
|
use observability_deps::{
|
||||||
env_logger, opentelemetry_jaeger, tracing_opentelemetry,
|
env_logger, opentelemetry_jaeger, tracing_opentelemetry,
|
||||||
tracing_subscriber::{self, prelude::*, EnvFilter},
|
tracing_subscriber::{self, prelude::*, EnvFilter},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
use influxdb_tsm::{reader::IndexEntry, reader::TSMIndexReader, InfluxID, TSMError};
|
use influxdb_tsm::{reader::IndexEntry, reader::TSMIndexReader, InfluxID, TSMError};
|
||||||
use ingest::parquet::metadata::print_parquet_metadata;
|
use ingest::parquet::metadata::print_parquet_metadata;
|
||||||
|
use observability_deps::tracing::{debug, info};
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
use std::{
|
use std::{
|
||||||
collections::{BTreeMap, BTreeSet},
|
collections::{BTreeMap, BTreeSet},
|
||||||
convert::TryInto,
|
convert::TryInto,
|
||||||
};
|
};
|
||||||
use tracing_deps::tracing::{debug, info};
|
|
||||||
|
|
||||||
use crate::commands::input::{FileType, InputReader};
|
use crate::commands::input::{FileType, InputReader};
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use super::run::Config;
|
use super::run::Config;
|
||||||
use parking_lot::{const_rwlock, RwLock};
|
use observability_deps::{
|
||||||
use tracing_deps::{
|
|
||||||
opentelemetry_prometheus,
|
opentelemetry_prometheus,
|
||||||
prometheus::{Encoder, TextEncoder},
|
prometheus::{Encoder, TextEncoder},
|
||||||
};
|
};
|
||||||
|
use parking_lot::{const_rwlock, RwLock};
|
||||||
|
|
||||||
// TODO(jacobmarble): better way to write-once-read-many without a lock
|
// TODO(jacobmarble): better way to write-once-read-many without a lock
|
||||||
// TODO(jacobmarble): generic OTel exporter, rather than just prometheus
|
// TODO(jacobmarble): generic OTel exporter, rather than just prometheus
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
//! This module contains code to report compression statistics for storage files
|
//! This module contains code to report compression statistics for storage files
|
||||||
|
|
||||||
|
use observability_deps::tracing::info;
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
use structopt::StructOpt;
|
use structopt::StructOpt;
|
||||||
use tracing_deps::tracing::info;
|
|
||||||
|
|
||||||
use ingest::parquet::{error::IOxParquetError, stats as parquet_stats};
|
use ingest::parquet::{error::IOxParquetError, stats as parquet_stats};
|
||||||
use packers::{
|
use packers::{
|
||||||
|
|
|
@ -8,11 +8,11 @@ use hyper::server::conn::AddrIncoming;
|
||||||
use object_store::{
|
use object_store::{
|
||||||
self, aws::AmazonS3, azure::MicrosoftAzure, gcp::GoogleCloudStorage, ObjectStore,
|
self, aws::AmazonS3, azure::MicrosoftAzure, gcp::GoogleCloudStorage, ObjectStore,
|
||||||
};
|
};
|
||||||
|
use observability_deps::tracing::{self, error, info, warn, Instrument};
|
||||||
use panic_logging::SendPanicsToTracing;
|
use panic_logging::SendPanicsToTracing;
|
||||||
use server::{ConnectionManagerImpl as ConnectionManager, Server as AppServer};
|
use server::{ConnectionManagerImpl as ConnectionManager, Server as AppServer};
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
use std::{convert::TryFrom, fs, net::SocketAddr, path::PathBuf, sync::Arc};
|
use std::{convert::TryFrom, fs, net::SocketAddr, path::PathBuf, sync::Arc};
|
||||||
use tracing_deps::tracing::{self, error, info, warn, Instrument};
|
|
||||||
|
|
||||||
mod http;
|
mod http;
|
||||||
mod rpc;
|
mod rpc;
|
||||||
|
|
|
@ -29,10 +29,10 @@ use bytes::{Bytes, BytesMut};
|
||||||
use futures::{self, StreamExt};
|
use futures::{self, StreamExt};
|
||||||
use http::header::{CONTENT_ENCODING, CONTENT_TYPE};
|
use http::header::{CONTENT_ENCODING, CONTENT_TYPE};
|
||||||
use hyper::{Body, Method, Request, Response, StatusCode};
|
use hyper::{Body, Method, Request, Response, StatusCode};
|
||||||
|
use observability_deps::tracing::{self, debug, error, info};
|
||||||
use routerify::{prelude::*, Middleware, RequestInfo, Router, RouterError, RouterService};
|
use routerify::{prelude::*, Middleware, RequestInfo, Router, RouterError, RouterService};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use snafu::{OptionExt, ResultExt, Snafu};
|
use snafu::{OptionExt, ResultExt, Snafu};
|
||||||
use tracing_deps::tracing::{self, debug, error, info};
|
|
||||||
|
|
||||||
use data_types::http::WalMetadataResponse;
|
use data_types::http::WalMetadataResponse;
|
||||||
use hyper::server::conn::AddrIncoming;
|
use hyper::server::conn::AddrIncoming;
|
||||||
|
@ -413,7 +413,7 @@ async fn parse_body(req: hyper::Request<Body>) -> Result<Bytes, ApplicationError
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tracing_deps::instrument(level = "debug")]
|
#[observability_deps::instrument(level = "debug")]
|
||||||
async fn write<M>(req: Request<Body>) -> Result<Response<Body>, ApplicationError>
|
async fn write<M>(req: Request<Body>) -> Result<Response<Body>, ApplicationError>
|
||||||
where
|
where
|
||||||
M: ConnectionManager + Send + Sync + Debug + 'static,
|
M: ConnectionManager + Send + Sync + Debug + 'static,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use generated_types::google::{FieldViolation, InternalError, NotFound, PreconditionViolation};
|
use generated_types::google::{FieldViolation, InternalError, NotFound, PreconditionViolation};
|
||||||
use tracing_deps::tracing::error;
|
use observability_deps::tracing::error;
|
||||||
|
|
||||||
/// map common `server::Error` errors to the appropriate tonic Status
|
/// map common `server::Error` errors to the appropriate tonic Status
|
||||||
pub fn default_server_error_handler(error: server::Error) -> tonic::Status {
|
pub fn default_server_error_handler(error: server::Error) -> tonic::Status {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
use std::{pin::Pin, sync::Arc};
|
use std::{pin::Pin, sync::Arc};
|
||||||
|
|
||||||
use futures::Stream;
|
use futures::Stream;
|
||||||
|
use observability_deps::tracing::error;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use snafu::{OptionExt, ResultExt, Snafu};
|
use snafu::{OptionExt, ResultExt, Snafu};
|
||||||
use tonic::{Request, Response, Streaming};
|
use tonic::{Request, Response, Streaming};
|
||||||
use tracing_deps::tracing::error;
|
|
||||||
|
|
||||||
use arrow_deps::{
|
use arrow_deps::{
|
||||||
arrow,
|
arrow,
|
||||||
|
|
|
@ -2,9 +2,9 @@ use std::fmt::Debug;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use bytes::BytesMut;
|
use bytes::BytesMut;
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use prost::Message;
|
use prost::Message;
|
||||||
use tonic::Response;
|
use tonic::Response;
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
use data_types::job::Job;
|
use data_types::job::Job;
|
||||||
use generated_types::google::FieldViolationExt;
|
use generated_types::google::FieldViolationExt;
|
||||||
|
|
|
@ -19,10 +19,10 @@ use generated_types::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{TAG_KEY_FIELD, TAG_KEY_MEASUREMENT};
|
use super::{TAG_KEY_FIELD, TAG_KEY_MEASUREMENT};
|
||||||
|
use observability_deps::tracing::warn;
|
||||||
use query::group_by::{Aggregate as QueryAggregate, WindowDuration};
|
use query::group_by::{Aggregate as QueryAggregate, WindowDuration};
|
||||||
use query::predicate::PredicateBuilder;
|
use query::predicate::PredicateBuilder;
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
use tracing_deps::tracing::warn;
|
|
||||||
|
|
||||||
#[derive(Debug, Snafu)]
|
#[derive(Debug, Snafu)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
@ -20,6 +20,7 @@ use generated_types::{
|
||||||
ReadWindowAggregateRequest, StringValuesResponse, TagKeysRequest, TagValuesRequest,
|
ReadWindowAggregateRequest, StringValuesResponse, TagKeysRequest, TagValuesRequest,
|
||||||
TimestampRange,
|
TimestampRange,
|
||||||
};
|
};
|
||||||
|
use observability_deps::tracing::{error, info};
|
||||||
use query::{
|
use query::{
|
||||||
exec::fieldlist::FieldList,
|
exec::fieldlist::FieldList,
|
||||||
exec::seriesset::{Error as SeriesSetError, SeriesSetItem},
|
exec::seriesset::{Error as SeriesSetError, SeriesSetItem},
|
||||||
|
@ -32,7 +33,6 @@ use std::{collections::HashMap, sync::Arc};
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use tokio_stream::wrappers::ReceiverStream;
|
use tokio_stream::wrappers::ReceiverStream;
|
||||||
use tonic::Status;
|
use tonic::Status;
|
||||||
use tracing_deps::tracing::{error, info};
|
|
||||||
|
|
||||||
#[derive(Debug, Snafu)]
|
#[derive(Debug, Snafu)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use generated_types::i_ox_testing_server::{IOxTesting, IOxTestingServer};
|
use generated_types::i_ox_testing_server::{IOxTesting, IOxTestingServer};
|
||||||
use generated_types::{TestErrorRequest, TestErrorResponse};
|
use generated_types::{TestErrorRequest, TestErrorResponse};
|
||||||
use tracing_deps::tracing::warn;
|
use observability_deps::tracing::warn;
|
||||||
|
|
||||||
/// Concrete implementation of the gRPC IOx testing service API
|
/// Concrete implementation of the gRPC IOx testing service API
|
||||||
struct IOxTestingService {}
|
struct IOxTestingService {}
|
||||||
|
|
|
@ -2,10 +2,10 @@ use std::sync::Arc;
|
||||||
|
|
||||||
use generated_types::{google::FieldViolation, influxdata::iox::write::v1::*};
|
use generated_types::{google::FieldViolation, influxdata::iox::write::v1::*};
|
||||||
use influxdb_line_protocol::parse_lines;
|
use influxdb_line_protocol::parse_lines;
|
||||||
|
use observability_deps::tracing::debug;
|
||||||
use server::{ConnectionManager, Server};
|
use server::{ConnectionManager, Server};
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use tonic::Response;
|
use tonic::Response;
|
||||||
use tracing_deps::tracing::debug;
|
|
||||||
|
|
||||||
use super::error::default_server_error_handler;
|
use super::error::default_server_error_handler;
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use dotenv::dotenv;
|
use dotenv::dotenv;
|
||||||
|
use observability_deps::tracing::{debug, warn};
|
||||||
use structopt::StructOpt;
|
use structopt::StructOpt;
|
||||||
use tokio::runtime::Runtime;
|
use tokio::runtime::Runtime;
|
||||||
use tracing_deps::tracing::{debug, warn};
|
|
||||||
|
|
||||||
use commands::logging::LoggingLevel;
|
use commands::logging::LoggingLevel;
|
||||||
use ingest::parquet::writer::CompressionLevel;
|
use ingest::parquet::writer::CompressionLevel;
|
||||||
|
|
|
@ -8,4 +8,4 @@ edition = "2018"
|
||||||
dotenv = "0.15.0"
|
dotenv = "0.15.0"
|
||||||
parking_lot = "0.11.1"
|
parking_lot = "0.11.1"
|
||||||
tempfile = "3.1.0"
|
tempfile = "3.1.0"
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
|
@ -99,7 +99,7 @@ pub fn start_logging() {
|
||||||
// Configure the logger to write to stderr and install it
|
// Configure the logger to write to stderr and install it
|
||||||
let output_stream = std::io::stderr;
|
let output_stream = std::io::stderr;
|
||||||
|
|
||||||
use tracing_deps::tracing_subscriber::{self, prelude::*, EnvFilter};
|
use observability_deps::tracing_subscriber::{self, prelude::*, EnvFilter};
|
||||||
|
|
||||||
tracing_subscriber::registry()
|
tracing_subscriber::registry()
|
||||||
.with(EnvFilter::from_default_env())
|
.with(EnvFilter::from_default_env())
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
//! Utilities for testing tracing
|
//! Utilities for testing tracing
|
||||||
use std::{fmt, sync::Arc};
|
use std::{fmt, sync::Arc};
|
||||||
|
|
||||||
use parking_lot::Mutex;
|
use observability_deps::tracing::{
|
||||||
use tracing_deps::tracing::{
|
|
||||||
self,
|
self,
|
||||||
field::Field,
|
field::Field,
|
||||||
span::{Attributes, Id, Record},
|
span::{Attributes, Id, Record},
|
||||||
subscriber::{DefaultGuard, Subscriber},
|
subscriber::{DefaultGuard, Subscriber},
|
||||||
Event,
|
Event,
|
||||||
};
|
};
|
||||||
|
use parking_lot::Mutex;
|
||||||
|
|
||||||
/// This struct captures tracing `Event`s as strings, and can be used
|
/// This struct captures tracing `Event`s as strings, and can be used
|
||||||
/// to verify that messages are making it to logs correctly
|
/// to verify that messages are making it to logs correctly
|
||||||
|
|
|
@ -16,7 +16,7 @@ serde_json = "1.0.44"
|
||||||
snafu = "0.6.6"
|
snafu = "0.6.6"
|
||||||
snap = "1.0.0"
|
snap = "1.0.0"
|
||||||
tokio = { version = "1.0", features=["macros", "fs"] }
|
tokio = { version = "1.0", features=["macros", "fs"] }
|
||||||
tracing_deps = { path = "../tracing_deps" }
|
observability_deps = { path = "../observability_deps" }
|
||||||
|
|
||||||
[dev-dependencies] # In alphabetical order
|
[dev-dependencies] # In alphabetical order
|
||||||
test_helpers = { path = "../test_helpers" }
|
test_helpers = { path = "../test_helpers" }
|
||||||
|
|
|
@ -9,8 +9,8 @@ use crate::{Error as WalError, SequenceNumber, WalBuilder, WritePayload};
|
||||||
use futures::{channel::mpsc, SinkExt, StreamExt};
|
use futures::{channel::mpsc, SinkExt, StreamExt};
|
||||||
use snafu::{ResultExt, Snafu};
|
use snafu::{ResultExt, Snafu};
|
||||||
|
|
||||||
|
use observability_deps::tracing::{error, info};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use tracing_deps::tracing::{error, info};
|
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue