From 0b4a54ab220d4ba709ac02eb62f3d0a94b6a3155 Mon Sep 17 00:00:00 2001 From: Tom Guinther <tguinther@gfxlabs.io> Date: Fri, 26 Jul 2024 11:50:48 -0400 Subject: [PATCH] a way to run pggat w/ tracing support --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..99ea42cc --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +# This is the default target, which will be built when you invoke make +.PHONY: all + +all: runotel + +devenv: + export GFX_CORE_ALLOCATION=0 + +otelenv: + export OTEL_RESOURCE_ATTRIBUTES=deployment.environment=local,service.version=0.1.0,service.instance.id=$(HOSTNAME) + export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4318/v1/traces + +runotel: devenv otelenv + go run ./cmd/pggat run pool basic transaction + -- GitLab