Skip to content
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

Trying to setup java-agent with JBOSS: Error message: INTERNAL: http2 exception #7065

Open
faisal-yusufzai opened this issue Feb 4, 2025 · 0 comments

Comments

@faisal-yusufzai
Copy link

faisal-yusufzai commented Feb 4, 2025

Hello everyone,

I am currently trying to set up my java-agent for metric gathering with my jboss standalone.conf file where the flags needed for otel are added to it. These are the current flags I am using to start up my JBOSS application and it is not crashing it, however, I am not able to see the metrics sent to my otel-collector ( I only care about metrics but set up the logs and traces to not see anymore errors).
-javaagent:opentelemetry-javaagent-all.jar \ -Dotel.exporter=otlp \ -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=otlp \ -Dotel.logs.exporter=otlp \ -Dotel.exporter.otlp.protocol=http/protobuf \ -Dotel.exporter.otlp.traces.protocol=http/protobuf \ -Dotel.exporter.otlp.metrics.protocol=http/protobuf \ -Dotel.exporter.otlp.logs.protocol=http/protobuf \ -Dotel.exporter.otlp.endpoint=http://172.17.x.xxxx:4318 \ -Dotel.exporter.otlp.metrics.endpoint=http://172.17.x.xxx:4318/v1/metrics \ -Dotel.exporter.otlp.traces.endpoint=http://172.17.x.xxxx:4318/v1/traces \ -Dotel.exporter.otlp.logs.endpoint=http://172.17.x.xxxx:4318/v1/logs \ -Dotel.logs.export.interval=1 \ -Dotel.traces.export.interval=1 \ -Dotel.jmx.config=config_file.yaml \ -Dotel.jmx.discovery.delay=0 \ -Dotel.metric.export.interval=1

The config file is just the example one below:
`---
rules:

  • bean: java.lang:type=Threading
    mapping:
    ThreadCount:
    metric: my.own.jvm.thread.count
    type: updowncounter
    desc: The current number of threads
    unit: "1"
    `

The error I am getting is:
2025-02-04 14:04:02,887 ERROR [stderr] [opentelemetry.auto.trace 2025-02-04 14:04:02:887 +0000] [grpc-default-executor-0] WARN io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter - Failed to export spans. Error message: INTERNAL: http2 exception
But I am also getting it for the metrics and logs as well. Please let me know if you see something wrong as I just started using otel-collector and java-agent. Thank you!

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

1 participant