Skip to content

Commit

Permalink
reverted changes of trace.Table
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Sep 3, 2024
1 parent 24a9c19 commit 6b2b208
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 2 deletions.
39 changes: 37 additions & 2 deletions trace/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ type (
OnPoolWith func(TablePoolWithStartInfo) func(TablePoolWithDoneInfo)
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
OnPoolStateChange func(TablePoolStateChangeInfo)

// Deprecated
// Will be removed after March 2025.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
OnPoolSessionAdd func(info TablePoolSessionAddInfo)
// Deprecated
// Will be removed after March 2025.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
OnPoolSessionRemove func(info TablePoolSessionRemoveInfo)
// Deprecated
// Will be removed after March 2025.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
OnPoolWait func(TablePoolWaitStartInfo) func(TablePoolWaitDoneInfo)
}
)

Expand Down Expand Up @@ -368,6 +381,24 @@ type (
Attempts int
Error error
}
// Deprecated
// Will be removed after March 2025.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
TablePoolWaitStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
// Warning: concurrent access to pointer on client side must be excluded.
// Safe replacement of context are provided only inside callback function
Context *context.Context
Call call
}
// Deprecated
// Will be removed after March 2025.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
TablePoolWaitDoneInfo struct {
Session sessionInfo
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
TablePoolWithStartInfo struct {
// Context make available context in trace callback function.
Expand Down Expand Up @@ -408,11 +439,15 @@ type (
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
TablePoolSessionCloseDoneInfo struct{}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
// Deprecated
// Will be removed after March 2025.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
TablePoolSessionAddInfo struct {
Session sessionInfo
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
// Deprecated
// Will be removed after March 2025.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
TablePoolSessionRemoveInfo struct {
Session sessionInfo
}
Expand Down
127 changes: 127 additions & 0 deletions trace/table_gtrace.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b2b208

Please sign in to comment.