jozef-slezak / jaeger-postgresql

Jaeger Storage Plugin -> PostgreSQL
MIT License
21 stars 13 forks source link

How to compile it? #2

Open deem0n opened 3 years ago

deem0n commented 3 years ago

We see CGO_ENABLED=0 go build ./cmd/jaeger-pg-store/ in the Readme.md but there is no cmd/jaeger-pg-store folder in the repo.

Thanks!

jozef-slezak commented 3 years ago

You are right, it is time to cleanup

jozef-slezak commented 3 years ago

I am closing because of merging #4

muhammadn commented 3 years ago

Also to run the plugin is very different now.

Need to use something like:

GRPC_STORAGE_PLUGIN_BINARY="./jaeger-pg-store" GRPC_STORAGE_PLUGIN_CONFIGURATION_FILE=./config-example.yaml SPAN_STORAGE_TYPE=grpc-plugin ./all-in-one --sampling.strategies-file=./sampling_strategies.json

george-studenko commented 2 years ago

@muhammadn I'm trying to make this work from the all-in-one-linux version (inside a docker container)

I've compiled it and copied it inside the container but for some reason the configuration.yaml file is completely ignored and it tries to connect to localhost:5432 while I have some different values in my config file.

Any ideas on how to fix it?

muhammadn commented 2 years ago

@george-studenko I don't think i can help you here because your question is basically a docker question. You should read about how to tell the docker to mount your local machine's directory.

Anyway i have not used this plugin in production.

george-studenko commented 2 years ago

Thanks for your response @muhammadn

Regardless of being docker (it works the same, just in an isolated environment), it would behave the same locally, is there maybe any changes on how to start it that might need to be updated in the docs? or could this be a possible bug?

muhammadn commented 2 years ago

@george-studenko no changes. You can try it out yourself. code is opensource, if there is a bug, just fix it. unless you want to hire me as your consultant.

chrisleell commented 2 months ago

@george-studenko I met the same problem. It has been bothering me for a long time. How did you fix it.