From 6ac752687026f36d37186631b2e724b6d9e7288b Mon Sep 17 00:00:00 2001 From: Juliano Costa Date: Mon, 26 Feb 2024 21:20:46 +0100 Subject: [PATCH 1/2] Add Host Detector --- src/cartservice/src/Program.cs | 4 +++- src/cartservice/src/cartservice.csproj | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cartservice/src/Program.cs b/src/cartservice/src/Program.cs index 3a50e9be71..9716131004 100644 --- a/src/cartservice/src/Program.cs +++ b/src/cartservice/src/Program.cs @@ -15,6 +15,7 @@ using OpenTelemetry.Logs; using OpenTelemetry.Metrics; using OpenTelemetry.ResourceDetectors.Container; +using OpenTelemetry.ResourceDetectors.Host; using OpenTelemetry.Resources; using OpenTelemetry.Trace; @@ -47,7 +48,8 @@ Action appResourceBuilder = resource => resource - .AddDetector(new ContainerResourceDetector()); + .AddDetector(new ContainerResourceDetector()) + .AddDetector(new HostDetector()); builder.Services.AddOpenTelemetry() .ConfigureResource(appResourceBuilder) diff --git a/src/cartservice/src/cartservice.csproj b/src/cartservice/src/cartservice.csproj index 4e24809a75..0dcac7d48c 100644 --- a/src/cartservice/src/cartservice.csproj +++ b/src/cartservice/src/cartservice.csproj @@ -21,6 +21,7 @@ + From 6846d1d47ed1bc593132176b4862621f716053e0 Mon Sep 17 00:00:00 2001 From: Juliano Costa Date: Mon, 26 Feb 2024 21:24:08 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44c46b942d..b20a9c8331 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,18 +7,20 @@ the release. ## Unreleased -* [checkoutservice] add producer interceptor for tracing - ([#1400](https://github.com/open-telemetry/opentelemetry-demo/pull/1400)) * [chore] increase memory for Collector and Jaeger ([#1396](https://github.com/open-telemetry/opentelemetry-demo/pull/1396)) * [chore] fix Make targets for restart and redeploy ([#1397](https://github.com/open-telemetry/opentelemetry-demo/pull/1397)) * [chore] add nightly releases ([#1398](https://github.com/open-telemetry/opentelemetry-demo/pull/1398)) -* [chore] remove unused integration test - ([#1406](https://github.com/open-telemetry/opentelemetry-demo/pull/1406)) +* [checkoutservice] add producer interceptor for tracing + ([#1400](https://github.com/open-telemetry/opentelemetry-demo/pull/1400)) * [productcatalogservice] fix graceful shutdown issues ([#1402](https://github.com/open-telemetry/opentelemetry-demo/pull/1402)) +* [chore] remove unused integration test + ([#1406](https://github.com/open-telemetry/opentelemetry-demo/pull/1406)) +* [CartService] - Add Host Detector + ([#1415](https://github.com/open-telemetry/opentelemetry-demo/pull/1415)) ## 1.8.0