Open
Description
I'm trying to send data of 2 junit files to Honeycomb using the docker image and I get two differents errors.
$ cat junit_app_endpoints_tests_naruto.xml | docker run --rm -i --volume "$(pwd):/opt/projectname" --env OTEL_EXPORTER_OTLP_ENDPOINT="https://api.honeycomb.io:443/v1/traces" --env OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=$HONEY_TOKEN,x-honeycomb-dataset=ci_results" mdelapenya/junit2otlp:latest --service-name naruto --trace-name pr17134 --repository-path "/opt/projectname"
2023/06/02 14:43:36 failed to read from pipe: bufio.Scanner: token too long
This is a 4.7mb xml
The second attempt with a 22kb junit file the error is different
$ cat reruns_app_endpoints_tests_naruto.xml | docker run --rm -i --volume "$(pwd):/opt/projectname" --env OTEL_EXPORTER_OTLP_ENDPOINT="https://api.honeycomb.io:443/v1/traces" --env OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=$HONEY_TOKEN,x-honeycomb-dataset=ci_results" mdelapenya/junit2otlp:latest --service-name naruto --trace-name pr17134-rerun --repository-path "/opt/projectname"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x86961e0]
goroutine 1 [running]:
main.(*GitScm).contributeAttributes(0x0)
/go/src/github.com/mdelapenya/junit2otlp/git.go:99 +0xe0
main.createTracesAndSpans({0x88e5860, 0xac32028}, {0xff961e8c, 0x6}, 0xacb4180, {0xb031920, 0x1, 0x1})
/go/src/github.com/mdelapenya/junit2otlp/main.go:65 +0x112
main.Main({0x88e5860, 0xac32028}, {0x88e21d8, 0x8d6a470})
/go/src/github.com/mdelapenya/junit2otlp/main.go:299 +0x95f
main.main()
/go/src/github.com/mdelapenya/junit2otlp/main.go:305 +0x8c
Metadata
Assignees
Labels
No labels