Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Otel implemenation #1181

wants to merge 5 commits into from

Conversation

thibaultleouay
Copy link
Member

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation

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)

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
openstatus-web ⬜️ Ignored (Inspect) Visit Preview Feb 4, 2025 6:55pm

Copy link
Contributor

@Copilot 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.

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)

fmt.Println(req.OtelConfig.Headers)

if err != nil {
fmt.Println("Error setting up otel", err)
Copy link
Preview

Copilot AI Jan 30, 2025

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.

Suggested change
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.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
go run cmd/main.go
```

you can also set the env variable
Copy link
Preview

Copilot AI Jan 30, 2025

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".

Suggested change
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.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
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.

1 participant