Skip to content

Commit fda54dc

Browse files
committed
chore: update otlp
1 parent 4bfdb6b commit fda54dc

File tree

7 files changed

+164
-704
lines changed

7 files changed

+164
-704
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The following emojis are used to highlight certain changes:
2828
### Removed
2929

3030
- 🛠 `bitswap` & `bitswap/server` no longer provide to content routers, instead you can use the `provider` package because it uses a datastore queue and batches calls to ProvideMany.
31+
- 🛠 `tracing` `jaeger` exporter has been removed due to it's deprecation and removal from upstream, you should use `otlp` exporter instead. See the [docs](./docs/tracing.md) for an example.
3132

3233
### Security
3334

docs/tracing.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ to use the Jaeger UI. The [Gateway examples](../examples/gateway/) fully support
1515
- [Environment Variables](#environment-variables)
1616
- [`OTEL_TRACES_EXPORTER`](#otel_traces_exporter)
1717
- [`OTLP Exporter`](#otlp-exporter)
18-
- [`Jaeger Exporter`](#jaeger-exporter)
1918
- [`Zipkin Exporter`](#zipkin-exporter)
2019
- [`File Exporter`](#file-exporter)
2120
- [`OTEL_PROPAGATORS`](#otel_propagators)
@@ -34,7 +33,6 @@ set of additional environment variables used to configure it. The following valu
3433
are supported:
3534

3635
- `otlp`
37-
- `jaeger`
3836
- `zipkin`
3937
- `stdout`
4038
- `file` -- appends traces to a JSON file on the filesystem
@@ -54,10 +52,6 @@ Specifies the OTLP protocol to use, which is one of:
5452

5553
Default: `"grpc"`
5654

57-
### `Jaeger Exporter`
58-
59-
See [Jaeger Exporter](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#jaeger-exporter).
60-
6155
### `Zipkin Exporter`
6256

6357
See [Zipkin Exporter](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#zipkin-exporter).
@@ -81,24 +75,27 @@ and configure the Kubo daemon, or gateway examples, to publish traces to it. Her
8175
ephemeral container:
8276

8377
```console
84-
$ docker run --rm -it --name jaeger \
85-
-e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
86-
-p 5775:5775/udp \
87-
-p 6831:6831/udp \
88-
-p 6832:6832/udp \
89-
-p 5778:5778 \
90-
-p 16686:16686 \
91-
-p 14268:14268 \
92-
-p 14269:14269 \
93-
-p 14250:14250 \
94-
-p 9411:9411 \
95-
jaegertracing/all-in-one
78+
$ docker run -d --rm --name jaeger \
79+
-e COLLECTOR_OTLP_ENABLED=true \
80+
-e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
81+
-p 5775:5775/udp \
82+
-p 6831:6831/udp \
83+
-p 6832:6832/udp \
84+
-p 5778:5778 \
85+
-p 16686:16686 \
86+
-p 14250:14250 \
87+
-p 14268:14268 \
88+
-p 14269:14269 \
89+
-p 4317:4317 \
90+
-p 4318:4318 \
91+
-p 9411:9411 \
92+
jaegertracing/all-in-one
9693
```
9794

9895
Then, in other terminal, start the app that uses `boxo/tracing` internally (e.g., a Kubo daemon), with Jaeger exporter enabled:
9996

100-
```
101-
$ OTEL_TRACES_EXPORTER=jaeger ipfs daemon
97+
```console
98+
$ OTEL_EXPORTER_OTLP_INSECURE=true OTEL_TRACES_EXPORTER=otlp ipfs daemon --init
10299
```
103100

104101
Finally, the [Jaeger UI] is available at http://localhost:16686.

examples/go.mod

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ require (
1414
github.com/multiformats/go-multicodec v0.9.0
1515
github.com/prometheus/client_golang v1.16.0
1616
github.com/stretchr/testify v1.8.4
17-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.40.0
18-
go.opentelemetry.io/contrib/propagators/autoprop v0.40.0
19-
go.opentelemetry.io/otel v1.14.0
20-
go.opentelemetry.io/otel/sdk v1.14.0
17+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1
18+
go.opentelemetry.io/contrib/propagators/autoprop v0.46.1
19+
go.opentelemetry.io/otel v1.21.0
20+
go.opentelemetry.io/otel/sdk v1.21.0
2121
)
2222

2323
require (
2424
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
2525
github.com/benbjohnson/clock v1.3.5 // indirect
2626
github.com/beorn7/perks v1.0.1 // indirect
27-
github.com/cenkalti/backoff/v4 v4.2.0 // indirect
27+
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
2828
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2929
github.com/containerd/cgroups v1.1.0 // indirect
3030
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
@@ -36,21 +36,21 @@ require (
3636
github.com/docker/go-units v0.5.0 // indirect
3737
github.com/dustin/go-humanize v1.0.0 // indirect
3838
github.com/elastic/gosigar v0.14.2 // indirect
39-
github.com/felixge/httpsnoop v1.0.3 // indirect
39+
github.com/felixge/httpsnoop v1.0.4 // indirect
4040
github.com/flynn/noise v1.0.0 // indirect
4141
github.com/francoispqt/gojay v1.2.13 // indirect
4242
github.com/gabriel-vasile/mimetype v1.4.1 // indirect
43-
github.com/go-logr/logr v1.2.4 // indirect
43+
github.com/go-logr/logr v1.3.0 // indirect
4444
github.com/go-logr/stdr v1.2.2 // indirect
4545
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
4646
github.com/godbus/dbus/v5 v5.1.0 // indirect
4747
github.com/gogo/protobuf v1.3.2 // indirect
4848
github.com/golang/protobuf v1.5.3 // indirect
4949
github.com/google/gopacket v1.1.19 // indirect
5050
github.com/google/pprof v0.0.0-20231023181126-ff6d637d2a7b // indirect
51-
github.com/google/uuid v1.3.0 // indirect
51+
github.com/google/uuid v1.3.1 // indirect
5252
github.com/gorilla/websocket v1.5.0 // indirect
53-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
53+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
5454
github.com/hashicorp/errwrap v1.1.0 // indirect
5555
github.com/hashicorp/go-multierror v1.1.1 // indirect
5656
github.com/hashicorp/golang-lru v0.5.4 // indirect
@@ -111,7 +111,7 @@ require (
111111
github.com/onsi/ginkgo/v2 v2.13.0 // indirect
112112
github.com/opencontainers/runtime-spec v1.1.0 // indirect
113113
github.com/opentracing/opentracing-go v1.2.0 // indirect
114-
github.com/openzipkin/zipkin-go v0.4.1 // indirect
114+
github.com/openzipkin/zipkin-go v0.4.2 // indirect
115115
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
116116
github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 // indirect
117117
github.com/pkg/errors v0.9.1 // indirect
@@ -134,20 +134,18 @@ require (
134134
github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f // indirect
135135
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect
136136
go.opencensus.io v0.24.0 // indirect
137-
go.opentelemetry.io/contrib/propagators/aws v1.15.0 // indirect
138-
go.opentelemetry.io/contrib/propagators/b3 v1.15.0 // indirect
139-
go.opentelemetry.io/contrib/propagators/jaeger v1.15.0 // indirect
140-
go.opentelemetry.io/contrib/propagators/ot v1.15.0 // indirect
141-
go.opentelemetry.io/otel/exporters/jaeger v1.14.0 // indirect
142-
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.14.0 // indirect
143-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.14.0 // indirect
144-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.14.0 // indirect
145-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.14.0 // indirect
146-
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.14.0 // indirect
147-
go.opentelemetry.io/otel/exporters/zipkin v1.14.0 // indirect
148-
go.opentelemetry.io/otel/metric v0.37.0 // indirect
149-
go.opentelemetry.io/otel/trace v1.14.0 // indirect
150-
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
137+
go.opentelemetry.io/contrib/propagators/aws v1.21.1 // indirect
138+
go.opentelemetry.io/contrib/propagators/b3 v1.21.1 // indirect
139+
go.opentelemetry.io/contrib/propagators/jaeger v1.21.1 // indirect
140+
go.opentelemetry.io/contrib/propagators/ot v1.21.1 // indirect
141+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
142+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 // indirect
143+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0 // indirect
144+
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.21.0 // indirect
145+
go.opentelemetry.io/otel/exporters/zipkin v1.21.0 // indirect
146+
go.opentelemetry.io/otel/metric v1.21.0 // indirect
147+
go.opentelemetry.io/otel/trace v1.21.0 // indirect
148+
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
151149
go.uber.org/dig v1.17.1 // indirect
152150
go.uber.org/fx v1.20.1 // indirect
153151
go.uber.org/mock v0.3.0 // indirect
@@ -158,13 +156,14 @@ require (
158156
golang.org/x/mod v0.13.0 // indirect
159157
golang.org/x/net v0.17.0 // indirect
160158
golang.org/x/sync v0.4.0 // indirect
161-
golang.org/x/sys v0.13.0 // indirect
159+
golang.org/x/sys v0.14.0 // indirect
162160
golang.org/x/text v0.13.0 // indirect
163161
golang.org/x/tools v0.14.0 // indirect
164162
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
165163
gonum.org/v1/gonum v0.11.0 // indirect
166-
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
167-
google.golang.org/grpc v1.53.0 // indirect
164+
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
165+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
166+
google.golang.org/grpc v1.59.0 // indirect
168167
google.golang.org/protobuf v1.31.0 // indirect
169168
gopkg.in/yaml.v3 v3.0.1 // indirect
170169
lukechampine.com/blake3 v1.2.1 // indirect

0 commit comments

Comments
 (0)