-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Otel implemenation #1181
base: main
Are you sure you want to change the base?
Otel implemenation #1181
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- apps/checker/go.mod: Language not supported
Comments suppressed due to low confidence (1)
apps/checker/handlers/checker.go:282
- Ensure that the new behavior introduced by the OpenTelemetry integration is covered by tests.
otelShutdown, err := otelOS.SetupOTelSDK(ctx, req.OtelConfig.Endpoint, h.Region, req.OtelConfig.Headers)
apps/checker/handlers/checker.go
Outdated
fmt.Println(req.OtelConfig.Headers) | ||
|
||
if err != nil { | ||
fmt.Println("Error setting up otel", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent error handling. Use the 'log' package instead of 'fmt.Println' for logging errors.
fmt.Println("Error setting up otel", err) | |
log.Ctx(ctx).Error().Err(err).Msg("Error setting up otel") |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
go run cmd/main.go | ||
``` | ||
|
||
you can also set the env variable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase "you can also set the env variable" should be corrected to "you can also set the environment variables".
you can also set the env variable | |
you can also set the environment variables |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
Type of change
Description
A picture tells a thousand words (if any)
Before this PR
{Please add a screenshot here}
After this PR
{Please add a screenshot here}
Related Issue (optional)