From ae9cb341746e92b32d69574e8e3e2ebbdac56331 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Thu, 27 Apr 2023 15:52:18 +0200 Subject: [PATCH] renterd: move tracing out of internal --- autopilot/accounts.go | 2 +- autopilot/autopilot.go | 2 +- autopilot/contractor.go | 2 +- autopilot/migrator.go | 2 +- bus/bus.go | 2 +- cmd/renterd/main.go | 2 +- {internal/tracing => tracing}/tracing.go | 0 worker/sessionpool.go | 2 +- worker/spending.go | 2 +- worker/transfer.go | 2 +- worker/worker.go | 2 +- 11 files changed, 10 insertions(+), 10 deletions(-) rename {internal/tracing => tracing}/tracing.go (100%) diff --git a/autopilot/accounts.go b/autopilot/accounts.go index e96f75b07..2a08a170a 100644 --- a/autopilot/accounts.go +++ b/autopilot/accounts.go @@ -11,7 +11,7 @@ import ( "go.opentelemetry.io/otel/codes" "go.sia.tech/core/types" "go.sia.tech/renterd/api" - "go.sia.tech/renterd/internal/tracing" + "go.sia.tech/renterd/tracing" "go.uber.org/zap" ) diff --git a/autopilot/autopilot.go b/autopilot/autopilot.go index 067426842..de68de812 100644 --- a/autopilot/autopilot.go +++ b/autopilot/autopilot.go @@ -15,8 +15,8 @@ import ( "go.sia.tech/jape" "go.sia.tech/renterd/api" "go.sia.tech/renterd/hostdb" - "go.sia.tech/renterd/internal/tracing" "go.sia.tech/renterd/object" + "go.sia.tech/renterd/tracing" "go.sia.tech/renterd/wallet" "go.uber.org/zap" "lukechampine.com/frand" diff --git a/autopilot/contractor.go b/autopilot/contractor.go index 8b566e36e..bc5ab0083 100644 --- a/autopilot/contractor.go +++ b/autopilot/contractor.go @@ -16,7 +16,7 @@ import ( "go.sia.tech/core/types" "go.sia.tech/renterd/api" "go.sia.tech/renterd/hostdb" - "go.sia.tech/renterd/internal/tracing" + "go.sia.tech/renterd/tracing" "go.sia.tech/renterd/wallet" "go.sia.tech/renterd/worker" "go.uber.org/zap" diff --git a/autopilot/migrator.go b/autopilot/migrator.go index ac2f68f44..14e4e46e8 100644 --- a/autopilot/migrator.go +++ b/autopilot/migrator.go @@ -6,7 +6,7 @@ import ( "sync" "go.sia.tech/renterd/api" - "go.sia.tech/renterd/internal/tracing" + "go.sia.tech/renterd/tracing" "go.uber.org/zap" ) diff --git a/bus/bus.go b/bus/bus.go index fc1e1413b..b79f336ec 100644 --- a/bus/bus.go +++ b/bus/bus.go @@ -17,8 +17,8 @@ import ( "go.sia.tech/jape" "go.sia.tech/renterd/api" "go.sia.tech/renterd/hostdb" - "go.sia.tech/renterd/internal/tracing" "go.sia.tech/renterd/object" + "go.sia.tech/renterd/tracing" "go.sia.tech/renterd/wallet" "go.uber.org/zap" ) diff --git a/cmd/renterd/main.go b/cmd/renterd/main.go index ce5479172..1731b06dc 100644 --- a/cmd/renterd/main.go +++ b/cmd/renterd/main.go @@ -20,8 +20,8 @@ import ( "go.sia.tech/renterd/build" "go.sia.tech/renterd/bus" "go.sia.tech/renterd/internal/node" - "go.sia.tech/renterd/internal/tracing" "go.sia.tech/renterd/stores" + "go.sia.tech/renterd/tracing" "go.sia.tech/renterd/wallet" "go.sia.tech/renterd/worker" "golang.org/x/term" diff --git a/internal/tracing/tracing.go b/tracing/tracing.go similarity index 100% rename from internal/tracing/tracing.go rename to tracing/tracing.go diff --git a/worker/sessionpool.go b/worker/sessionpool.go index 4d95bb6d1..7dfc43ccc 100644 --- a/worker/sessionpool.go +++ b/worker/sessionpool.go @@ -9,7 +9,7 @@ import ( rhpv2 "go.sia.tech/core/rhp/v2" "go.sia.tech/core/types" - "go.sia.tech/renterd/internal/tracing" + "go.sia.tech/renterd/tracing" ) func (s *Session) appendSector(ctx context.Context, sector *[rhpv2.SectorSize]byte, currentHeight uint64) (types.Hash256, error) { diff --git a/worker/spending.go b/worker/spending.go index 286236e38..65b3b1403 100644 --- a/worker/spending.go +++ b/worker/spending.go @@ -8,7 +8,7 @@ import ( "go.sia.tech/core/types" "go.sia.tech/renterd/api" - "go.sia.tech/renterd/internal/tracing" + "go.sia.tech/renterd/tracing" "go.uber.org/zap" ) diff --git a/worker/transfer.go b/worker/transfer.go index 2dfcfd557..8799be076 100644 --- a/worker/transfer.go +++ b/worker/transfer.go @@ -14,8 +14,8 @@ import ( rhpv2 "go.sia.tech/core/rhp/v2" "go.sia.tech/core/types" "go.sia.tech/renterd/api" - "go.sia.tech/renterd/internal/tracing" "go.sia.tech/renterd/object" + "go.sia.tech/renterd/tracing" "go.uber.org/zap" "lukechampine.com/frand" ) diff --git a/worker/worker.go b/worker/worker.go index d3cbf6cf9..d3cf40885 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -27,9 +27,9 @@ import ( "go.sia.tech/jape" "go.sia.tech/renterd/api" "go.sia.tech/renterd/hostdb" - "go.sia.tech/renterd/internal/tracing" "go.sia.tech/renterd/metrics" "go.sia.tech/renterd/object" + "go.sia.tech/renterd/tracing" "go.sia.tech/siad/modules" "go.uber.org/zap" "golang.org/x/crypto/blake2b"