Quarkus应用程序(Java)的自动启动

发布于 2025-02-08 08:06:44 字数 582 浏览 1 评论 0原文

我遍历了太多文章,但没有发现有关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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

明媚殇 2025-02-15 08:06:44

在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.

囚我心虐我身 2025-02-15 08:06:44

提供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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文