Skip to content

Commit

Permalink
[demo/cartservice] Update documentation after 1.9.0 OTel .NET SDK rel…
Browse files Browse the repository at this point in the history
…ease (#4704)
  • Loading branch information
Kielek authored Jun 18, 2024
1 parent 062b4b9 commit d74bfe1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/en/docs/demo/services/cart.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ and resource attributes is performed through environment variables.
```cs
Action<ResourceBuilder> appResourceBuilder =
resource => resource
.AddDetector(new ContainerResourceDetector())
.AddDetector(new HostDetector());
.AddContainerDetector()
.AddHostDetector();

builder.Services.AddOpenTelemetry()
.ConfigureResource(appResourceBuilder)
Expand Down Expand Up @@ -81,7 +81,8 @@ desired instrumentation libraries, exporters, etc.
```cs
Action<ResourceBuilder> appResourceBuilder =
resource => resource
.AddDetector(new ContainerResourceDetector());
.AddContainerDetector()
.AddHostDetector();

builder.Services.AddOpenTelemetry()
.ConfigureResource(appResourceBuilder)
Expand Down

0 comments on commit d74bfe1

Please sign in to comment.