Skip to content

Commit

Permalink
mark as internals some traces
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Apr 8, 2024
1 parent 3649a9f commit c13c1ae
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 80 deletions.
2 changes: 1 addition & 1 deletion VERSIONING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YDB-Go-SDK Versioning Policy

By adhering to these guidelines and exceptions, we aim to provide a stable and reliable development experience for our users while still allowing for innovation and improvement.
By adhering to these guidelines and exceptions, we aim to provide a stable and reliable development experience for our users (aka [LTS](https://en.wikipedia.org/wiki/Long-term_support)) while still allowing for innovation and improvement.

We endeavor to adhere to versioning guidelines as defined by [SemVer2.0.0](https://semver.org/).

Expand Down
1 change: 1 addition & 0 deletions trace/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type (
Context *context.Context
Call call
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DiscoveryWhoAmIDoneInfo struct {
User string
Groups []string
Expand Down
21 changes: 21 additions & 0 deletions trace/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ type (
DatabaseSQLConnQueryDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLConnExecStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -165,9 +166,11 @@ type (
Idempotent bool
IdleTime time.Duration
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLConnExecDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLConnIsTableExistsStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -177,10 +180,12 @@ type (
Call call
TableName string
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLConnIsTableExistsDoneInfo struct {
Exists bool
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxQueryStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -192,9 +197,11 @@ type (
Tx tableTransactionInfo
Query string
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxQueryDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxExecStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -206,9 +213,11 @@ type (
Tx tableTransactionInfo
Query string
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxExecDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxCommitStartInfo struct {
// TxContext make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -218,9 +227,11 @@ type (
Call call
Tx tableTransactionInfo
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxCommitDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxRollbackStartInfo struct {
// TxContext make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -230,16 +241,20 @@ type (
Call call
Tx tableTransactionInfo
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLTxRollbackDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLStmtCloseStartInfo struct {
StmtContext *context.Context
Call call
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLStmtCloseDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLStmtQueryStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -250,9 +265,11 @@ type (
StmtContext context.Context
Query string
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLStmtQueryDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLStmtExecStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -263,9 +280,11 @@ type (
StmtContext context.Context
Query string
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLStmtExecDoneInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLDoTxStartInfo struct {
// Context make available context in trace callback function.
// Pointer to context provide replacement of context in trace callback function.
Expand All @@ -276,9 +295,11 @@ type (
ID string
Idempotent bool
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLDoTxIntermediateInfo struct {
Error error
}
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
DatabaseSQLDoTxDoneInfo struct {
Attempts int
Error error
Expand Down
Loading

0 comments on commit c13c1ae

Please sign in to comment.