Skip to content

Commit 21e2304

Browse files
authored
Merge pull request #1502 from ydb-platform/bulk-upsert-session-info
* Added session info into `trace.TableSessionBulkUpsertStartInfo`
2 parents 84e9735 + ed92d7d commit 21e2304

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Added session info into `trace.TableSessionBulkUpsertStartInfo`
2+
13
## v3.84.0
24
* Added `meta.WithTraceParent` context modifier for explicit putting traceparent header into grpc calls
35

internal/table/session.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,9 +1258,8 @@ func (s *session) BulkUpsert(ctx context.Context, table string, rows value.Value
12581258
var (
12591259
a = allocator.New()
12601260
callOptions []grpc.CallOption
1261-
onDone = trace.TableOnSessionBulkUpsert(
1262-
s.config.Trace(), &ctx,
1263-
stack.FunctionID("github.com/ydb-platform/ydb-go-sdk/v3/internal/table.(*session).BulkUpsert"),
1261+
onDone = trace.TableOnSessionBulkUpsert(s.config.Trace(), &ctx,
1262+
stack.FunctionID("github.com/ydb-platform/ydb-go-sdk/v3/internal/table.(*session).BulkUpsert"), s,
12641263
)
12651264
)
12661265
defer func() {

trace/table.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ type (
158158
// Safe replacement of context are provided only inside callback function
159159
Context *context.Context
160160
Call call
161+
162+
Session sessionInfo
161163
}
162164
// Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals
163165
TableSessionBulkUpsertDoneInfo struct {

trace/table_gtrace.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)