Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jgador
Copy link
Owner

@jgador jgador commented Nov 8, 2025

  • Implemented a test to verify that Protobuf encoding produces a smaller payload than JSON.
  • Created a sample ExportLogsServiceRequest for testing purposes.
  • Added output logging for serialized JSON and Protobuf payloads, including their byte lengths.

- Implemented a test to verify that Protobuf encoding produces a smaller payload than JSON.
- Created a sample ExportLogsServiceRequest for testing purposes.
- Added output logging for serialized JSON and Protobuf payloads, including their byte lengths.
@jgador jgador requested a review from Copilot November 8, 2025 08:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new test to compare Protobuf and JSON serialization sizes for OTLP log data, and includes a PowerPoint presentation file. The test demonstrates that Protobuf encoding produces smaller payloads than JSON for OpenTelemetry log records.

Key Changes:

  • Added a new test class ProtoVsJsonSizeTests to verify Protobuf's size efficiency over JSON
  • Added Google.Protobuf and Grpc.Tools package references to the test project
  • Configured Protobuf compilation in the test project for .proto files
  • Added a PowerPoint presentation file

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/Loggle.Tests/ProtoVsJsonSizeTests.cs New test class comparing Protobuf vs JSON payload sizes
test/Loggle.Tests/Loggle.Tests.csproj Added Google.Protobuf and Grpc.Tools dependencies, configured Protobuf compilation
Loggle-demo-deck.pptx Added PowerPoint presentation file (binary)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +37 to +38
<Protobuf Include="$(RepoRoot)\src\Shared\Proto\**\*.proto" Link="Proto\%(RecursiveDir)%(Filename)%(Extension)" Access="public">
<ProtoRoot>$(RepoRoot)\src\Shared\Proto</ProtoRoot>
Copy link

Copilot AI Nov 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Protobuf path uses backslashes which may cause issues on non-Windows platforms. Consider using forward slashes or Path.DirectorySeparatorChar for cross-platform compatibility. For example: $(RepoRoot)/src/Shared/Proto/**/*.proto

Suggested change
<Protobuf Include="$(RepoRoot)\src\Shared\Proto\**\*.proto" Link="Proto\%(RecursiveDir)%(Filename)%(Extension)" Access="public">
<ProtoRoot>$(RepoRoot)\src\Shared\Proto</ProtoRoot>
<Protobuf Include="$(RepoRoot)/src/Shared/Proto/**/*.proto" Link="Proto\%(RecursiveDir)%(Filename)%(Extension)" Access="public">
<ProtoRoot>$(RepoRoot)/src/Shared/Proto</ProtoRoot>

Copilot uses AI. Check for mistakes.
@jgador jgador merged commit b65fa41 into master Nov 8, 2025
8 checks passed
@jgador jgador deleted the demo branch November 11, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants