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

feat: integrate otel collector in guardian #173

Merged
merged 22 commits into from
Sep 19, 2024
Merged

feat: integrate otel collector in guardian #173

merged 22 commits into from
Sep 19, 2024

Conversation

lifosmin
Copy link

No description provided.

cli/config.go Outdated Show resolved Hide resolved
config/telemetry.go Outdated Show resolved Hide resolved
cli/root.go Outdated Show resolved Hide resolved
authInterceptor,
grpc_logrus.UnaryServerInterceptor(logrusEntry),
Copy link
Member

Choose a reason for hiding this comment

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

is there any reason to put this after the auth interceptor? if none we can put it back like previous order as it was

grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(config.GRPC.MaxCallRecvMsgSize),
grpc.MaxCallSendMsgSize(config.GRPC.MaxCallSendMsgSize),
),
grpc.WithDisableRetry(),
Copy link
Member

Choose a reason for hiding this comment

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

what is this needed for?

cli/root.go Outdated
}

defer func() {
if err := shutdownOtel(); err != nil {
log.Printf("telemetry is disabled: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
log.Printf("telemetry is disabled: %v", err)
log.Printf("failed to terminate telemetery: %v\n", err)

@rahmatrhd rahmatrhd merged commit a048f7f into main Sep 19, 2024
6 checks passed
@rahmatrhd rahmatrhd deleted the otel_collector branch September 19, 2024 07:27
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