Skip to content

Commit 0a77e83

Browse files
committed
rename package otel to spans
1 parent 492a3c9 commit 0a77e83

20 files changed

+251
-291
lines changed

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# below in your own codecov.yml in your repository.
55
#
66
ignore:
7-
- otel
7+
- spans
88
- trace
99
- testutil
1010
- examples

otel/coordination.go

Lines changed: 0 additions & 9 deletions
This file was deleted.

otel/noop.go

Lines changed: 0 additions & 41 deletions
This file was deleted.

otel/traces.go

Lines changed: 0 additions & 24 deletions
This file was deleted.

spans/coordination.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package spans
2+
3+
import (
4+
"github.com/ydb-platform/ydb-go-sdk/v3/trace"
5+
)
6+
7+
func coordination(adapter Adapter) (t trace.Coordination) {
8+
return t
9+
}

otel/discovery.go renamed to spans/discovery.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
package otel
1+
package spans
22

33
import (
44
"github.com/ydb-platform/ydb-go-sdk/v3/internal/kv"
55
"github.com/ydb-platform/ydb-go-sdk/v3/trace"
66
)
77

8-
func discovery(cfg Config) (t trace.Discovery) {
8+
func discovery(adapter Adapter) (t trace.Discovery) {
99
t.OnDiscover = func(info trace.DiscoveryDiscoverStartInfo) func(discovery trace.DiscoveryDiscoverDoneInfo) {
10-
if cfg.Details()&trace.DiscoveryEvents != 0 {
10+
if adapter.Details()&trace.DiscoveryEvents != 0 {
1111
start := childSpanWithReplaceCtx(
12-
cfg,
12+
adapter,
1313
info.Context,
1414
info.Call.FunctionID(),
1515
kv.String("address", info.Address),

0 commit comments

Comments
 (0)