Grafana agent not starting in Docker Desktop

We are evaluating Grafana - Tempo, Loki. My company applications are in .Net. I wanted to achieve sending the logs, traces from my Applicaiton → Grafana agent → Grafana Cloud.

I have followed instructions mentioned in article - Instrumenting a .NET web API using OpenTelemetry, Tempo, and Grafana Cloud | Grafana Labs

Right now Grafana Agent is not starting and it is giving following error in Docker Desktop. Please let me know how to resolve the Grafana Agent issue.

Starting opentelemetry_grafana-agent_1 … done Creating opentelemetry_app_1 … done Attaching to opentelemetry_grafana-agent_1, opentelemetry_app_1
grafana-agent_1 | panic: runtime error: invalid memory address or nil pointer dereference
grafana-agent_1 | [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9a4d47]
grafana-agent_1 |
grafana-agent_1 | goroutine 1 [running]:

grafana-agent_1 | /src/agent/pkg/util/logger.go:29
grafana-agent_1 | main.main()
grafana-agent_1 | /src/agent/cmd/agent/main.go:58 +0x10f
opentelemetry_grafana-agent_1 exited with code 2