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).
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 Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!