Skip to content

Commit da905a8

Browse files
authored
[docs] Refresh getting started with AspNetCore and Jaeger (#5740)
1 parent 53cda15 commit da905a8

File tree

3 files changed

+40
-36
lines changed

3 files changed

+40
-36
lines changed

Directory.Packages.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@
8686
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="[17.10.0,18.0.0)" />
8787
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="[8.0.0,9.0)" />
8888
<PackageVersion Include="MinVer" Version="[5.0.0,6.0)" />
89-
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="[1.8.1,2.0)" />
90-
<PackageVersion Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="[1.8.0-beta.1,2.0)" />
91-
<PackageVersion Include="OpenTelemetry.Instrumentation.Http" Version="[1.8.1,2.0)" />
92-
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="[1.8.1,2.0)" />
89+
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="[1.9.0,2.0)" />
90+
<PackageVersion Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="[1.9.0-beta.1,2.0)" />
91+
<PackageVersion Include="OpenTelemetry.Instrumentation.Http" Version="[1.9.0,2.0)" />
92+
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="[1.9.0,2.0)" />
9393
<PackageVersion Include="RabbitMQ.Client" Version="[6.8.1,7.0)" />
9494
<PackageVersion Include="StyleCop.Analyzers" Version="[1.2.0-beta.556,2.0)" />
9595
<PackageVersion Include="Swashbuckle.AspNetCore" Version="[6.6.2,)" />

docs/trace/getting-started-aspnetcore/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,30 @@ in the console for your application (ex `http://localhost:5154`). You should see
3030
the trace output from the console.
3131

3232
```text
33-
Activity.TraceId: c1572aa14ee9c0ac037dbdc3e91e5dd7
34-
Activity.SpanId: 45406137f33cc279
33+
Activity.TraceId: c28f7b480d5c7dfc30cfbd80ad29028d
34+
Activity.SpanId: 27e478bbf9fdec10
3535
Activity.TraceFlags: Recorded
36-
Activity.ActivitySourceName: OpenTelemetry.Instrumentation.AspNetCore
37-
Activity.DisplayName: /
36+
Activity.ActivitySourceName: Microsoft.AspNetCore
37+
Activity.DisplayName: GET /
3838
Activity.Kind: Server
39-
Activity.StartTime: 2023-01-13T19:38:11.5417593Z
40-
Activity.Duration: 00:00:00.0167407
39+
Activity.StartTime: 2024-07-04T13:03:37.3318740Z
40+
Activity.Duration: 00:00:00.3693734
4141
Activity.Tags:
42-
net.host.name: localhost
43-
net.host.port: 5154
44-
http.method: GET
45-
http.scheme: http
46-
http.target: /
47-
http.url: http://localhost:5154/
48-
http.flavor: 1.1
49-
http.user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.76
50-
http.status_code: 200
42+
server.address: localhost
43+
server.port: 5154
44+
http.request.method: GET
45+
url.scheme: https
46+
url.path: /
47+
network.protocol.version: 2
48+
user_agent.original: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
49+
http.route: /
50+
http.response.status_code: 200
5151
Resource associated with Activity:
5252
service.name: getting-started-aspnetcore
53-
service.instance.id: 32c9371c-ed9d-474c-a698-b169e87a5577
53+
service.instance.id: a388466b-4969-4bb0-ad96-8f39527fa66b
5454
telemetry.sdk.name: opentelemetry
5555
telemetry.sdk.language: dotnet
56-
telemetry.sdk.version: 1.5.1
56+
telemetry.sdk.version: 1.9.0
5757
```
5858

5959
Congratulations! You are now collecting traces using OpenTelemetry.

docs/trace/getting-started-jaeger/README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,29 @@ Run the application again and we should see the trace output from the console:
4747
```text
4848
> dotnet run
4949
50-
Activity.TraceId: a80c920e0aabb50b547e2bb7455cfd39
51-
Activity.SpanId: 4e45a1d51744f329
52-
Activity.TraceFlags: Recorded
53-
Activity.ParentSpanId: 4f7e9b78c55dcfad
54-
Activity.ActivitySourceName: OpenTelemetry.Instrumentation.Http
55-
Activity.DisplayName: HTTP GET
56-
Activity.Kind: Client
57-
Activity.StartTime: 2022-05-07T02:54:25.7840762Z
58-
Activity.Duration: 00:00:01.9615540
50+
Activity.TraceId: 693f1d15634bfe6ba3254d6f9d20df27
51+
Activity.SpanId: 429cc5a90a753fb3
52+
Activity.TraceFlags: Recorded
53+
Activity.ParentSpanId: 0d64498b736c9a11
54+
Activity.ActivitySourceName: System.Net.Http
55+
Activity.DisplayName: GET
56+
Activity.Kind: Client
57+
Activity.StartTime: 2024-07-04T13:18:12.2408786Z
58+
Activity.Duration: 00:00:02.1028562
5959
Activity.Tags:
60-
http.method: GET
61-
http.host: httpstat.us
62-
http.url: https://httpstat.us/200?sleep=1000
63-
http.status_code: 200
60+
http.request.method: GET
61+
server.address: httpstat.us
62+
server.port: 443
63+
url.full: https://httpstat.us/200?sleep=Redacted
64+
network.protocol.version: 1.1
65+
http.response.status_code: 200
6466
Resource associated with Activity:
6567
service.name: DemoApp
6668
service.version: 1.0.0
67-
service.instance.id: 1b3b3a6f-be43-46b0-819a-4db1200c633d
68-
69+
service.instance.id: 03ccafab-e9a7-440a-a9cd-9a0163e0d06c
70+
telemetry.sdk.name: opentelemetry
71+
telemetry.sdk.language: dotnet
72+
telemetry.sdk.version: 1.9.0
6973
...
7074
```
7175

0 commit comments

Comments
 (0)