As suggested by @Rafael Winterhalter, the issue was resolved after injecting the ApplicationTraceContext class.
ClassInjector.UsingUnsafe.ofBootLoader().inject(Collections.singletonMap(
new TypeDescription.ForLoadedType(ApplicationTraceContext.class),
ClassFileLocator.ForClassLoader.read(ApplicationTraceContext.class)
));