Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10888

Opentracing CDI extension is using deprecated method leading to WARN

    XMLWordPrintable

Details

    Description

      Opentracing CDI extension which registers bean types is using deprecated method which leads to WARNINGs every time it is registered.

      2018-08-20 12:24:43,009 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.wildfly.microprofile.opentracing.smallrye.TracerProducer is deprecated from CDI 1.1!
      2018-08-20 12:24:43,010 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class io.smallrye.opentracing.SmallRyeTracingCDIInterceptor is deprecated from CDI 1.1!
      

      Instead of BBD.addAnnotatedType(AnnotatedType<?> type) you should be using BBD.addAnnotatedType(AnnotatedType<?> type, String id).

      Will send PR shortly.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: