- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们正在使用 Micronaut (v1.2.0) 构建一个网络应用程序,它将部署在 Kubernetes 集群中(我们使用 Istio 作为服务网格)。
我们想检测关键方法调用,以便它们可以在 HTTP 请求跨度上下文中生成自己的跨度。为此,我们使用了 Micronaut OpenTracing 支持和 Jaeger 集成。
pom.xml
...
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-tracing</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.jaegertracing</groupId>
<artifactId>jaeger-thrift</artifactId>
<scope>runtime</scope>
</dependency>
...
已使用@ContinueSpan
实现了 Filter 方法(也尝试了与 @NewSpan
相同的方法),如下所示
@Filter("/**")
public class TraceTestFilter implements HttpServerFilter {
@Override
public Publisher<MutableHttpResponse<?>> doFilter(
HttpRequest<?> request, ServerFilterChain chain) {
return testMethodTracing(request, chain);
}
@ContinueSpan
public Publisher<MutableHttpResponse<?>> testMethodTracing(
HttpRequest<?> request, ServerFilterChain chain) {
// Details ommitted here
}
}
下面是在application-k8s.yml
中维护的(也有一个application.yml
具有相同的设置)
---
tracing:
jaeger:
enabled: true
sampler:
probability: 1
sender:
agentHost: jaeger-agent.istio-system
agentPort: 5775
但是,我们只能看到 Istio(Envoy 代理)生成的跟踪条目,而看不到方法调用本身的详细信息。
关于这里可能出了什么问题的任何想法?
最佳答案
Istio 有这个功能叫做 Distributed Tracing ,它使用户能够跟踪分布在多个服务中的网格中的请求。这可用于可视化请求延迟、序列化和并行性。
为此,Istio 使用 Envoy Proxy - Tracing功能。
您可以部署 Bookinfo Application看看如何 Trace context propagation有效。
关于istio - 方法调用的 Micronaut 和 OpenTracing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58249869/
我们正在使用 Micronaut (v1.2.0) 构建一个网络应用程序,它将部署在 Kubernetes 集群中(我们使用 Istio 作为服务网格)。 我们想检测关键方法调用,以便它们可以在 HT
我尝试在PHP项目中实现OpenTracing + Jaeger,遵循https://github.com/jonahgeorge/jaeger-client-php的“入门”示例 跟踪器,范围和范围
我正在尝试使用 OpenTracing.Contrib.NetCore与 Serilog。我需要将我的自定义日志发送给 Jaeger。现在,它仅在我使用默认记录器工厂 Microsoft.Extens
我使用 Jaeger 记录应用程序跟踪信息。 是否需要再次使用其他日志包? 最佳答案 OpenTracing 是分布式跟踪的框架。因此,它更多地是关于性能监控和可观察性而不是日志记录(NLog 是关于
在 #105 davidB 询问: I would like to have read access to the Span id (SpanContext id) to be able to use
我在 Docker 中一体安装了 jaeger: docker run --rm --name jaeger -p 5775:5775/udp -p 6831:6831/udp -p 6832:683
我的 API 网关启动了一个跟踪器和一个用于验证电子邮件的跨度。然后它传递给 user-service进行验证。 我想通过 span详情至user-service作为 json 对象并开始另一个 sp
您好,我正在我的 spring boot 项目中使用以下跟踪框架。 io.opentracing.contrib opentracing-spring-jaeger-cloud-st
W3C trace context定义 traceparent和 tracestate用于启用分布式跟踪的 header 。 我的问题是 它与 OpenTracing 有何不同。 如果 W3C 已经定
我已将以下注释添加到我的 Spring Boot 项目中: @CamelOpenTracing 这为我的消息经过的每条路线创建了一个跨度,并且效果完美。 但是,如何创建自己的跨度?我想在消息转到 on
有没有办法配置 opentracing-spring-jaeger-cloud-starter 来处理除 Uber-Trace-Id 之外的任何其他 header ?我将 Traefik 作为我的 k
我正在尝试将 Jaeger 跟踪集成到 K-Streams 中。我正计划将跟踪添加到我最重要的几个管道中,并且想知道将 traceid 从一个管道传递到另一个管道的好方法是什么? 这是我目前所拥有的
我们在 Istio 中使用 Opentracing/Jaeger 来跟踪多个基于 Spring Boot/Spring Cloud 的微服务。 我目前想知道是否有一个选项可以通过提供有关已执行查询(即
使用 MassTransit.RabbitMQ v5.3.2 和 OpenTracing.Contrib.NetCore v0.5.0。 我可以使用 MassTransit 向 RabbitMQ 发布
我只能找到在 Kafka 中使用 opentracing/jaeger 的旧的和不完整的例子。我想在本地运行一个示例作为概念证明 - opentracing spans to kafka。 我设法让其
我有一个使用 OpenTracing 的 Spring Boot 应用程序,我想将其数据推送到 Prometheus,这样我就可以通过 Grafana 查询所有指标(如本教程 https://www.
我正在努力为 Spring Boot 2.0.2 应用程序设置 OpenTracing/Jaeger。从 Spring Boot 1.5.3 的一个工作但非常示例开始,我转向了 Spring Boot
有一个使用 SLF4J 记录器的现有 Spring Boot 应用程序。我决定通过标准 opentracing 添加对分布式跟踪的支持以 Jaeger 作为跟踪器的 API。令人惊讶的是初始设置是如此
我是一名优秀的程序员,十分优秀!