Skip to content

Commit

Permalink
[demo/cart] simplify resource configuration (#2847)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
Kielek and cartermp authored Jun 12, 2023
1 parent 54e88b6 commit b70103b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions content/en/docs/demo/services/cart.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ attributes is performed through environment variables.
```cs
Action<ResourceBuilder> appResourceBuilder =
resource => resource
.AddTelemetrySdk()
.AddEnvironmentVariableDetector()
.AddDetector(new ContainerResourceDetector());

builder.Services.AddOpenTelemetry()
Expand Down Expand Up @@ -81,8 +79,6 @@ libraries, exporters, etc.
```cs
Action<ResourceBuilder> appResourceBuilder =
resource => resource
.AddTelemetrySdk()
.AddEnvironmentVariableDetector()
.AddDetector(new ContainerResourceDetector());

builder.Services.AddOpenTelemetry()
Expand Down

0 comments on commit b70103b

Please sign in to comment.