Skip to content

Conversation

@CagriYonca
Copy link
Contributor

We should use the get_tracer function to provide the correct use case of the singleton pattern, so we can start by adapting our code to getter and setters. Using singletons with getters and setters may also be helpful in resolving span_queue access management issues that arise from multi-threading with Instana.

@CagriYonca CagriYonca self-assigned this Nov 17, 2025
@CagriYonca CagriYonca requested a review from a team as a code owner November 17, 2025 16:29
Copy link
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

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

Just "a few" changes!

@pvital
Copy link
Member

pvital commented Nov 18, 2025

Quality Gate Failed Quality Gate failed

Failed conditions 10.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@CagriYonca, please, in addition to the change requests, fix this failed condition.

Copy link
Contributor

@GSVarsha GSVarsha left a comment

Choose a reason for hiding this comment

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

The Year 1 is the year IBM copyrighted the file content. If there's a new functionality added in the file (not bug fixes or structural changes), you can add the respective year if you want like the below:

# (c) Copyright IBM Corp. 2021, 2025

But I guess here we are only moving things around so I would suggest not to change.

Copy link
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

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

It looks good to me.
But before merging it, take action on @GSVarsha's comments.

@sonarqubecloud
Copy link

@CagriYonca CagriYonca changed the title chore: use get_tracer() for all tracer access [INSTA-64769] chore: use get_tracer() for all tracer access Nov 21, 2025
@CagriYonca CagriYonca changed the title [INSTA-64769] chore: use get_tracer() for all tracer access chore: use get_tracer() for all tracer access [INSTA-64769] Nov 21, 2025
@CagriYonca CagriYonca changed the title chore: use get_tracer() for all tracer access [INSTA-64769] [INSTA-64769] chore: use get_tracer() for all tracer access Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants