Accounting Service

You are viewing the English version of this page because it has not yet been translated. Interested in helping out? See Contributing.

This service calculates the total amount of sold products. This is only mocked and received orders are printed out.

Accounting Service

Auto-instrumentation

This service relies on the OpenTelemetry .NET Automatic Instrumentation to automatically instrument libraries such as Kafka, and to configure the OpenTelemetry SDK. The instrumentation is added via Nuget package OpenTelemetry.AutoInstrumentation and activated using environment variables that are sourced from instrument.sh. Using this installation approach also guarantees that all instrumentation dependencies are properly aligned with the application.

Publishing

Add --use-current-runtime to the dotnet publish command to distribute appropriate native runtime components.

dotnet publish "./AccountingService.csproj" --use-current-runtime -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false