Skip to content

Commit

Permalink
chore: move telemetry package (#1970)
Browse files Browse the repository at this point in the history
Just moved the telemetry package. Closes #1963
  • Loading branch information
deelawn authored Apr 23, 2024
1 parent 16a71f1 commit b2f12a9
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gno.land/cmd/gnoland/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/gnolang/gno/gno.land/pkg/gnoland"
"github.com/gnolang/gno/gno.land/pkg/log"
"github.com/gnolang/gno/gnovm/pkg/gnoenv"
"github.com/gnolang/gno/telemetry"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
"github.com/gnolang/gno/tm2/pkg/bft/config"
"github.com/gnolang/gno/tm2/pkg/bft/node"
Expand All @@ -26,6 +25,7 @@ import (
"github.com/gnolang/gno/tm2/pkg/crypto"
osm "github.com/gnolang/gno/tm2/pkg/os"
"github.com/gnolang/gno/tm2/pkg/std"
"github.com/gnolang/gno/tm2/pkg/telemetry"
"go.uber.org/zap/zapcore"
)

Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/bft/consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
"sync"
"time"

"github.com/gnolang/gno/telemetry"
"github.com/gnolang/gno/telemetry/metrics"
"github.com/gnolang/gno/tm2/pkg/amino"
cnscfg "github.com/gnolang/gno/tm2/pkg/bft/consensus/config"
cstypes "github.com/gnolang/gno/tm2/pkg/bft/consensus/types"
Expand All @@ -27,6 +25,8 @@ import (
osm "github.com/gnolang/gno/tm2/pkg/os"
"github.com/gnolang/gno/tm2/pkg/p2p"
"github.com/gnolang/gno/tm2/pkg/service"
"github.com/gnolang/gno/tm2/pkg/telemetry"
"github.com/gnolang/gno/tm2/pkg/telemetry/metrics"
)

// -----------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/p2p/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import (
"sync"
"time"

"github.com/gnolang/gno/telemetry"
"github.com/gnolang/gno/telemetry/metrics"
"github.com/gnolang/gno/tm2/pkg/cmap"
"github.com/gnolang/gno/tm2/pkg/errors"
"github.com/gnolang/gno/tm2/pkg/p2p/config"
"github.com/gnolang/gno/tm2/pkg/p2p/conn"
"github.com/gnolang/gno/tm2/pkg/random"
"github.com/gnolang/gno/tm2/pkg/service"
"github.com/gnolang/gno/tm2/pkg/telemetry"
"github.com/gnolang/gno/tm2/pkg/telemetry/metrics"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions telemetry/init.go → tm2/pkg/telemetry/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package telemetry
// https://github.com/open-telemetry/opentelemetry-go/blob/main/example/prometheus/main.go

import (
"github.com/gnolang/gno/telemetry/metrics"
"github.com/gnolang/gno/telemetry/options"
"github.com/gnolang/gno/tm2/pkg/telemetry/metrics"
"github.com/gnolang/gno/tm2/pkg/telemetry/options"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package metrics
import (
"context"

"github.com/gnolang/gno/telemetry/exporter"
"github.com/gnolang/gno/telemetry/options"
"github.com/gnolang/gno/tm2/pkg/telemetry/exporter"
"github.com/gnolang/gno/tm2/pkg/telemetry/options"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"
"go.opentelemetry.io/otel/metric"
Expand Down
2 changes: 1 addition & 1 deletion telemetry/options.go → tm2/pkg/telemetry/options.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package telemetry

import "github.com/gnolang/gno/telemetry/options"
import "github.com/gnolang/gno/tm2/pkg/telemetry/options"

type Option func(*options.Config)

Expand Down
File renamed without changes.

0 comments on commit b2f12a9

Please sign in to comment.