This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-04-28 16:05:29,733 [CM Configuration Updater (ManagedServiceFactory Update: factoryPid=[org.apache.sling.commons.log.LogManager.factory.config])] DEBUG co.elastic.apm.agent.mdc.MdcActivationListener - Class loader sun.misc.Launcher$AppClassLoader@18b4aac2 cannot load slf4j API | |
java.lang.ClassNotFoundException: org.slf4j.MDC | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_282] | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_282] | |
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[?:1.8.0_282] | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282] | |
at co.elastic.apm.agent.mdc.MdcActivationListener$1.get(MdcActivationListener.java:66) [?:?] | |
at co.elastic.apm.agent.mdc.MdcActivationListener$1.get(MdcActivationListener.java:60) [?:?] | |
at co.elastic.apm.agent.cache.WeakKeySoftValueLoadingCache$CacheValue.<init>(WeakKeySoftValueLoadingCache.java:125) [?:?] | |
at co.elastic.apm.ag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import co.elastic.apm.api.ElasticApm; | |
import org.apache.felix.scr.annotations.sling.SlingFilter; | |
import org.apache.felix.scr.annotations.sling.SlingFilterScope; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.slf4j.MDC; | |
import javax.servlet.*; | |
import java.io.IOException; |