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 full APM/DBM mode for Oracle #8090

Merged
merged 13 commits into from
Dec 20, 2024
Prev Previous commit
Next Next commit
DD_INSTRUMENTATION_PREFIX
  • Loading branch information
nenadnoveljic committed Dec 20, 2024
commit 612ae6d36648e448d5777ce48a3bf996802910de
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class JDBCDecorator extends DatabaseClientDecorator<DBInfo> {
public static final String DBM_PROPAGATION_MODE_STATIC = "service";
public static final String DBM_PROPAGATION_MODE_FULL = "full";

public static final String DD_INSTRUMENTATION_PREFIX = "_DD_";

public static final String DBM_PROPAGATION_MODE = Config.get().getDBMPropagationMode();
public static final boolean INJECT_COMMENT =
DBM_PROPAGATION_MODE.equals(DBM_PROPAGATION_MODE_FULL)
Expand Down Expand Up @@ -279,7 +281,7 @@ public void setAction(AgentSpan span, Connection connection) {
if (priority == null) {
return;
}
final String traceContext = "_DD_" + DECORATE.traceParent(span, priority);
final String traceContext = DD_INSTRUMENTATION_PREFIX + DECORATE.traceParent(span, priority);

connection.setClientInfo("OCSID.ACTION", traceContext);

Expand Down