-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support gracefully stopping traces on-demand (#2828)
- Loading branch information
1 parent
ac9805d
commit 95205d0
Showing
48 changed files
with
962 additions
and
302 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
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
### Was this documentation helpful? [Share feedback](https://www.research.net/r/DGDQWXH?src=documentation%2Fapi%2Foperations-stop) | ||
|
||
# Operations - Stop (8.0+) | ||
|
||
Gracefully stops a running operation. Only valid against operations with the `isStoppable` property set to `true`, not all operations support being gracefully stopped. Transitions the operation to `Succeeded` or `Failed` state depending on if the operation was successful. | ||
|
||
Stopping an operation may not happen immediately such as in the case of traces where stopping may collect rundown information. An operation in the `Stopping` state can still be cancelled using [Delete Operation](operations-delete.md). | ||
|
||
## HTTP Route | ||
|
||
```http | ||
DELETE /operations/{operationId}?stop=true HTTP/1.1 | ||
``` | ||
|
||
## Host Address | ||
|
||
The default host address for these routes is `https://localhost:52323`. This route is only available on the addresses configured via the `--urls` command line parameter and the `DOTNETMONITOR_URLS` environment variable. | ||
|
||
## Authentication | ||
|
||
Authentication is enforced for this route. See [Authentication](./../authentication.md) for further information. | ||
|
||
Allowed schemes: | ||
- `Bearer` | ||
- `Negotiate` (Windows only, running as unelevated) | ||
|
||
## Responses | ||
|
||
| Name | Type | Description | Content Type | | ||
|---|---|---|---| | ||
| 202 Accepted | | The operation was successfully queued to stop. | `application/json` | | ||
| 400 Bad Request | [ValidationProblemDetails](definitions.md#validationproblemdetails) | An error occurred due to invalid input. The response body describes the specific problem(s). | `application/problem+json` | | ||
| 401 Unauthorized | | Authentication is required to complete the request. See [Authentication](./../authentication.md) for further information. | | | ||
|
||
## Examples | ||
|
||
### Sample Request | ||
|
||
```http | ||
DELETE /operations/67f07e40-5cca-4709-9062-26302c484f18?stop=true HTTP/1.1 | ||
Host: localhost:52323 | ||
Authorization: Bearer fffffffffffffffffffffffffffffffffffffffffff= | ||
``` | ||
|
||
### Sample Response | ||
|
||
```http | ||
HTTP/1.1 202 OK | ||
``` | ||
|
||
## Supported Runtimes | ||
|
||
| Operating System | Runtime Version | | ||
|---|---| | ||
| Windows | .NET Core 3.1, .NET 5+ | | ||
| Linux | .NET Core 3.1, .NET 5+ | | ||
| MacOS | .NET Core 3.1, .NET 5+ | |
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
Oops, something went wrong.