-
Notifications
You must be signed in to change notification settings - Fork 1
Add support for openTelemetry #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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
- 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
openTelemetry tracer
openTelemetry metric
/metrics
endpoint for prometheusopenTelemetry log
goner/grpc supports cross-process trace propagation via gRPC
goner/grpc support open telemetry #66
goner/gin & goner/urllib supports cross-process trace propagation via http
goner/urllib support open telemetry #65
goner/gin Support transfer trace for open telemetry #64