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

Iter25 #28

Merged
merged 8 commits into from
Jul 9, 2024
Merged

Iter25 #28

merged 8 commits into from
Jul 9, 2024

Conversation

StasMerzlyakov
Copy link
Owner

No description provided.

Запуск grpc сервера (для получения данных с агента; стартуер вместе с http):
   -g :3200, либо GRPC_ADDRESS, либо grpc_address в json-конфиге

Для агента работа через grpc будет при установке:
 -gprc, либо env:USE_GRPC либо use_grpc в json (значение bool); адрес сервера берется из строки ADDRESS
GetAllMetrics(ctx context.Context) ([]domain.Metrics, error)
```
@alekstet alekstet 2 weeks ago
А если будет много метрик, может сделать пагинацию какую-то
Copy link

Choose a reason for hiding this comment

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

Пагинация хорошая штука
Особенно если курсорная

"google.golang.org/grpc/status"
)

// EncrichWithRequestIDInterceptor Добавляет к запросу RequestID и устанавливает в контекст логгер
Copy link

Choose a reason for hiding this comment

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

RequestID хорошая штука

}
}

// LoggingRequestInfoInteceptor выводит инфрмацию о времени выполнения и статусе возврата
Copy link

Choose a reason for hiding this comment

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

Это тоже очень хороший подход

@StasMerzlyakov StasMerzlyakov merged commit 57fa76e into main Jul 9, 2024
3 checks passed
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