-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(metrics): Deprecate
send-metric
commands
Closes #2150
- Loading branch information
1 parent
b9acc54
commit 332eeab
Showing
10 changed files
with
192 additions
and
80 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
52 changes: 37 additions & 15 deletions
52
tests/integration/_cases/send_metric/send_metric-distribution-help.trycmd
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,25 +1,47 @@ | ||
``` | ||
$ sentry-cli send-metric distribution --help | ||
? success | ||
DEPRECATION NOTICE: The send-metric commands are deprecated and will be removed in the next major | ||
release. Sentry will reject all metrics sent after October 7, 2024. Learn more: | ||
https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics | ||
|
||
Update a distribution metric with the provided value | ||
|
||
Usage: sentry-cli[EXE] send-metric distribution [OPTIONS] --name <NAME> --value <VALUE> | ||
|
||
Options: | ||
-n, --name <NAME> The name of the metric, identifying it in Sentry. | ||
--header <KEY:VALUE> Custom headers that should be attached to all requests | ||
in key:value format. | ||
-u, --unit <UNIT> Any custom unit. You can have multiple metrics with the same name | ||
but different units. | ||
--auth-token <AUTH_TOKEN> Use the given Sentry auth token. | ||
-t, --tags <KEY:VALUE>... Metric tags as key:value pairs. Tags allow you to add dimensions to | ||
your metrics and can be filtered or grouped by in Sentry. | ||
-v, --value <VALUE> Metric value, any finite 64 bit float. | ||
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info, | ||
warn, error] | ||
--quiet Do not print any output while preserving correct exit code. This | ||
flag is currently implemented only for selected subcommands. | ||
[aliases: silent] | ||
-h, --help Print help | ||
-n, --name <NAME> | ||
The name of the metric, identifying it in Sentry. | ||
|
||
--header <KEY:VALUE> | ||
Custom headers that should be attached to all requests | ||
in key:value format. | ||
|
||
-u, --unit <UNIT> | ||
Any custom unit. You can have multiple metrics with the same name but different units. | ||
|
||
--auth-token <AUTH_TOKEN> | ||
Use the given Sentry auth token. | ||
|
||
-t, --tags <KEY:VALUE>... | ||
Metric tags as key:value pairs. Tags allow you to add dimensions to your metrics and can | ||
be filtered or grouped by in Sentry. | ||
|
||
-v, --value <VALUE> | ||
Metric value, any finite 64 bit float. | ||
|
||
--log-level <LOG_LEVEL> | ||
Set the log output verbosity. | ||
|
||
[possible values: trace, debug, info, warn, error] | ||
|
||
--quiet | ||
Do not print any output while preserving correct exit code. This flag is currently | ||
implemented only for selected subcommands. | ||
|
||
[aliases: silent] | ||
|
||
-h, --help | ||
Print help (see a summary with '-h') | ||
|
||
``` |
52 changes: 37 additions & 15 deletions
52
tests/integration/_cases/send_metric/send_metric-gauge-help.trycmd
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,25 +1,47 @@ | ||
``` | ||
$ sentry-cli send-metric gauge --help | ||
? success | ||
DEPRECATION NOTICE: The send-metric commands are deprecated and will be removed in the next major | ||
release. Sentry will reject all metrics sent after October 7, 2024. Learn more: | ||
https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics | ||
|
||
Update a gauge metric with the provided value | ||
|
||
Usage: sentry-cli[EXE] send-metric gauge [OPTIONS] --name <NAME> --value <VALUE> | ||
|
||
Options: | ||
-n, --name <NAME> The name of the metric, identifying it in Sentry. | ||
--header <KEY:VALUE> Custom headers that should be attached to all requests | ||
in key:value format. | ||
-u, --unit <UNIT> Any custom unit. You can have multiple metrics with the same name | ||
but different units. | ||
--auth-token <AUTH_TOKEN> Use the given Sentry auth token. | ||
-t, --tags <KEY:VALUE>... Metric tags as key:value pairs. Tags allow you to add dimensions to | ||
your metrics and can be filtered or grouped by in Sentry. | ||
-v, --value <VALUE> Metric value, any finite 64 bit float. | ||
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info, | ||
warn, error] | ||
--quiet Do not print any output while preserving correct exit code. This | ||
flag is currently implemented only for selected subcommands. | ||
[aliases: silent] | ||
-h, --help Print help | ||
-n, --name <NAME> | ||
The name of the metric, identifying it in Sentry. | ||
|
||
--header <KEY:VALUE> | ||
Custom headers that should be attached to all requests | ||
in key:value format. | ||
|
||
-u, --unit <UNIT> | ||
Any custom unit. You can have multiple metrics with the same name but different units. | ||
|
||
--auth-token <AUTH_TOKEN> | ||
Use the given Sentry auth token. | ||
|
||
-t, --tags <KEY:VALUE>... | ||
Metric tags as key:value pairs. Tags allow you to add dimensions to your metrics and can | ||
be filtered or grouped by in Sentry. | ||
|
||
-v, --value <VALUE> | ||
Metric value, any finite 64 bit float. | ||
|
||
--log-level <LOG_LEVEL> | ||
Set the log output verbosity. | ||
[..] | ||
[possible values: trace, debug, info, warn, error] | ||
|
||
--quiet | ||
Do not print any output while preserving correct exit code. This flag is currently | ||
implemented only for selected subcommands. | ||
[..] | ||
[aliases: silent] | ||
|
||
-h, --help | ||
Print help (see a summary with '-h') | ||
|
||
``` |
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
55 changes: 39 additions & 16 deletions
55
tests/integration/_cases/send_metric/send_metric-increment-help.trycmd
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,26 +1,49 @@ | ||
``` | ||
$ sentry-cli send-metric increment --help | ||
? success | ||
DEPRECATION NOTICE: The send-metric commands are deprecated and will be removed in the next major | ||
release. Sentry will reject all metrics sent after October 7, 2024. Learn more: | ||
https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics | ||
|
||
Increment a counter metric | ||
|
||
Usage: sentry-cli[EXE] send-metric increment [OPTIONS] --name <NAME> | ||
|
||
Options: | ||
-n, --name <NAME> The name of the metric, identifying it in Sentry. | ||
--header <KEY:VALUE> Custom headers that should be attached to all requests | ||
in key:value format. | ||
-u, --unit <UNIT> Any custom unit. You can have multiple metrics with the same name | ||
but different units. | ||
--auth-token <AUTH_TOKEN> Use the given Sentry auth token. | ||
-t, --tags <KEY:VALUE>... Metric tags as key:value pairs. Tags allow you to add dimensions to | ||
your metrics and can be filtered or grouped by in Sentry. | ||
-v, --value <VALUE> Value to increment the metric by, any finite 64 bit float. | ||
[default: 1] | ||
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info, | ||
warn, error] | ||
--quiet Do not print any output while preserving correct exit code. This | ||
flag is currently implemented only for selected subcommands. | ||
[aliases: silent] | ||
-h, --help Print help | ||
-n, --name <NAME> | ||
The name of the metric, identifying it in Sentry. | ||
|
||
--header <KEY:VALUE> | ||
Custom headers that should be attached to all requests | ||
in key:value format. | ||
|
||
-u, --unit <UNIT> | ||
Any custom unit. You can have multiple metrics with the same name but different units. | ||
|
||
--auth-token <AUTH_TOKEN> | ||
Use the given Sentry auth token. | ||
|
||
-t, --tags <KEY:VALUE>... | ||
Metric tags as key:value pairs. Tags allow you to add dimensions to your metrics and can | ||
be filtered or grouped by in Sentry. | ||
|
||
-v, --value <VALUE> | ||
Value to increment the metric by, any finite 64 bit float. | ||
[..] | ||
[default: 1] | ||
|
||
--log-level <LOG_LEVEL> | ||
Set the log output verbosity. | ||
[..] | ||
[possible values: trace, debug, info, warn, error] | ||
|
||
--quiet | ||
Do not print any output while preserving correct exit code. This flag is currently | ||
implemented only for selected subcommands. | ||
[..] | ||
[aliases: silent] | ||
|
||
-h, --help | ||
Print help (see a summary with '-h') | ||
|
||
``` |
1 change: 1 addition & 0 deletions
1
tests/integration/_cases/send_metric/send_metric-increment-unsuccessful-api-call.trycmd
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
10 changes: 5 additions & 5 deletions
10
tests/integration/_cases/send_metric/send_metric-no-subcommand.trycmd
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
54 changes: 38 additions & 16 deletions
54
tests/integration/_cases/send_metric/send_metric-set-help.trycmd
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,26 +1,48 @@ | ||
``` | ||
$ sentry-cli send-metric set --help | ||
? success | ||
DEPRECATION NOTICE: The send-metric commands are deprecated and will be removed in the next major | ||
release. Sentry will reject all metrics sent after October 7, 2024. Learn more: | ||
https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics | ||
|
||
Update a set metric with the provided value | ||
|
||
Usage: sentry-cli[EXE] send-metric set [OPTIONS] --name <NAME> --value <VALUE> | ||
|
||
Options: | ||
-n, --name <NAME> The name of the metric, identifying it in Sentry. | ||
--header <KEY:VALUE> Custom headers that should be attached to all requests | ||
in key:value format. | ||
-u, --unit <UNIT> Any custom unit. You can have multiple metrics with the same name | ||
but different units. | ||
--auth-token <AUTH_TOKEN> Use the given Sentry auth token. | ||
-t, --tags <KEY:VALUE>... Metric tags as key:value pairs. Tags allow you to add dimensions to | ||
your metrics and can be filtered or grouped by in Sentry. | ||
-v, --value <VALUE> Value to add to the set. If the set already contains the provided | ||
value, the set's unique count will not increase. | ||
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info, | ||
warn, error] | ||
--quiet Do not print any output while preserving correct exit code. This | ||
flag is currently implemented only for selected subcommands. | ||
[aliases: silent] | ||
-h, --help Print help | ||
-n, --name <NAME> | ||
The name of the metric, identifying it in Sentry. | ||
|
||
--header <KEY:VALUE> | ||
Custom headers that should be attached to all requests | ||
in key:value format. | ||
|
||
-u, --unit <UNIT> | ||
Any custom unit. You can have multiple metrics with the same name but different units. | ||
|
||
--auth-token <AUTH_TOKEN> | ||
Use the given Sentry auth token. | ||
|
||
-t, --tags <KEY:VALUE>... | ||
Metric tags as key:value pairs. Tags allow you to add dimensions to your metrics and can | ||
be filtered or grouped by in Sentry. | ||
|
||
-v, --value <VALUE> | ||
Value to add to the set. If the set already contains the provided value, the set's unique | ||
count will not increase. | ||
|
||
--log-level <LOG_LEVEL> | ||
Set the log output verbosity. | ||
[..] | ||
[possible values: trace, debug, info, warn, error] | ||
|
||
--quiet | ||
Do not print any output while preserving correct exit code. This flag is currently | ||
implemented only for selected subcommands. | ||
[..] | ||
[aliases: silent] | ||
|
||
-h, --help | ||
Print help (see a summary with '-h') | ||
|
||
``` |