Skip to content

Commit 50880a3

Browse files
committed
Merge remote-tracking branch 'upstream/main' into parameter-capturing/merge-main
2 parents b8c325b + 44455b5 commit 50880a3

File tree

141 files changed

+2714
-1181
lines changed

Some content is hidden

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

141 files changed

+2714
-1181
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"vscode": {
1818
"extensions": [
1919
"ms-vscode.cpptools",
20-
"ms-dotnettools.csharp",
20+
"ms-dotnettools.csdevkit",
2121
"EditorConfig.EditorConfig",
2222
"ms-vscode.powershell",
2323
"tintoy.msbuild-project-tools",

.devcontainer/musl/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"vscode": {
1818
"extensions": [
1919
"ms-vscode.cpptools",
20-
"ms-dotnettools.csharp",
20+
"ms-dotnettools.csdevkit",
2121
"EditorConfig.EditorConfig",
2222
"tintoy.msbuild-project-tools",
2323
"streetsidesoftware.code-spell-checker",

.github/dependabot.template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ updates:
99
schedule:
1010
interval: "daily"
1111
target-branch: "main"
12-
#@ for branch in ["main", "release/7.x", "release/7.2", "release/7.1", "release/7.0", "release/6.x"]:
12+
#@ for branch in ["main", "release/7.x", "release/7.2", "release/7.1", "release/6.x"]:
1313
#@ commit_prefix = "[" + branch + "] "
1414
- package-ecosystem: "nuget"
1515
directory: "/eng/dependabot"

.github/dependabot.yml

-51
Original file line numberDiff line numberDiff line change
@@ -209,57 +209,6 @@ updates:
209209
- version-update:semver-major
210210
commit-message:
211211
prefix: '[release/7.1] '
212-
- package-ecosystem: nuget
213-
directory: /eng/dependabot
214-
schedule:
215-
interval: daily
216-
target-branch: release/7.0
217-
ignore:
218-
- dependency-name: Microsoft.Extensions.*
219-
update-types:
220-
- version-update:semver-major
221-
commit-message:
222-
prefix: '[release/7.0] '
223-
- package-ecosystem: nuget
224-
directory: /eng/dependabot/nuget.org
225-
schedule:
226-
interval: daily
227-
target-branch: release/7.0
228-
commit-message:
229-
prefix: '[release/7.0] '
230-
- package-ecosystem: nuget
231-
directory: /eng/dependabot/net7.0
232-
schedule:
233-
interval: daily
234-
target-branch: release/7.0
235-
ignore:
236-
- dependency-name: '*'
237-
update-types:
238-
- version-update:semver-major
239-
commit-message:
240-
prefix: '[release/7.0] '
241-
- package-ecosystem: nuget
242-
directory: /eng/dependabot/net6.0
243-
schedule:
244-
interval: daily
245-
target-branch: release/7.0
246-
ignore:
247-
- dependency-name: '*'
248-
update-types:
249-
- version-update:semver-major
250-
commit-message:
251-
prefix: '[release/7.0] '
252-
- package-ecosystem: nuget
253-
directory: /eng/dependabot/netcoreapp3.1
254-
schedule:
255-
interval: daily
256-
target-branch: release/7.0
257-
ignore:
258-
- dependency-name: '*'
259-
update-types:
260-
- version-update:semver-major
261-
commit-message:
262-
prefix: '[release/7.0] '
263212
- package-ecosystem: nuget
264213
directory: /eng/dependabot
265214
schedule:

.github/releases.json

+16-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"8.0"
88
],
99
"supported": [
10+
"7.2",
1011
"7.1",
11-
"7.0",
1212
"6.3"
1313
],
1414
"unsupported": [
15+
"7.0",
1516
"6.2",
1617
"6.1"
1718
],
@@ -62,16 +63,26 @@
6263
"supportedFrameworks": [
6364
"net6.0",
6465
"net7.0"
65-
]
66+
],
67+
"outOfSupportDate": "2023-09-13T00:00:00.000Z"
6668
},
6769
"8.0": {
68-
"tag": "v8.0.0-preview.4.23260.4",
69-
"minorReleaseDate": "2023-05-16T00:00:00.000Z",
70-
"patchReleaseDate": "2023-05-16T00:00:00.000Z",
70+
"tag": "v8.0.0-preview.5.23307.11",
71+
"minorReleaseDate": "2023-06-13T00:00:00.000Z",
72+
"patchReleaseDate": "2023-06-13T00:00:00.000Z",
7173
"supportedFrameworks": [
7274
"net6.0",
7375
"net8.0"
7476
]
77+
},
78+
"7.2": {
79+
"tag": "v7.2.0",
80+
"minorReleaseDate": "2023-06-13T00:00:00.000Z",
81+
"patchReleaseDate": "2023-06-13T00:00:00.000Z",
82+
"supportedFrameworks": [
83+
"net6.0",
84+
"net7.0"
85+
]
7586
}
7687
}
7788
}

