influxdb/trace_exporters
dependabot[bot] b15c6062a9
chore(deps): Bump tokio from 1.28.2 to 1.29.0 (#8100)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.28.2 to 1.29.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.2...tokio-1.29.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-28 13:18:08 +00:00
..
src feat(cli): Automatically send influx-trace-id, and improve help text (#7830) 2023-05-25 09:43:55 +00:00
Cargo.toml chore(deps): Bump tokio from 1.28.2 to 1.29.0 (#8100) 2023-06-28 13:18:08 +00:00
README.md chore: update CI and prod image to Debian 12 / bookworm (#7972) 2023-06-12 09:33:23 +00:00

README.md

Trace Exporters

Regenerating Jaeger Thrift

The instructions below use docker, but this is optional.

Depending on your setup there may be permissions complications that require using-u

Startup a Debian bookworm image

docker run -it -v $PWD:/out debian:bookworm-slim

Install the thrift-compiler

$ apt-get update
$ apt-get install thrift-compiler wget

Verify the version of the compiler matches the version of thrift in Cargo.toml

$ thrift --version
Thrift version 0.13.0

Get the IDL definition

$ wget https://raw.githubusercontent.com/jaegertracing/jaeger-idl/master/thrift/jaeger.thrift https://raw.githubusercontent.com/jaegertracing/jaeger-idl/master/thrift/zipkincore.thrift https://raw.githubusercontent.com/jaegertracing/jaeger-idl/master/thrift/agent.thrift

Generate the code

$ thrift --out /out/src/thrift --gen rs agent.thrift
$ thrift --out /out/src/thrift --gen rs jaeger.thrift
$ thrift --out /out/src/thrift --gen rs zipkincore.thrift

Patch up imports

sed -i 's/use jaeger;/use super::jaeger;/g' /out/src/thrift/agent.rs
sed -i 's/use zipkincore;/use super::zipkincore;/g' /out/src/thrift/agent.rs

Remove the clippy line

#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments, type_complexity))]