Skip to content

Commit 68c7c18

Browse files
authored
Add jaeger & agent thrift Go code (#131)
## Which problem is this PR solving? - Part of jaegertracing/jaeger#6615 ## Description of the changes - Add jaeger and agent thrift ## How was this change tested? - CI --------- Signed-off-by: Yuri Shkuro <[email protected]>
1 parent c9efb29 commit 68c7c18

7 files changed

+3228
-0
lines changed

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright (c) 2023 The Jaeger Authors.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
JAEGER_IMPORT_PATH = github.com/jaegertracing/jaeger-idl
5+
46
THRIFT_VER?=0.19
57
THRIFT_IMG?=jaegertracing/thrift:$(THRIFT_VER)
68
THRIFT=docker run --rm -u $(shell id -u) -v "${PWD}:/data" $(THRIFT_IMG) thrift
@@ -46,7 +48,11 @@ clean:
4648
.PHONY: thrift
4749
thrift:
4850
[ -d $(THRIFT_GEN_DIR) ] || mkdir $(THRIFT_GEN_DIR)
51+
$(THRIFT) -o /data --gen go:$(THRIFT_GO_ARGS) -out /data/$(THRIFT_GEN_DIR) /data/thrift/jaeger.thrift
4952
$(THRIFT) -o /data --gen go:$(THRIFT_GO_ARGS) -out /data/$(THRIFT_GEN_DIR) /data/thrift/zipkincore.thrift
53+
$(THRIFT) -o /data --gen go:$(THRIFT_GO_ARGS) -out /data/$(THRIFT_GEN_DIR) /data/thrift/agent.thrift
54+
$(SED) -i.bak 's|"zipkincore"|"$(JAEGER_IMPORT_PATH)/thrift-gen/zipkincore"|g' $(THRIFT_GEN_DIR)/agent/*.go
55+
$(SED) -i.bak 's|"jaeger"|"$(JAEGER_IMPORT_PATH)/thrift-gen/jaeger"|g' $(THRIFT_GEN_DIR)/agent/*.go
5056
rm -rf thrift-gen/*/*-remote thrift-gen/*/*.bak
5157

5258
.PHONY: thrift-all

thrift-gen/agent/GoUnusedProtection__.go

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift-gen/agent/agent-consts.go

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)