[release/8.0] Replace http.error.reason with OTel standard error.type (#91996)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 14 Sep 2023 20:20:31 +0000 (13:20 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2023 20:20:31 +0000 (13:20 -0700)
commit5de5c460b8cc2ab05c1d93c6514d57a30ffda889
tree2886bfdc8219fda0e1ae34299225d1677297d5d2
parentdbd788512921d7d05d33d71c5a03375357c5efb8
[release/8.0] Replace http.error.reason with OTel standard error.type (#91996)

* implement standard semantics for the request.duration error tag

* delete unused using

* reduce s_statusCodeStrings size

---------

Co-authored-by: antonfirsov <antonfir@gmail.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Anton Firszov <Anton.Firszov@microsoft.com>
src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs
src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs