Skip to content

Commit 053ae2a

Browse files
committed
chore(metrics): Remove send_metric command
1 parent 1d7245d commit 053ae2a

File tree

53 files changed

+236
-1056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+236
-1056
lines changed

Cargo.lock

Lines changed: 234 additions & 173 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ data-encoding = "2.3.3"
8080
magic_string = "0.3.4"
8181
chrono-tz = "0.8.4"
8282
secrecy = "0.8.0"
83+
sentry-core = "0.42.0"
8384

8485
[dev-dependencies]
8586
assert_cmd = "2.0.11"

src/commands/derive_parser.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use clap::{command, ArgAction::SetTrue, Parser, Subcommand};
44

55
use super::dart_symbol_map::DartSymbolMapArgs;
66
use super::logs::LogsArgs;
7-
use super::send_metric::SendMetricArgs;
87

98
#[derive(Parser)]
109
pub(super) struct SentryCLI {
@@ -35,6 +34,5 @@ pub(super) struct SentryCLI {
3534
#[derive(Subcommand)]
3635
pub(super) enum SentryCLICommand {
3736
Logs(LogsArgs),
38-
SendMetric(SendMetricArgs),
3937
DartSymbolMap(DartSymbolMapArgs),
4038
}

src/commands/logs/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ pub(super) fn make_command(command: Command) -> Command {
4040

4141
pub(super) fn execute(_: &ArgMatches) -> Result<()> {
4242
let SentryCLICommand::Logs(LogsArgs { subcommand }) = SentryCLI::parse().command else {
43-
unreachable!("expected logs subcommand");
43+
unreachable!("expected logs subcommand")
4444
};
45-
4645
eprintln!("{BETA_WARNING}");
4746

4847
match subcommand {

src/commands/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ mod releases;
3939
mod repos;
4040
mod send_envelope;
4141
mod send_event;
42-
mod send_metric;
4342
mod sourcemaps;
4443
#[cfg(not(feature = "managed"))]
4544
mod uninstall;
@@ -70,7 +69,6 @@ macro_rules! each_subcommand {
7069
$mac!(repos);
7170
$mac!(send_event);
7271
$mac!(send_envelope);
73-
$mac!(send_metric);
7472
$mac!(sourcemaps);
7573
$mac!(dart_symbol_map);
7674
#[cfg(not(feature = "managed"))]

src/commands/send_metric/common_args.rs

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/commands/send_metric/distribution.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/commands/send_metric/gauge.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/commands/send_metric/increment.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/commands/send_metric/mod.rs

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)