Change type of http.status_code in example to int to follow semmantic (#2096)

convension
This commit is contained in:
Tom Tan 2021-06-22 11:11:19 -07:00 committed by GitHub
parent 7723fa04cf
commit c69694c5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ namespace Examples.Console
using var response = await client.PostAsync(url, content, cancellationToken).ConfigureAwait(false);
activity?.AddEvent(new ActivityEvent("PostAsync:Ended"));
activity?.SetTag("http.status_code", $"{response.StatusCode:D}");
activity?.SetTag("http.status_code", (int)response.StatusCode);
var responseContent = await response.Content.ReadAsStringAsync();
activity?.SetTag("response.content", responseContent);