Add otelcol endpoint in .env file

This commit is contained in:
Pim van Pelt
2025-08-24 15:06:21 +02:00
parent dc95d8d3bb
commit cbfa97d480

View File

@@ -45,7 +45,7 @@ func generateEnv(yamlFile string) {
}
tesseractArgs := strings.Join(args, " ")
envContent := fmt.Sprintf("TESSERACT_ARGS=\"%s\"\n", tesseractArgs)
envContent := fmt.Sprintf("TESSERACT_ARGS=\"%s\"\nOTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318\n", tesseractArgs)
err = os.WriteFile(envPath, []byte(envContent), 0644)
if err != nil {