Skip to content

Conversation

@greatvovan
Copy link
Contributor

@greatvovan greatvovan commented Oct 27, 2024

A trivial issue, the runtime scope setting will prevent the user from importing the class as illustrated below

import io.opentelemetry.instrumentation.log4j.appender.v2_17.OpenTelemetryAppender;

thus, the documentation has contradicting paragraphs, and the PR attempts to fix that.

@greatvovan greatvovan requested a review from a team as a code owner October 27, 2024 04:35
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 27, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot requested a review from theletterf October 27, 2024 04:36
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-log4j-appender-2.17</artifactId>
<version>OPENTELEMETRY_VERSION</version>
<scope>runtime</scope>
Copy link
Member

Choose a reason for hiding this comment

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

good catch, thanks!

can you change the gradle configuration below also?

runtimeOnly("io.opentelemetry.instrumentation:opentelemetry-log4j-appender-2.17:OPENTELEMETRY_VERSION")

to

implementation("io.opentelemetry.instrumentation:opentelemetry-log4j-appender-2.17:OPENTELEMETRY_VERSION")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I knew that I saw "runtime" in one more place in the doc. Thanks for catching gradle one, too!

@trask trask merged commit 9074b48 into open-telemetry:main Oct 28, 2024
56 checks passed
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.

2 participants