Skip to content

Add oracle context propagation#2434

Merged
laurit merged 2 commits intosignalfx:mainfrom
laurit:oracle-context-propagation
Sep 9, 2025
Merged

Add oracle context propagation#2434
laurit merged 2 commits intosignalfx:mainfrom
laurit:oracle-context-propagation

Conversation

@laurit
Copy link
Copy Markdown
Collaborator

@laurit laurit commented Sep 5, 2025

Based on #2405

statement.setBytes(1, contextInfo);
statement.executeUpdate();
}
protected abstract void setContext(Connection connection, String contextInfo) throws SQLException;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Even if it's assumed (and we don't use the non-null-by-default thing), might be nice to have this called out.

Suggested change
protected abstract void setContext(Connection connection, String contextInfo) throws SQLException;
protected abstract void setContext(Connection connection, @Nullable String contextInfo) throws SQLException;

import java.util.concurrent.atomic.AtomicReference;

public final class SqlServerUtil {
public abstract class AbstractDbContextPropagator {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🙊

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We've worked together long enough that you know. 🙃

Copy link
Copy Markdown
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

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

Thanks for working it out.

@laurit laurit merged commit c229f58 into signalfx:main Sep 9, 2025
53 of 54 checks passed
@laurit laurit deleted the oracle-context-propagation branch September 9, 2025 07:57
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants