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

Add support for spring-pulsar 1.0 #13320

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

CodePrometheus
Copy link

Resolves #13309

@CodePrometheus CodePrometheus requested a review from a team as a code owner February 16, 2025 17:48
@CodePrometheus
Copy link
Author

@jaydeluca Excuse me, could you kindly review this when you have some time? Thanks!

@laurit laurit added this to the v2.14.0 milestone Mar 10, 2025
import org.apache.pulsar.client.api.Message;

public final class SpringPulsarSingletons {
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.spring-pulsar-1.2";
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an unnecessary definition, it's just used once in this class.

Copy link
Contributor

Choose a reason for hiding this comment

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

other instrumentations have similar INSTRUMENTATION_NAME filed, for example

AttributeKey.stringKey("messaging.pulsar.message.type");

protected List<AttributeAssertion> publishAttributes() {
return Arrays.asList(
Copy link
Contributor

Choose a reason for hiding this comment

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

We'd use static import when it's used several time in a class. For detail, you can refer to https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/contributing/style-guideline.md#static-imports

implementation(project(":instrumentation:pulsar:pulsar-2.8:javaagent"))

testInstrumentation(project(":instrumentation:pulsar:pulsar-2.8:javaagent"))

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Contributor

Choose a reason for hiding this comment

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

other instrumetnations also leave a blank line between dependencies in different scopes, here testInstrumentation and testImplementation

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.

Add support Spring-Pulsar
4 participants