Skip to content

Commit 46d4289

Browse files
committed
Adding getters and setters for OperationParentId
1 parent e9badfb commit 46d4289

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

core/src/main/java/com/microsoft/applicationinsights/extensibility/context/OperationContext.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ public void setId(String id) {
5151
MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationId(), id);
5252
}
5353

54+
/**
55+
* Set the Operation Parent id
56+
* @param parentId
57+
*/
58+
public void setParentId(String parentId) {
59+
MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationParentId(), parentId);
60+
}
61+
62+
63+
/**
64+
* Get the operation parent id
65+
* @return
66+
*/
67+
68+
public String getParentId() {
69+
return MapUtil.getValueOrNull(tags, ContextTagKeys.getKeys().getOperationParentId());
70+
}
71+
5472
/**
5573
* Gets the operation name.
5674
* @return Operation name.

0 commit comments

Comments
 (0)