Skip to content

Conversation

Degfy
Copy link
Member

@Degfy Degfy commented Apr 30, 2025

dapeng added 15 commits April 29, 2025 17:14
- Add IRoutes interface for defining HTTP routes
- Add MountError type for controller mounting errors
- Add Controller interface for mounting routes before service start
- Add helper function Must for panicking on error
- Introduce types for OpenTelemetry tracer, meter, and log loading status
- Add IRoutes interface for defining HTTP routes
- Add MountError type for controller mounting errors
- Add Controller interface for mounting routes before service start
- Add helper function Must for panicking on error
- Introduce types for OpenTelemetry tracer, meter, and log loading status
- Implement gRPC log exporter in otel/log/grpc
- Implement HTTP log exporter in otel/log/http
- Add common log exporter functionality in otel/log
- Include necessary dependencies and configurations
- Add OpenTelemetry dependencies to go.mod
- Implement OpenTelemetry tracing in req.go
- Set up tracer and span for each HTTP request
- Record HTTP request and response details
- Handle errors and set status codes appropriately
- Create prometheus example project for OpenTelemetry integration
- Add controller for API call counting metric
- Implement service entry point and generate dependencies
- Include prometheus configuration and docker-compose setup
- Provide detailed README for project setup and usage
- Add go.opentelemetry.io packages for tracing and metrics
- Update dependencies for gin and other packages
- Add ResourceGetter interface and implement in helper struct
- Update tracer, meter, and log helpers to use resource getter
- Modify examples to use new resource getter functionality
- Update go.mod files across multiple packages to include new dependencies
…alization

- Simplify OpenTelemetry transport integration
- Refactor client initialization to be more concise
- Improve code readability and reduce redundancy
- Add OpenTelemetry client and server handlers for gRPC
- Introduce new dependencies for OpenTelemetry instrumentation
- Update client and server initialization to include OpenTelemetry options
- Implement gRPC client and server with OpenTelemetry tracing
- Add generated protobuf and gRPC code
- Include configuration for gRPC service and OpenTelemetry settings
- Set up Gone framework for dependency injection and module loading
- Rename package from "grpc_demo" to "example/grpc"
- Update import paths for proto files- Remove unused import of "github.com/gone-io/gone/v2"
- Update google.golang.org/grpc to v1.72.0
- Add OpenTelemetry dependencies
…xamples

- Update Opentelemetry dependencies to latest versions
- Refactor OTLP HTTP tracer examples to use relative imports
- Update service names in configuration files
- Remove unused dependencies and imports
- Add PanicIfErr function to panic if an error occurs
- Add ResultError function to return wrapped error if error occurs, otherwise returns the result
- Update go.mod and go.sum files to include testify package
- Add tests for ResultError and PanicIfErr
- Add unit tests for grpc and http exporters in otel/log/grpc and otel/log/http packages
- Implement test cases for Load and Config_ToOtelOptions functions- Update go.mod and go.sum files to include testify package for assertions
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 91.03314% with 46 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
urllib/req.go 71.42% 10 Missing and 2 partials ⚠️
otel/log/helper.go 82.85% 4 Missing and 2 partials ⚠️
otel/meter/helper.go 83.78% 4 Missing and 2 partials ⚠️
otel/tracer/helper.go 82.35% 4 Missing and 2 partials ⚠️
otel/log/grpc/grpc.go 92.68% 1 Missing and 2 partials ⚠️
otel/log/http/http.go 92.85% 2 Missing and 1 partial ⚠️
otel/meter/grpc/grpc.go 92.68% 1 Missing and 2 partials ⚠️
otel/meter/http/http.go 92.68% 2 Missing and 1 partial ⚠️
otel/tracer/grpc/grpc.go 92.50% 1 Missing and 2 partials ⚠️
grpc/server.go 94.73% 1 Missing ⚠️
Files with missing lines Coverage Δ
g/help.go 100.00% <100.00%> (+6.52%) ⬆️
gin/loader.go 100.00% <100.00%> (ø)
gin/router.go 100.00% <100.00%> (+16.66%) ⬆️
grpc/client.go 100.00% <100.00%> (+26.86%) ⬆️
grpc/loader.go 100.00% <ø> (ø)
otel/helper.go 100.00% <100.00%> (ø)
otel/meter/prometheus/gin/controller.go 100.00% <100.00%> (ø)
otel/meter/prometheus/prometheus.go 100.00% <100.00%> (ø)
otel/tracer/http/http.go 100.00% <100.00%> (ø)
grpc/server.go 86.40% <94.73%> (+15.76%) ⬆️
... and 9 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

dapeng added 2 commits April 30, 2025 21:15
- Implement ErrorPrinter function in help.go for logging errors with messages
- Add unit tests for ErrorPrinter in help_test.go
- Refactor gRPC client and server initialization
- Add error handling for gRPC connection and service registration
- Implement test cases for gRPC server and client with OpenTelemetry- Add test cases for URLLib with OpenTelemetry
- Improve logging in Gin router
@Degfy Degfy merged commit 1474794 into main Apr 30, 2025
6 checks passed
@Degfy Degfy added this to gone plan May 7, 2025
@Degfy Degfy moved this to Done in gone plan May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant