Skip to content

Commit f9b75bb

Browse files
Add app name and app version to the flow context
1 parent f37cba9 commit f9b75bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

instance/ind_instance.go

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ const (
4949
parentFlowId = "ParentFlowId"
5050
traceId = "TraceId"
5151
spanId = "SpanId"
52+
appName = "AppName"
53+
appVersion = "AppVersion"
5254
)
5355

5456
// New creates a new Flow Instance from the specified Flow
@@ -175,6 +177,8 @@ func (inst *IndependentInstance) startInstance(toStart *Instance, startAttrs map
175177
//Set the flow Name and Flow Id for the current flow.
176178
_ = toStart.SetValue(flowCtxPrefix+flowName, toStart.Name())
177179
_ = toStart.SetValue(flowCtxPrefix+flowId, toStart.ID())
180+
_ = toStart.SetValue(flowCtxPrefix+appName, flowsupport.GetAppName())
181+
_ = toStart.SetValue(flowCtxPrefix+appVersion, flowsupport.GetAppVerison())
178182

179183
// If tracing is enabled, inject traceId and spanId in flow context
180184
if trace.Enabled() {

0 commit comments

Comments
 (0)