Accounting Service

Ви переглядаєте англійську версію сторінки, тому що її ще не було повністю перекладеною українською. Бажаєте допомогти? Дивіться як взяти Участь.

This service calculates the total amount of sold products. This calculation is currently mocked and received orders are printed out. Once a record is retrieved from Kafka, it is saved to the database (PostgreSQL).

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