Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typos and compilation errors
Browse files Browse the repository at this point in the history
cb645j committed Dec 16, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jonhoo Jon Gjengset
1 parent 7fcfa7d commit da9e851
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -71,6 +71,7 @@ public static void addTracingEnter(
request.setProcessInstanceId(Optional.ofNullable(execution.getProcessInstanceId()));
request.setActivityId(Optional.ofNullable(execution.getCurrentActivityId()));
request.setActivityName(Optional.ofNullable(execution.getCurrentActivityName()));
request.setBusinessKey(Optional.ofNullable(execution.getProcessBusinessKey()));

if (Java8BytecodeBridge.currentContext() == Java8BytecodeBridge.rootContext()) {
// log
Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@ public static class CamundaCommonBehaviorAdvice {
@Advice.OnMethodEnter(suppress = Throwable.class)
public static void addTracingEnter(
@Advice.Argument(0) ActivityExecution execution,
@Advice.This Object target,
@Advice.Local("request") CamundaCommonRequest request,
@Advice.Local("otelParentScope") Scope parentScope,
@Advice.Local("otelContext") Context context,
@@ -79,6 +80,7 @@ public static void addTracingEnter(
request.setProcessDefinitionId(Optional.ofNullable(execution.getProcessDefinitionId()));
request.setProcessInstanceId(Optional.ofNullable(execution.getProcessInstanceId()));
request.setActivityId(Optional.ofNullable(execution.getCurrentActivityId()));
request.setBusinessKey(Optional.ofNullable(execution.getProcessBusinessKey()));

name:
{
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
@AutoService(InstrumentationModule.class)
public class CamundaCommonBehaviorModule extends InstrumentationModule {

public CamundaTaskActivityBehaviorModule() {
public CamundaCommonBehaviorModule() {
super("camunda", "camunda-behavior", "camunda-behavior-7_18");
}

Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ public class CamundaCommonRequest {
private Optional<String> processDefinitionId = Optional.empty();
private Optional<String> processDefinitionKey = Optional.empty();
private Optional<String> processInstanceId = Optional.empty();
private Optional<String> businessKey = Optional.empty();
private Optional<String> activityId = Optional.empty();
private Optional<String> activityName = Optional.empty();
private Optional<String> topicName = Optional.empty();
@@ -41,6 +42,14 @@ public void setProcessInstanceId(Optional<String> processInstanceId) {
this.processInstanceId = processInstanceId;
}

public Optional<String> getBusinessKey() {
return businessKey;
}

public void setBusinessKey(Optional<String> businessKey) {
this.businessKey = businessKey;
}

public Optional<String> getActivityId() {
return activityId;
}

0 comments on commit da9e851

Please sign in to comment.