Skip to content

Add OpenTelemetry lib and metric-interfaces#588

Closed
maladetska wants to merge 17 commits intoydb-platform:mainfrom
maladetska:METRICS-0
Closed

Add OpenTelemetry lib and metric-interfaces#588
maladetska wants to merge 17 commits intoydb-platform:mainfrom
maladetska:METRICS-0

Conversation

@maladetska
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread include/ydb-cpp-sdk/client/metrics/metrics.h
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 21, 2026

🌋 SLO Test Results

Status: 🟢 2 workloads tested • All passed

Workload Metrics Regressions Improvements Links
🚀 table-clang 8 0 1 ReportCheck
🚀 table-gcc 8 1 1 ReportCheck

Generated by ydb-slo-action

@maladetska maladetska changed the title init? Add OpenTelemetry lib Feb 24, 2026
Comment thread cmake/external_libs.cmake Outdated
Comment thread CMakeLists.txt Outdated
@maladetska maladetska changed the title Add OpenTelemetry lib Add OpenTelemetry lib and metric-interfaces Feb 24, 2026
Copy link
Copy Markdown
Collaborator

@Gazizonoki Gazizonoki left a comment

Choose a reason for hiding this comment

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

Мне кажется папка open_telemetry в корне не самая удобная штука. Это же плагин к sdk, может сделаем папку plugins(extensions или еще какое-то имя) и туда положим все такие штуки (экспортеры метрик, трейсов, логов для конкретных систем и т. д.)?

И с метриками, оно вообще используется по коду? SDK уже собирает много метрик, в задаче с метриками это и есть главная сложность, как аккуратно перевести все на общий интерфейс и выкинуть library/cpp/monlib уже к черту из внешнего репозитория (это так-то внутренняя штука, вылезла в open-source ydb-cpp-sdk из-за неаккуратности)

Comment thread include/ydb-cpp-sdk/client/metrics/metrics.h
Comment thread include/ydb-cpp-sdk/client/metrics/metrics.h Outdated
Comment thread open_telemetry/CMakeLists.txt Outdated
Comment thread open_telemetry/src/otel.cpp Outdated
Comment thread plugins/open_telemetry/src/metrics.cpp Outdated
Comment thread src/client/query/impl/query_spans.cpp Outdated
Comment thread src/client/query/impl/query_spans.cpp Outdated
Comment thread src/client/query/client.cpp Outdated
Comment thread src/client/query/client.cpp Outdated
Comment thread src/client/query/client.cpp Outdated
Comment thread include/ydb-cpp-sdk/client/driver/driver.h Outdated
Comment thread include/ydb-cpp-sdk/client/metrics/metrics.h
Comment thread plugins/CMakeLists.txt Outdated
Comment thread src/client/impl/internal/grpc_connections/grpc_connections.h Outdated
Comment thread plugins/open_telemetry/include/ydb-cpp-sdk/open_telemetry/extension.h Outdated
Comment thread plugins/open_telemetry/include/ydb-cpp-sdk/open_telemetry/metrics.h Outdated
Comment thread plugins/open_telemetry/include/ydb-cpp-sdk/open_telemetry/metrics.h Outdated
Comment thread plugins/open_telemetry/include/ydb-cpp-sdk/open_telemetry/trace.h Outdated
Comment thread src/client/query/impl/query_spans.cpp Outdated
Comment thread src/client/query/impl/query_spans.cpp Outdated
Copy link
Copy Markdown
Collaborator

@Gazizonoki Gazizonoki left a comment

Choose a reason for hiding this comment

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

Было бы неплохо example с метриками завести еще

Comment thread cmake/external_libs.cmake Outdated
Comment thread include/ydb-cpp-sdk/client/trace/trace.h Outdated
Comment thread plugins/trace/otel/include/ydb-cpp-sdk/open_telemetry/trace.h Outdated
Comment thread src/client/query/impl/query_metrics.cpp Outdated
Comment thread src/client/query/impl/query_spans.h
Comment thread src/client/query/impl/query_metrics.h Outdated
Comment thread src/client/query/impl/query_metrics.cpp Outdated
Comment thread src/client/query/impl/query_spans.cpp Outdated
@maladetska maladetska force-pushed the METRICS-0 branch 2 times, most recently from a0abdba to ec3df8e Compare March 24, 2026 13:02
@KirillKurdyukov KirillKurdyukov self-requested a review March 24, 2026 14:45
@maladetska maladetska force-pushed the METRICS-0 branch 3 times, most recently from 4fec641 to a78a18b Compare March 27, 2026 19:21
@maladetska maladetska force-pushed the METRICS-0 branch 2 times, most recently from 7cbed5c to 9c46b67 Compare March 29, 2026 22:39
Copy link
Copy Markdown
Collaborator

@Gazizonoki Gazizonoki left a comment

Choose a reason for hiding this comment

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

А что с stats.h будет?

Comment thread cmake/external_libs.cmake Outdated
Comment thread include/ydb-cpp-sdk/client/trace/trace.h Outdated
Comment thread plugins/trace/otel/include/ydb-cpp-sdk/open_telemetry/trace.h Outdated
Comment thread src/client/impl/observability/client_metrics.cpp Outdated
Comment thread src/client/impl/observability/operation_metrics.cpp Outdated
Comment thread src/client/impl/observability/operation_metrics.cpp Outdated
Comment thread src/client/impl/observability/operation_span.cpp Outdated
Comment thread src/client/query/client.cpp Outdated
Comment thread src/client/table/impl/table_client.cpp
Comment thread src/client/impl/observability/operation_metrics.h Outdated
Comment thread src/client/impl/observability/operation_metrics.h Outdated
Comment thread src/client/query/impl/query_spans.h Outdated
Comment thread src/client/query/client.cpp Outdated
Comment thread src/client/table/impl/table_client.cpp Outdated
Comment thread src/client/impl/stats/stats.h Outdated
Comment thread src/client/impl/stats/stats.h
maladetska added 3 commits April 2, 2026 10:47
…an, remove TQuerySpan and TQueryMetrics, modify TClientOperationStatCollector constructor
Comment thread src/client/impl/internal/common/ydb_client_api.h Outdated
Comment thread src/client/impl/stats/stats.h
Comment thread src/client/impl/stats/stats.h
@Gazizonoki
Copy link
Copy Markdown
Collaborator

Merged in this PR: ydb-platform/ydb#37957
Imported in this PR: #600

@Gazizonoki Gazizonoki closed this Apr 27, 2026
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.

Support tracing in SDK and add loading to OpenTelemetry client Support SDK metric loading in OpenTelemetry client

3 participants