Skip to content

我按照文档教程运行example报错 404 #418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kuooyoung opened this issue May 6, 2025 · 2 comments
Open

我按照文档教程运行example报错 404 #418

kuooyoung opened this issue May 6, 2025 · 2 comments

Comments

@kuooyoung
Copy link

  1. 首先运行jarger:
docker run --rm --name jaeger \
  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  -p 14250:14250 \
  -p 14268:14268 \
  -p 14269:14269 \
  -p 9411:9411 \
  jaegertracing/all-in-one:1.53.0
  1. 编译服务:
otel go build .
  1. 运行服务:
export OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4318" 
export OTEL_EXPORTER_OTLP_INSECURE=true 
export  OTEL_SERVICE_NAME=demo 
./demo

报错信息:

2025/05/06 10:57:34 failed to upload metrics: failed to send metrics to http://127.0.0.1:4318/v1/metrics: 404 Not Found (body: 404 page not found)
@123liuziming
Copy link
Collaborator

If you do not want to see metrics, you can close the metrics exporter:

export OTEL_METRICS_EXPORTER=none

@123liuziming
Copy link
Collaborator

You can open a PR to polish the example~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants