-
Notifications
You must be signed in to change notification settings - Fork 71
/
meta.go
25 lines (21 loc) · 860 Bytes
/
meta.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package ydb
import (
"context"
"github.com/ydb-platform/ydb-go-sdk/v3/meta"
)
// WithTraceID returns a copy of parent context with traceID
//
// Deprecated: use meta.WithTraceID instead.
// Will be removed after Oct 2024.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
func WithTraceID(ctx context.Context, traceID string) context.Context {
return meta.WithTraceID(ctx, traceID)
}
// WithRequestType returns a copy of parent context with custom request type
//
// Deprecated: use meta.WithRequestType instead.
// Will be removed after Oct 2024.
// Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated
func WithRequestType(ctx context.Context, requestType string) context.Context {
return meta.WithRequestType(ctx, requestType)
}