.github/workflows/add-markdown-feedback.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
17+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
1818
with:
1919
persist-credentials: false
2020

.github/workflows/backport.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
body: backport_start_body
4242
});
4343
- name: Checkout repo
44-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
44+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
4545
with:
4646
persist-credentials: true # We need to persist credentials to push the resulting changes upstream.
4747
fetch-depth: 0

.github/workflows/check-markdown-links.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
17+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
1818
with:
1919
persist-credentials: false
2020

.github/workflows/cleanup-releases.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
21+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
2222
with:
2323
persist-credentials: true # We need to persist credentials inorder to open a PR.
2424

.github/workflows/generate-release-notes.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout release branch
24-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
24+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
2525
with:
2626
persist-credentials: false
2727
fetch-depth: 0 # Fetch the entire repo for the below git commit graph operations
@@ -44,7 +44,7 @@ jobs:
4444
if [[ "$TEST_RUN" == "true" ]]; then
4545
qualified_release_version="test-$release_version"
4646
else
47-
version_url="https://aka.ms/dotnet/diagnostics/monitor${major_minor_version}/release/dotnet-monitor-win-x64.zip.version"
47+
version_url="https://aka.ms/dotnet/diagnostics/monitor${major_minor_version}/release/dotnet-monitor.version"
4848
qualified_release_version=$(curl -sL $version_url)
4949
# Check if the aka.ms url existed
5050
if [[ "$qualified_release_version" =~ "<html" || -z "$qualified_release_version" ]]; then
@@ -74,7 +74,7 @@ jobs:
7474
TEST_RUN: ${{ inputs.test_run }}
7575

7676
- name: Checkout main
77-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
77+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
7878
with:
7979
persist-credentials: true # We need to persist credentials to push the resulting changes upstream.
8080
ref: main

.github/workflows/lint-csharp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
17+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
1818
with:
1919
persist-credentials: false
2020

.github/workflows/post-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
29+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
3030
with:
3131
persist-credentials: false
3232

@@ -72,7 +72,7 @@ jobs:
7272
# It's simpler than trying to parse our `eng/Versions.prop` due to the conditionals in it.
7373
steps:
7474
- name: Checkout
75-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
75+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
7676
with:
7777
persist-credentials: false
7878

@@ -95,7 +95,7 @@ jobs:
9595

9696
steps:
9797
- name: Checkout
98-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
98+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
9999
with:
100100
persist-credentials: false
101101

@@ -147,7 +147,7 @@ jobs:
147147

148148
steps:
149149
- name: Checkout
150-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
150+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
151151
with:
152152
persist-credentials: true # We need to persist credentials inorder to open a PR.
153153
ref: bot/${{ env.TARGET_BRANCH_POSTFIX }}

.github/workflows/spellcheck.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
16+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
1717
with:
1818
persist-credentials: false
1919

.github/workflows/submit-linter-suggestions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
23+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
2424
with:
2525
persist-credentials: false
2626

