English 中文(简体)
开放电信产业(Java)能够被配置,或者以其他方式相信与MDC的价值观相交叉?
原标题:Can OpenTelemetry (Java) be configured or otherwise convinced to tag spans with MDC values?
The bounty expires in 7 days. Answers to this question are eligible for a +50 reputation bounty. Zak wants to draw more attention to this question.

我们的申请与客户身份证有关。 在通过MDC(lf4j)提出请求期间,这种元数据价值可用于伐木和许多其他电算/可观测/金属活动。 珍惜这一价值,将其作为所有波及效应的标签。

  1. 是否有办法将OTEL与MDC的数值自动挂钩。 理想的情况是,我能够把具有相关价值的塔伊夫拉茨与一套主要配对器混为一号,为Span和MDC钥匙添加标记。

  2. 如果所阐明的基于配置的方法是不可能的,则在请求开始时(即在装货箱或类似集装箱的过滤器上)能够将所希望的中转折价值复制到中转计算法,这样,在请求中设定的所有期限就会暗中与这些标签一起产生/继承。

如果采取另一种办法,使申请的所有时间都变得暗中一小.。

事先感谢你提供的任何帮助/指导。

问题回答

由于MDC是静态可及的,我认为你可以实施<条码>SpanProcessor,在<条码>上将所希望的属性添加到<条码>span。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签