Skip to content

Commit 6cb7671

Browse files
authored
Merge pull request #327 from ydb-platform/topic-adapters
fix topic events mask name
2 parents d0eb273 + ab39f29 commit 6cb7671

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

trace/details.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ const (
6969
TableSessionQueryEvents |
7070
TableSessionTransactionEvents
7171

72-
TopicReaderAllEvents = TopicReaderStreamEvents | TopicReaderMessageEvents |
72+
TopicReaderEvents = TopicReaderStreamEvents | TopicReaderMessageEvents |
7373
TopicReaderPartitionEvents |
7474
TopicReaderStreamLifeCycleEvents
7575

76-
TopicAllEvents = TopicControlPlaneEvents | TopicReaderAllEvents
76+
TopicEvents = TopicControlPlaneEvents | TopicReaderEvents
7777

7878
DetailsAll = ^Details(0) // All bits enabled
7979
)
@@ -109,9 +109,9 @@ var (
109109
TablePoolSessionLifeCycleEvents: "ydb.table.pool.session",
110110
TablePoolAPIEvents: "ydb.table.pool.api",
111111

112-
TopicAllEvents: "ydb.topic",
112+
TopicEvents: "ydb.topic",
113113
TopicControlPlaneEvents: "ydb.topic.controlplane",
114-
TopicReaderAllEvents: "ydb.topic.reader",
114+
TopicReaderEvents: "ydb.topic.reader",
115115
TopicReaderStreamEvents: "ydb.topic.reader.stream",
116116
TopicReaderMessageEvents: "ydb.topic.reader.message",
117117
TopicReaderPartitionEvents: "ydb.topic.reader.partition",

trace/topic.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ type (
1717
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
1818
// later release.
1919
Topic struct {
20+
// TopicReaderStreamLifeCycleEvents
2021
OnReaderReconnect func(startInfo TopicReaderReconnectStartInfo) func(doneInfo TopicReaderReconnectDoneInfo)
2122
OnReaderReconnectRequest func(info TopicReaderReconnectRequestInfo)
2223

24+
// TopicReaderPartitionEvents
2325
OnReaderPartitionReadStartResponse func(startInfo TopicReaderPartitionReadStartResponseStartInfo) func(doneInfo TopicReaderPartitionReadStartResponseDoneInfo)
2426
OnReaderPartitionReadStopResponse func(startInfo TopicReaderPartitionReadStopResponseStartInfo) func(doneInfo TopicReaderPartitionReadStopResponseDoneInfo)
2527

28+
// TopicReaderStreamEvents
2629
OnReaderCommit func(startInfo TopicReaderCommitStartInfo) func(doneInfo TopicReaderCommitDoneInfo)
2730
OnReaderSendCommitMessage func(startInfo TopicReaderSendCommitMessageStartInfo) func(doneInfo TopicReaderSendCommitMessageDoneInfo)
2831
OnReaderCommittedNotify func(info TopicReaderCommittedNotifyInfo)
@@ -31,6 +34,7 @@ type (
3134
OnReaderError func(info TopicReaderErrorInfo)
3235
OnReaderUpdateToken func(startInfo OnReadUpdateTokenStartInfo) func(updateTokenInfo OnReadUpdateTokenMiddleTokenReceivedInfo) func(doneInfo OnReadStreamUpdateTokenDoneInfo)
3336

37+
// TopicReaderMessageEvents
3438
OnReaderSentDataRequest func(startInfo TopicReaderSentDataRequestInfo)
3539
OnReaderReceiveDataResponse func(startInfo TopicReaderReceiveDataResponseStartInfo) func(doneInfo TopicReaderReceiveDataResponseDoneInfo)
3640
OnReaderReadMessages func(startInfo TopicReaderReadMessagesStartInfo) func(doneInfo TopicReaderReadMessagesDoneInfo)

0 commit comments

Comments
 (0)