@@ -60,7 +60,7 @@ jobs:
6060
}
6161
6262
- name: 'Setup reviewdog'
63-
uses: reviewdog/action-setup@8dc47785c4a3a899d16d7371637b070e600cd65f
63+
uses: reviewdog/action-setup@8e48baae926e97848f0863ae248f3b08e089c81f
6464

6565
# Manually supply the triggering PR event information since when a PR is from a fork,
6666
# this workflow running in the base repo will not be given information about it.

.github/workflows/submit-to-do-issue.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
});
2828
2929
- name: Checkout
30-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
30+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
3131
with:
3232
persist-credentials: false
3333

.github/workflows/sync-branches.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.repository == 'dotnet/dotnet-monitor'
1515
strategy:
1616
matrix:
17-
branch: ["release/6.x", "release/7.x", "release/7.2", "release/7.1", "release/7.0"]
17+
branch: ["release/6.x", "release/7.x", "release/7.2", "release/7.1"]
1818
name: 'Sync ${{ matrix.branch }}'
1919
runs-on: ubuntu-latest
2020
permissions:
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
26+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
2727
with:
2828
persist-credentials: true # We need to persist credentials to push the resulting changes upstream.
2929
fetch-depth: 0 # Fetch the entire repo for the below git operations

.github/workflows/update-release-version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
steps:
3333
- name: Checkout branch
34-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
34+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
3535
with:
3636
persist-credentials: true # We need to persist credentials to push the resulting changes upstream.
3737

.vscode/settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
// ms-dotnettools.csharp settings
2020
"csharp.format.enable": true,
2121
"csharp.semanticHighlighting.enabled": true,
22+
"dotnet.defaultSolution": "dotnet-monitor.sln",
23+
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
2224

2325
// ms-dotnettools.csharp settings
2426
"omnisharp.path": "latest",
25-
"omnisharp.defaultLaunchSolution": "dotnet-monitor.sln",
2627
"omnisharp.disableMSBuildDiagnosticWarning": true,
2728
"omnisharp.useModernNet": true,
2829
"omnisharp.enableAsyncCompletion": true,
2930
"omnisharp.enableEditorConfigSupport": true,
30-
"omnisharp.enableImportCompletion": true,
3131
"omnisharp.enableRoslynAnalyzers": true,
3232
"omnisharp.organizeImportsOnFormat": true,
3333
"omnisharp.autoStart": true,

documentation/authentication.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Azure Active Directory integration (referred to as Azure AD) is the recommended
2020

