Граф коммитов

707 Коммитов

Автор SHA1 Сообщение Дата
Eric St-Georges e65a581983
Fix IL2091 warnings (#4953)
* Fix IL2091 warnings

Part of #4002

Added DynamicallyAccessedMembers attributes where the warning was found

removed IL2091 from NoWarn in Directory.Build.targets

* Remove more warnings that are no longer necessary.

* Remove Memoize with 3 parameters.

This code isn't being used.

---------

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
2024-02-21 15:04:17 +00:00
Damian Horna a8e17517bd
Hashcode implementation proposal for DataClassificationSet (#4933) 2024-02-15 05:35:29 +01:00
dotnet-maestro[bot] 2a6e51eb79
Update dependencies from https://github.com/dotnet/arcade build 20240213.2 (#4946)
[main] Update dependencies from dotnet/arcade
2024-02-14 19:53:42 +00:00
Jose Perez Rodriguez e5b3114a90
Merging internal branch changes after 8.2 release. (#4941) 2024-02-13 09:33:46 -08:00
Jose Perez Rodriguez f2052603e0 Merge branch 'internal/release/8.2' into main 2024-02-13 08:02:12 -08:00
martintmk 6715d4faf4
Add gRPS resilience tests to verify interoperability (#4931) 2024-02-10 17:23:13 +01:00
Martin Taillefer b5e9cc7a84
Remove broken and superfluous test case (#4934)
Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2024-02-09 22:55:41 +00:00
Jeff Handley 55aeea9c6f
Fix the automation for merged/closed PRs (#4930) 2024-02-09 10:20:54 -08:00
Jose Perez Rodriguez b7f81954a2
Branding updates for 8.3 (#4927) 2024-02-08 13:09:40 -08:00
Jose Perez Rodriguez 5d685f1b35 Merged PR 37130: Mark Microsoft.AspNetCore.Testing package as stable
Mark Microsoft.AspNetCore.Testing package as stable
2024-02-08 04:53:22 +00:00
Jose Perez Rodriguez bc6b10536c Merged PR 37127: Get ready for release and update dependencies to 8.0.2
Get ready for release and update dependencies to 8.0.2
2024-02-07 22:43:29 +00:00
Jose Perez Rodriguez bb94bb1bd9 Get ready for release and update dependencies to 8.0.2 2024-02-07 11:27:51 -08:00
Jose Perez Rodriguez b5c9f8d441
Revert "Disable HttpClient's timeout for Standard Resilience and Hedging (#4862)" (#4925)
This reverts commit 3654748e14.
2024-02-07 10:50:41 -08:00
martintmk 80abb8ddf7
Upgrade Polly to version 8.3.0 (#4922) 2024-02-05 22:04:52 +01:00
Nikita Balabaev 31f4d22bda
Adding Diagnostics.Testing README (#4918) 2024-02-05 12:37:10 +01:00
Sébastien Ros a44a76e708
Fix CA1859 warning (#4908)
* Fix CA1859 warning
2024-01-26 20:41:43 -08:00
Martin Taillefer 9eac7a3e45
Update analyzer configs and fix a few emergent warnings. (#4903)
Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2024-01-26 12:49:39 -08:00
dotnet-policy-service[bot] 2bdfb76b85
FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#4898)
* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

 Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: dotnet-policy-service[bot] <123482357+dotnet-policy-service[bot]@users.noreply.github.com>
2024-01-25 23:50:28 +11:00
Martin Costello f4e055472d
Bump update-dotnet-sdk to v3.1.2 (#4900)
Update martincostello/update-dotnet-sdk to v3.1.2.
2024-01-24 15:31:42 -08:00
Martin Taillefer 9f25d9d746
Address a couple log generator issues. (#4894)
- Fix a bug where a tag provider attached to an enumerable parameter
or property wouldn't behave as expected. Fixes #4883.

- When an event id is not specified, instead of emitting 0 for the
the id, we now hash the event name and/or method name. This matches
the behavior of the generator in dotnet/runtime and is generally
more useful.

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2024-01-22 08:35:52 -08:00
joegoldman2 62c78eee58
Expose AddTcpEndpointProbe (#4892)
* Expose AddTcpEndpointProbe
2024-01-20 10:29:08 -08:00
Martin Costello 855b57b4fe
Fix SDK update workflow (#4890)
- Checkout the dev branch.
- Use the SHA that for the v3.1.1 tag.
2024-01-18 10:25:06 -08:00
github-actions[bot] e262cd67ed
[main] Add workflow for automatic SDK updates (#4887)
* Add workflow for automatic SDK updates

* Update update-sdk.yml

---------

Co-authored-by: William Godbe <wigodbe@microsoft.com>
2024-01-18 07:00:28 +11:00
Martin Obrátil 83d87c725d
Update README to mention cgroups support (#4884)
The README file for the Diagnostic Resource Monitoring library has been updated. It has been mentioned that this library uses control groups (cgroups) in Linux to monitor system resources. A note has also been added stating that it currently supports cgroups v1, but there is no support for cgroups v2.

Co-authored-by: Martin Obratil <maobrati@microsoft.com>
2024-01-18 06:57:32 +11:00
Martin Obrátil f75874b0ff
Added notes to the docs about thread safety of implementations of IAsyncState, IAsyncContext<T> and IAsyncLocalContext<T> (#4881) 2024-01-16 20:36:11 +01:00
Martin Obratil 6ed0e2c14c Update thread-safety note in docs 2024-01-15 22:53:23 +01:00
Martin Obratil 0800989c17 Extended XML doc to explicitly mention the implementations of IAsyncContext<T>, IAsyncState and IAsyncLocalContext are not thread safe. 2024-01-15 22:23:24 +01:00
Martin Obratil c61c342287 Updated README.md files with notes mentioning thread-safety considerations 2024-01-15 21:48:05 +01:00
Eric Erhardt d58517b455
Enable AOT compatibility for all libraries (#4871)
* Enable AOT compatibility for all libraries (#4625)

* Enable AOT compatibility for all libraries. Fix warnings.

- Enable configuration binder source generator
- The only library that can't use the ConfigBinder SG is the HeaderParsing library.
  - Blocked by https://github.com/dotnet/runtime/issues/94547

* Fix Compliance Redaction.

* Explicitly reference Microsoft.Extensions.Configuration.Binder

For all libraries that use the Configuration.Binder source generator, explicitly reference the NuGet package. This ensures we get the latest version (8.0.1), which has all the source generator fixes.

* Respond to PR feedback.

- Change ArgumentNullException to normal ArgumentException
- Add tests to LoggingRedactionOptions collection setters to keep 100% code coverage. https://github.com/dotnet/runtime/issues/96873 causes these setters to no longer be called in the existing tests.
2024-01-12 00:01:52 +00:00
dotnet-maestro[bot] 7db3a7edc3
Update dependencies from https://github.com/dotnet/arcade build 20240109.4 (#4872)
[main] Update dependencies from dotnet/arcade
- Coherency Updates:
  - Microsoft.Bcl.TimeProvider: from 8.0.1 to 8.0.1 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Caching.Abstractions: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Caching.Memory: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration.Abstractions: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration.Binder: from 8.0.1 to 8.0.1 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration.CommandLine: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration.Json: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Configuration: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.DependencyInjection.Abstractions: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.DependencyInjection: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Diagnostics: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Hosting.Abstractions: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Hosting: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Http: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging.Abstractions: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging.Configuration: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging.Console: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Logging: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Options.ConfigurationExtensions: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Options.DataAnnotations: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Options: from 8.0.1 to 8.0.1 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - Microsoft.Extensions.Primitives: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Collections.Immutable: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Configuration.ConfigurationManager: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Diagnostics.DiagnosticSource: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Diagnostics.PerformanceCounter: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.IO.Hashing: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Net.Http.Json: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Security.Cryptography.Pkcs: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Security.Cryptography.Xml: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Text.Encodings.Web: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Text.Json: from 8.0.1 to 8.0.1 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
  - System.Runtime.Caching: from 8.0.0 to 8.0.0 (parent: Microsoft.AspNetCore.App.Runtime.win-x64)
2024-01-10 17:55:24 +00:00
Jose Perez Rodriguez d5d15f9fb7
Increase minimum code coverage for Microsoft.Extensions.Http.Diagnostics (#4870)
Context: https://github.com/dotnet/extensions/pull/4868#issuecomment-1883496153
2024-01-10 00:01:53 +00:00
Pavel Ivanov 3330486a76
Context switching can affect timer triggering (#4861)
* reset gate under the lock

* add a unit test to reproduce the context-switching effect on the timer callback
2024-01-09 10:42:49 -08:00
Jose Perez Rodriguez 782d82cef4 Merge branch 'internal/release/8.1' into main 2024-01-09 09:10:30 -08:00
Martin Taillefer ff43940bf3
Expose the ResilienceHandler type. (#4858)
Fixes #4759

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2024-01-08 18:53:49 +00:00
Nikita Balabaev 2750750fa5
Don't fail the build if the GitHubComment failed (#4864) 2024-01-08 18:36:28 +00:00
martintmk 3654748e14
Disable HttpClient's timeout for Standard Resilience and Hedging (#4862)
* Disable HttpClient's timeout for Standard Hedging and Standard Resilience
2024-01-08 10:32:49 -08:00
Jose Perez Rodriguez c63655a995 Merged PR 36248: Update platform dependencies to 8.0.1 servicing and prepare for 8.1 release
Update platform dependencies to 8.0.1 servicing and prepare for 8.1 release
2024-01-08 17:34:27 +00:00
Nikita Balabaev 9dc33c219d
No suppression on "Report coverage to GitHub" CI task (#4863) 2024-01-09 00:00:39 +11:00
martintmk b02e145b3c
Upgrade Polly to latest version (8.2.1) (#4860) 2024-01-07 20:21:47 +01:00
Martin Taillefer 68c6e87ee1
Simplify platform check. (#4853)
Fixes #4642

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2024-01-07 21:53:22 +03:00
Jose Perez Rodriguez a27945faac
Branding changes for 8.2 (#4855) 2024-01-05 15:51:35 -08:00
Nikita Balabaev 1e5ad82db3
Support content headers in HttpClient logging (#4842)
* Support content headers in HttpClient logging

* add benchmark

* fix xUnit1030

* unblock the build
2024-01-04 14:44:22 +01:00
Martin Taillefer bff3814c8e
Improve support for [TagName] (#4851)
- When using [TagName] to control the name of a logging tag, the
expectation is that the logging message (if present) should be using
the tag name instead of the parameter name. SO:

```
[LoggerMessage(1, LogLevel.Information, "My message {foo.bar}")]
public static partial void Log(this ILogger logger, [TagName("foo.bar") string msg);
```

Fixes #4848

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2024-01-03 13:33:38 +00:00
Martin Taillefer bd8f28ab24
Leverage an existing Roslyn API instead of rolling my own inferior version (#4850)
Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2024-01-03 05:09:46 -08:00
Nikita Balabaev 3e2405874e
Log outgoing HTTP path parameters in Structured mode (#4845)
* Log outgoing HTTP path parameters in Structured mode
2024-01-02 17:20:40 +00:00
Nikita Balabaev ac68568ef4
Ignore statics in metric source-gen (#4843) 2023-12-29 12:34:00 +01:00
Nikita Balabaev b4c110d526 Ignore statics in metric source-gen 2023-12-28 17:30:48 +01:00
Martin Taillefer f4315cd121
Work on the logging generator. (#4840)
- The generator now produces a warning when asked to log an object
which doesn't implement ToString(), IConvertible, or IFormattable.
Fixed #4835.

- Added support for the Transitive property in the LogProperties attribute. When
set to true, this causes automatic transitive traversal of a complex object, instead
of requiring manual annotations of individual properties. Fixes #4738.

- Introduce the [TagName] attribute to make it possible to control the tag name
used when logging a parameter or property. Fixes #4576.

- Fixed some situations where unnatural errors were produced as a
result of a prior error. The dummy follow-on errors are now avoided.

- Fixed handling of cases where parameters or properties were of type of the
non-generic IEnumerable. The specific type wasn't being recorgnized and treated
as an enumerable.

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2023-12-27 19:22:32 +00:00
Martin Taillefer 40fdaf9b31
Separate EnableRedaction and EnableEnrichment (#4838)
* Separate EnableRedaction and EnableEnrichment

- Prior, calling EnableRedaction or EnableEnrichment would always enable
both enrichment and redaction together. Now, each call only affects the
specific feature it is intended.

Fixes #4683

* Update src/Libraries/Microsoft.Extensions.Telemetry/Logging/ExtendedLoggerFactory.cs

Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>

---------

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
2023-12-27 14:17:17 +00:00
Martin Taillefer b8c91f255f
Address some trivial experimental items (#4837)
Fixes #4819

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
2023-12-27 05:56:58 -08:00