-
Notifications
You must be signed in to change notification settings - Fork 20
Support tracing in SDK and add loading to OpenTelemetry client #517
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
base: main
Are you sure you want to change the base?
Conversation
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.
- Нет разметки спанами
- Где-то отсутствует реализация
- В CMake не вписана зависимость на opentelemetry библиотеку
- Надо сделать CMake флаг, чтобы явно включать opentelemetry плагин. Если пользователю он не нужен, не надо делать зависимость кода от него, на то это и плагин
@@ -85,4 +90,4 @@ target_include_directories(nayuki_md5 PUBLIC | |||
$<INSTALL_INTERFACE:third_party/nayuki_md5> | |||
) | |||
|
|||
_ydb_sdk_install_targets(TARGETS nayuki_md5) | |||
_ydb_sdk_install_targets(TARGETS nayuki_md5) |
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.
Лишние изменения
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.
Отступы в CMakeLists везде по 2 пробела
@@ -7,6 +7,8 @@ option(YDB_SDK_EXAMPLES "Build YDB C++ SDK examples" On) | |||
set(YDB_SDK_GOOGLE_COMMON_PROTOS_TARGET "" CACHE STRING "Name of cmake target preparing google common proto library") | |||
option(YDB_SDK_USE_RAPID_JSON "Search for rapid json library in system" ON) | |||
|
|||
option(YDB_SDK_TRACING "Enable tracing support" ON) |
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.
Флаг не совсем корректно назван, мы включаем не трейсинг целиком, мы включаем именно конкретный opentelemetry плагин
else() | ||
target_link_libraries(tracing_example PRIVATE ydb-cpp-sdk) | ||
target_compile_definitions(tracing_example PRIVATE -DYDB_SDK_TRACING_DISABLED) | ||
endif() |
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.
- Таргета ydb-cpp-sdk нет
- Более чистым будет линковаться c opentelemetry-cpp так:
target_link_libraries(tracing_example PRIVATE opentelemetry-cpp::api)
- Если opentelemetry вырублен, example в принципе собирать не надо
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.
Нужен CMakeLists
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.
- Почему это header файлы?
- otel_tracer не нужно компилировать, если проставлен флаг
- А как эти трейсеры создать теперь? Надо создать папку plugins в include и src по правильному. Там будет папка для otel_tracer и в нем будет фабричный метод. А то сейчас все в кучу слеплено
Все еще нет разметки спанами |
No description provided.