sentry-cli 2.36.1__tar.gz → 2.36.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/Cargo.lock +1 -1
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/Cargo.toml +1 -1
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/PKG-INFO +1 -1
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/sentry_cli.egg-info/SOURCES.txt +1 -0
- sentry_cli-2.36.2/src/api/data_types/deploy.rs +29 -0
- sentry_cli-2.36.2/src/api/data_types/mod.rs +7 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/mod.rs +0 -22
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/deploys/new.rs +7 -5
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_metric/mod.rs +27 -7
- sentry_cli-2.36.1/src/api/data_types/mod.rs +0 -3
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/LICENSE +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/MANIFEST.in +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/README.md +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/build.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/pyproject.toml +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/setup.cfg +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/setup.py +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/connection_manager.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/artifact.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/compression.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/dif.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/file_state.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/upload/capability.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/upload/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/data_types/chunking/upload/options.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/encoding.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/envelopes_api.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/errors/api_error.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/errors/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/errors/sentry_error.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/api/pagination.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/bashsupport.sh +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/debug_files/upload.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/derive_parser.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/events/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/events/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/files/delete.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/files/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/files/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/files/upload.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/info.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/issues/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/login.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/projects/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/react_native/appcenter.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/react_native/gradle.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/react_native/xcode.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/info.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/new.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/repos/list.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_event.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_metric/common_args.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_metric/distribution.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_metric/gauge.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_metric/increment.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/send_metric/set.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/sourcemaps/explain.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/sourcemaps/upload.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/uninstall.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/update.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/config.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/constants.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/main.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/android.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/appcenter.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/args.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/auth_token/auth_token_impl.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/auth_token/error.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/auth_token/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/auth_token/org_auth_token.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/auth_token/redacting.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/auth_token/test.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/auth_token/user_auth_token.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/chunks.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/cordova.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/dif.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/dif_upload.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/event.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/file_search.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/file_upload.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/formatting.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/fs.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/http.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/logging.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/metrics.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/mod.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/progress.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/releases.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/retry.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/sourcemaps.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/system.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/ui.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/update.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/value_parsers.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/vcs.rs +0 -0
- {sentry_cli-2.36.1 → sentry_cli-2.36.2}/src/utils/xcode.rs +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//! The `Deploy` data type.
|
|
2
|
+
|
|
3
|
+
use chrono::{DateTime, Utc};
|
|
4
|
+
use serde::{Deserialize, Serialize};
|
|
5
|
+
use std::borrow::Cow;
|
|
6
|
+
|
|
7
|
+
#[derive(Serialize, Deserialize, Debug, Default)]
|
|
8
|
+
pub struct Deploy<'d> {
|
|
9
|
+
#[serde(rename = "environment")]
|
|
10
|
+
pub env: Cow<'d, str>,
|
|
11
|
+
pub name: Option<Cow<'d, str>>,
|
|
12
|
+
pub url: Option<Cow<'d, str>>,
|
|
13
|
+
#[serde(rename = "dateStarted")]
|
|
14
|
+
pub started: Option<DateTime<Utc>>,
|
|
15
|
+
#[serde(rename = "dateFinished")]
|
|
16
|
+
pub finished: Option<DateTime<Utc>>,
|
|
17
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
18
|
+
pub projects: Option<Vec<Cow<'d, str>>>,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
impl<'d> Deploy<'d> {
|
|
22
|
+
/// Returns the name of this deploy, defaulting to `"unnamed"`.
|
|
23
|
+
pub fn name(&self) -> &str {
|
|
24
|
+
match self.name.as_deref() {
|
|
25
|
+
Some("") | None => "unnamed",
|
|
26
|
+
Some(name) => name,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -2359,28 +2359,6 @@ impl fmt::Display for Repo {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
2362
|
-
#[derive(Serialize, Deserialize, Debug, Default)]
|
|
2363
|
-
pub struct Deploy {
|
|
2364
|
-
#[serde(rename = "environment")]
|
|
2365
|
-
pub env: String,
|
|
2366
|
-
pub name: Option<String>,
|
|
2367
|
-
pub url: Option<String>,
|
|
2368
|
-
#[serde(rename = "dateStarted")]
|
|
2369
|
-
pub started: Option<DateTime<Utc>>,
|
|
2370
|
-
#[serde(rename = "dateFinished")]
|
|
2371
|
-
pub finished: Option<DateTime<Utc>>,
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
impl Deploy {
|
|
2375
|
-
/// Returns the name of this deploy, defaulting to `"unnamed"`.
|
|
2376
|
-
pub fn name(&self) -> &str {
|
|
2377
|
-
match self.name.as_deref() {
|
|
2378
|
-
Some("") | None => "unnamed",
|
|
2379
|
-
Some(name) => name,
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
2362
|
#[derive(Debug, Serialize, Clone)]
|
|
2385
2363
|
pub struct PatchSet {
|
|
2386
2364
|
pub path: String,
|
|
@@ -68,9 +68,10 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
68
68
|
let api = Api::current();
|
|
69
69
|
let version = config.get_release_with_legacy_fallback(matches)?;
|
|
70
70
|
let mut deploy = Deploy {
|
|
71
|
-
env: matches.get_one::<String>("env").unwrap().
|
|
72
|
-
name: matches.get_one::<String>("name").
|
|
73
|
-
url: matches.get_one::<String>("url").
|
|
71
|
+
env: matches.get_one::<String>("env").unwrap().into(),
|
|
72
|
+
name: matches.get_one::<String>("name").map(|n| n.into()),
|
|
73
|
+
url: matches.get_one::<String>("url").map(|u| u.into()),
|
|
74
|
+
projects: matches.get_many::<String>("project").map(|x| x.into_iter().map(|x| x.into()).collect()),
|
|
74
75
|
..Default::default()
|
|
75
76
|
};
|
|
76
77
|
|
|
@@ -90,8 +91,9 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
let org = config.get_org(matches)?;
|
|
93
|
-
let
|
|
94
|
-
|
|
94
|
+
let authenticated_api = api.authenticated()?;
|
|
95
|
+
|
|
96
|
+
let created_deploy = authenticated_api
|
|
95
97
|
.create_deploy(&org, &version, &deploy)?;
|
|
96
98
|
|
|
97
99
|
println!(
|
|
@@ -13,6 +13,17 @@ use anyhow::Result;
|
|
|
13
13
|
use clap::{command, Args, Subcommand};
|
|
14
14
|
use clap::{ArgMatches, Command, Parser};
|
|
15
15
|
|
|
16
|
+
const DEPRECATION_MESSAGE: &str = "DEPRECATION NOTICE: \
|
|
17
|
+
The send-metric commands are deprecated and will be \
|
|
18
|
+
removed in the next major release. \
|
|
19
|
+
Sentry will reject all metrics sent after October 7, 2024. Learn more: \
|
|
20
|
+
https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics";
|
|
21
|
+
|
|
22
|
+
const INCREMENT_ABOUT: &str = "Increment a counter metric";
|
|
23
|
+
const DISTRIBUTION_ABOUT: &str = "Update a distribution metric with the provided value";
|
|
24
|
+
const GAUGE_ABOUT: &str = "Update a gauge metric with the provided value";
|
|
25
|
+
const SET_ABOUT: &str = "Update a set metric with the provided value";
|
|
26
|
+
|
|
16
27
|
#[derive(Args)]
|
|
17
28
|
pub(super) struct SendMetricArgs {
|
|
18
29
|
#[command(subcommand)]
|
|
@@ -20,20 +31,26 @@ pub(super) struct SendMetricArgs {
|
|
|
20
31
|
}
|
|
21
32
|
|
|
22
33
|
#[derive(Subcommand)]
|
|
23
|
-
#[command(about = "Send a metric to Sentry.")]
|
|
24
|
-
#[command(long_about = "
|
|
34
|
+
#[command(about = "[DEPRECATED] Send a metric to Sentry.")]
|
|
35
|
+
#[command(long_about = format!("{DEPRECATION_MESSAGE}{{n}}{{n}}\
|
|
36
|
+
Send a metric event to Sentry.{{n}}{{n}}\
|
|
25
37
|
This command will validate input parameters and attempt to send a metric to \
|
|
26
38
|
Sentry. Due to network errors and rate limits, the metric is not guaranteed to \
|
|
27
39
|
arrive. Check the debug output for transmission errors by passing --log-level=\
|
|
28
|
-
debug or setting `SENTRY_LOG_LEVEL=debug`.")]
|
|
40
|
+
debug or setting `SENTRY_LOG_LEVEL=debug`."))]
|
|
41
|
+
#[command(hide=true)]
|
|
29
42
|
enum SendMetricSubcommand {
|
|
30
|
-
#[command(about = "
|
|
43
|
+
#[command(about = format!("[DEPRECATED] {INCREMENT_ABOUT}"))]
|
|
44
|
+
#[command(long_about = format!("{DEPRECATION_MESSAGE}{{n}}{{n}}{INCREMENT_ABOUT}"))]
|
|
31
45
|
Increment(IncrementMetricArgs),
|
|
32
|
-
#[command(about = "
|
|
46
|
+
#[command(about = format!("[DEPRECATED] {DISTRIBUTION_ABOUT}"))]
|
|
47
|
+
#[command(long_about = format!("{DEPRECATION_MESSAGE}{{n}}{{n}}{DISTRIBUTION_ABOUT}"))]
|
|
33
48
|
Distribution(FloatValueMetricArgs),
|
|
34
|
-
#[command(about = "
|
|
49
|
+
#[command(about = format!("[DEPRECATED] {GAUGE_ABOUT}"))]
|
|
50
|
+
#[command(long_about = format!("{DEPRECATION_MESSAGE}{{n}}{{n}}{GAUGE_ABOUT}"))]
|
|
35
51
|
Gauge(FloatValueMetricArgs),
|
|
36
|
-
#[command(about = "
|
|
52
|
+
#[command(about = format!("[DEPRECATED] {SET_ABOUT}"))]
|
|
53
|
+
#[command(long_about = format!("{DEPRECATION_MESSAGE}{{n}}{{n}}{SET_ABOUT}"))]
|
|
37
54
|
Set(SetMetricArgs),
|
|
38
55
|
}
|
|
39
56
|
|
|
@@ -48,6 +65,9 @@ pub(super) fn execute(_: &ArgMatches) -> Result<()> {
|
|
|
48
65
|
// _ => panic!("expected send-metric subcommand"),
|
|
49
66
|
// };
|
|
50
67
|
let SentryCLICommand::SendMetric(SendMetricArgs { subcommand }) = SentryCLI::parse().command;
|
|
68
|
+
|
|
69
|
+
log::warn!("{DEPRECATION_MESSAGE}");
|
|
70
|
+
|
|
51
71
|
match subcommand {
|
|
52
72
|
SendMetricSubcommand::Increment(args) => increment::execute(args),
|
|
53
73
|
SendMetricSubcommand::Distribution(args) => distribution::execute(args),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|