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

Rename autoconfigure modules #4779

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

trask
Copy link
Member

@trask trask commented Dec 2, 2021

Resolves #4778 (and needed for #4771)

@@ -264,7 +264,7 @@ include(":instrumentation:liberty:liberty-dispatcher:javaagent")
include(":instrumentation:log4j:log4j-1.2:javaagent")
include(":instrumentation:log4j:log4j-2.7:javaagent")
include(":instrumentation:log4j:log4j-2.13.2:javaagent")
include(":instrumentation:log4j:log4j-2.13.2:library")
include(":instrumentation:log4j:log4j-2.13.2:library-autoconfigure")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so but just want to confirm we're comfortable with this naming for libraries that don't use GlobalOpenTelemetry.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also - ok for followup but I guess we do need to split the appender out sooner than later for this one

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Maybe we define autoconfigure as any module that is enabled automatically just by being on the class path.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the -autoconfigure naming is a nice indication to users that there's nothing they have to do to register/configure it, so seems reasonably worth it even if there's would never be a non-autoconfigure module.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also - ok for followup but I guess we do need to split the appender out sooner than later for this one

oh yes, created #4780 and set milestone for 1.10.0 to limit breakage

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just seeing this now. This case is interesting because parts of this module are enabled automatically (i.e. the context provider) while other have to be manually enabled (i.e. the log4j2 log appender for the log sdk).

Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would have the appender only in library and the context provider in auto, so basically split in half

@trask trask merged commit a9980cd into open-telemetry:main Dec 2, 2021
@trask trask deleted the rename-autoconfigure-modules branch December 2, 2021 06:03
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use new autoconfigure module naming convention where applicable
3 participants