-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move SidecarStats and AppOrQueue structs to more appropriate locations.
After refactor of sidecar::interface.rs into multiple files AppOrQueue belongs in the telemetry namespace and SidecarStats belongs closer to the code it is generating stats for in SidecarServer.
- Loading branch information
Showing
5 changed files
with
44 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,17 @@ | ||
// Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use crate::log::TemporarilyRetainedMapStats; | ||
use crate::service::telemetry::enqueued_telemetry_stats::EnqueuedTelemetryStats; | ||
use crate::service::tracing::trace_flusher::TraceFlusherStats; | ||
use crate::service::telemetry::enqueued_telemetry_data::EnqueuedTelemetryData; | ||
pub use app_instance::AppInstance; | ||
use ddtelemetry::worker::TelemetryWorkerStats; | ||
use serde::{Deserialize, Serialize}; | ||
use futures::future::Shared; | ||
use manual_future::ManualFuture; | ||
|
||
mod app_instance; | ||
pub mod enqueued_telemetry_data; | ||
pub mod enqueued_telemetry_stats; | ||
|
||
#[derive(Serialize, Deserialize)] | ||
pub(crate) struct SidecarStats { | ||
pub(crate) trace_flusher: TraceFlusherStats, | ||
pub(crate) sessions: u32, | ||
pub(crate) session_counter_size: u32, | ||
pub(crate) runtimes: u32, | ||
pub(crate) apps: u32, | ||
pub(crate) active_apps: u32, | ||
pub(crate) enqueued_apps: u32, | ||
pub(crate) enqueued_telemetry_data: EnqueuedTelemetryStats, | ||
pub(crate) telemetry_metrics_contexts: u32, | ||
pub(crate) telemetry_worker: TelemetryWorkerStats, | ||
pub(crate) telemetry_worker_errors: u32, | ||
pub(crate) log_writer: TemporarilyRetainedMapStats, | ||
pub(crate) log_filter: TemporarilyRetainedMapStats, | ||
#[allow(clippy::large_enum_variant)] | ||
pub(crate) enum AppOrQueue { | ||
App(Shared<ManualFuture<(String, String)>>), | ||
Queue(EnqueuedTelemetryData), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters