Files
zapdb/go.mod
aae649d379 chore(deps): Migrate from OpenCensus to OpenTelemetry (#2169)
**Description**

Migrate from OpenCensus to OpenTelemetry, doing some adjustements where
there is no 1:1 migration path:
* `zpages` handler explicitly added to `http.DefaultServeMux`, as
`zpages.Handle()` is not available anymore.
* Annotations replaced by Attributes.

I am also adjusting some uses of spans in compactions, so their
annotations are not overwritten on every call to `runCompactDef` in
cases where it is called multiple times.

Not using latest version of OpenTelemetry because it requires Go 1.22,
and badger still supports 1.21.

Fix https://github.com/hypermodeinc/badger/issues/2155.

**Checklist**

- [x] Code compiles correctly and linting passes locally
- [x] For all _code_ changes, an entry added to the `CHANGELOG.md` file
describing and linking to
      this PR
- [ ] Tests added for new functionality, or regression tests for bug
fixes added as applicable
- [ ] For public APIs, new features, etc., PR on [docs
repo](https://github.com/hypermodeinc/docs) staged and linked here

---------

Co-authored-by: Ryan Fox-Tyler <60440289+ryanfoxtyler@users.noreply.github.com>
2025-02-17 12:53:43 -05:00

41 lines
1.2 KiB
AMPL

module github.com/dgraph-io/badger/v4
go 1.22.12
toolchain go1.24.0
require (
github.com/cespare/xxhash/v2 v2.3.0
github.com/dgraph-io/ristretto/v2 v2.1.0
github.com/dustin/go-humanize v1.0.1
github.com/google/flatbuffers v25.2.10+incompatible
github.com/klauspost/compress v1.17.11
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.10.0
go.opentelemetry.io/contrib/zpages v0.59.0
go.opentelemetry.io/otel v1.34.0
golang.org/x/net v0.35.0
golang.org/x/sys v0.30.0
google.golang.org/protobuf v1.36.5
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/otel/metric v1.34.0 // indirect
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
go.opentelemetry.io/otel/trace v1.34.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
retract v4.0.0 // see #1888 and #1889
retract v4.3.0 // see #2113 and #2121