Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load agent from dedicated agent class loader #1338

Closed
Tracked by #937
felixbarny opened this issue Aug 13, 2020 · 1 comment · Fixed by #2109
Closed
Tracked by #937

Load agent from dedicated agent class loader #1338

felixbarny opened this issue Aug 13, 2020 · 1 comment · Fixed by #2109
Assignees
Labels
agent-java enhancement Enhancement of an existing feature
Milestone

Comments

@felixbarny
Copy link
Member

felixbarny commented Aug 13, 2020

Stop adding all the agent classes into the bootstrap class loader

  • Hides the agent from the regular classpath
  • Reduces risk of interfering with classpath scanners

Depends on #1337
Prerequisite for #1339

@eyalkoren
Copy link
Contributor

When implementing this, consider using the agent class loader for a dedicated log4j context - in LoggingConfiguration#init we may want to switch to using org.apache.logging.log4j.core.config.Configurator#initialize(ClassLoader, Configuration) instead of the current org.apache.logging.log4j.core.config.Configurator#initialize(Configuration) and use that to further separate agent loggers from others.

@SylvainJuge SylvainJuge added enhancement Enhancement of an existing feature and removed [zube]: Backlog labels Feb 1, 2021
@AlexanderWert AlexanderWert added this to the 7.16 milestone Aug 26, 2021
@felixbarny felixbarny self-assigned this Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java enhancement Enhancement of an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants