Quarkus应用程序(Java)的自动启动
我遍历了太多文章,但没有发现有关Quarkus应用程序的自动启示的任何内容,
下面给出了Quarkus应用程序的手动仪器。
添加此实现将自动添加跟踪应用程序所需的所有依赖关系。
implementation 'io.quarkus:quarkus-opentelemetry-exporter-otlp'
在Application.properties中提到所需的配置后,我们将能够将轨迹发送给收集器。
quarkus.application.name=manualInstrumentationForQuarkus
quarkus.opentelemetry.enabled=true
quarkus.opentelemetry.tracer.exporter.otlp.endpoint=http://localhost:4317
quarkus.opentelemetry.tracer.exporter.otlp.headers=Authorization=Bearer my_secret
请使用任何自动启动方法回答我,我们可以使用代理在不增加任何依赖性的情况下从应用程序中获取痕迹。
I traversed too many articles but didn't find anything about auto-instrumentation of Quarkus application,
Manual Instrumentation for Quarkus application is given below.
adding this implementetion will automatically add all the required dependency for tracing to app.
implementation 'io.quarkus:quarkus-opentelemetry-exporter-otlp'
In application.properties after mentioning required configurations , we will be able to send traces to collector.
quarkus.application.name=manualInstrumentationForQuarkus
quarkus.opentelemetry.enabled=true
quarkus.opentelemetry.tracer.exporter.otlp.endpoint=http://localhost:4317
quarkus.opentelemetry.tracer.exporter.otlp.headers=Authorization=Bearer my_secret
Please answer me with any autoinstrumentation method where we can use agent to get traces from application without adding any dependency.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在Quarkus上使用OpenTelemetry的推荐方法是使用您提到的扩展依赖性。
opentelemetry java java agent 有很多输出有很多输出上下文切换情况将因代理而失败,从而导致缺失跨度。
The recommended way to use OpenTelemetry on Quarkus is using the extension dependency you mention.
The OpenTelemetry Java Agent would provide some output but there are many context switching situations that will fail with the agent, leading to missing spans.
提供Quarkus 3.x应用程序的跨度和痕迹的新方法是使用扩展名: https://quarkus.io/guides/telemetry-opentracing-to-otel-tutorial
The new way to provide Spans and Traces from Quarkus 3.x applications is by using the extension : https://quarkus.io/guides/telemetry-opentracing-to-otel-tutorial