2121
- [Create an App Registration](https://learn.microsoft.com/azure/active-directory/develop/quickstart-register-app#register-an-application) in your Azure tenant that will be used by `dotnet monitor`. Note that a single App Registration can be used by multiple instances of `dotnet monitor`.
2222
- [Add a new app role](https://learn.microsoft.com/azure/active-directory/develop/howto-add-app-roles-in-azure-ad-apps#app-roles-ui) for general API access.
23+
- [Assign user to role](https://learn.microsoft.com/azure/active-directory/develop/howto-add-app-roles-in-apps#assign-users-and-groups-to-roles) via the Enterprise Applications section of AAD.
2324
- [Configure Azure AD in dotnet monitor](./configuration/azure-ad-authentication-configuration.md).
2425

2526
> **Note**: Azure AD B2C is currently not supported.

documentation/egress.md

+32
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,35 @@ GET /dump?egressProvider=monitorBlob HTTP/1.1
2626
```http
2727
HTTP/1.1 202 Accepted
2828
Location: https://localhost:52323/operations/26e74e52-0a16-4e84-84bb-27f904bfaf85
29+
```
30+
31+
## Egress Extensibility (8.0+)
32+
33+
Starting with `dotnet monitor` 8, the tool includes an egress extensibility model that allows additional egress providers to be discovered and usable by a `dotnet monitor` installation. The existing `AzureBlobStorage` egress provider has been moved to this model and remains as an available egress provider in the .NET Tool and `mcr.microsoft.com/dotnet/monitor` image offerings.
34+
35+
In addition to the current `dotnet monitor` offerings, a `monitor-base` image is now available; this image does not include egress providers (with the exception of `FileSystem` egress), allowing users to only include their preferred egress providers. For convenience, the `monitor` image and the nuget package will include all of `dotnet monitor`'s supported extensions.
36+
37+
### Manually Installing Supported Extensions
38+
39+
Users using the `monitor-base` image can manually install supported extensions via Multi-Stage Docker Builds, creating their own image that includes any desired egress providers.
40+
41+
For an example of using Multi-Stage Docker Builds, see the [Dockerfile](https://github.com/dotnet/dotnet-docker/blob/nightly/src/monitor/8.0/ubuntu-chiseled/amd64/Dockerfile) that the `dotnet monitor` team uses to construct the `amd64` `monitor` image.
42+
43+
To directly access archives for one of `dotnet monitor`'s supported extensions, these are available using the following link (this example is specifically for the `linux-x64` archive): `https://dotnetbuilds.azureedge.net/public/diagnostics/monitor/$dotnet_monitor_extension_version/dotnet-monitor-egress-azureblobstorage-$dotnet_monitor_extension_version-linux-x64.tar.gz`. Note: the versions in this link will change in response to new `dotnet monitor` releases; as a result, the link will need to be changed to reflect the most recent version when updating your extensions.
44+
45+
#### Example Of Manually Installing AzureBlobStorage Extension Locally (Version Numbers May Vary)
46+
47+
1. Download the archive: `curl -fSL --output dotnet-monitor-egress-azureblobstorage.tar.gz https://dotnetbuilds.azureedge.net/public/diagnostics/monitor/8.0.0-preview.4.23260.4/dotnet-monitor-egress-azureblobstorage-8.0.0-preview.4.23260.4-linux-x64.tar.gz`
48+
2. Extract the contents of `dotnet-monitor-egress-azureblobstorage.tar.gz`
49+
* Example (Linux): `tar -xvzf dotnet-monitor-egress-azureblobstorage.tar.gz`
50+
4. Place the `AzureBlobStorage` directory found inside the archive in one of `dotnet monitor`'s designated extension [locations](./learningPath/egress.md#well-known-egress-provider-locations).
51+
* Example (Linux): Place `AzureBlobStorage` at `$XDG_CONFIG_HOME/dotnet-monitor/settings.json`.
52+
5. `dotnet monitor` will now automatically detect the extension - ensure you have added the necessary configuration for the extension (configuration for extensions is written alongside the rest of `dotnet monitor` configuration).
53+
54+
> `dotnet monitor` may expand the acquisition model for extensions in the future; if you have a scenario that requires additional installation options, please let us know by creating a [discussion](https://github.com/dotnet/dotnet-monitor/discussions).
55+
56+
### Third-Party Egress Extensions
57+
58+
The extensibility model allows users to utilize third-party egress providers with `dotnet monitor`. **Note that `dotnet monitor` does not endorse or guarantee any third-party extensions - users should always exercise caution when providing sensitive authentication information (such as passwords) to untrusted extensions.** Third-party egress extensions are responsible for their own distribution, and are not included with `dotnet monitor`.
59+
60+
For more information on how to create your own egress extension, see our [learning path](../documentation/learningPath/).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Today we are releasing the 7.2.0 build of the `dotnet monitor` tool. This release includes:
2+
3+
- ⚠️ Disable azure developer cli credentials ([#4479](https://github.com/dotnet/dotnet-monitor/pull/4479))
4+
- Enable workflow identity ([#4473](https://github.com/dotnet/dotnet-monitor/pull/4473))
5+
- Allow per provider interval specification ([#4144](https://github.com/dotnet/dotnet-monitor/pull/4144))
6+
7+
\*⚠️ **_indicates a breaking change_**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Today we are releasing the next official preview version of the `dotnet monitor` tool. This release includes:
2+
- Updated dependencies

0 commit comments

Comments
 (0)