Skip to content

FLOGO-17735: add traceID and spanID attributes to log message#296

Merged
abhide-tibco merged 1 commit intoproject-flogo:masterfrom
abhijitWakchaure:master
Mar 25, 2026
Merged

FLOGO-17735: add traceID and spanID attributes to log message#296
abhide-tibco merged 1 commit intoproject-flogo:masterfrom
abhijitWakchaure:master

Conversation

@abhijitWakchaure
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (check one with "x")

[] Bugfix
[x] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

What is the current behavior?
When tracing is enabled, the log statements do not have the traceID and spanID in them, so it's very difficult to debug the issue based on the traceID.

What is the new behavior?
When tracing is enabled, the log statements now include the current traceID and spanID. For example:

2026-03-25T12:00:50.645+0530    INFO    [flogo.flow] -  [traceID: a2a162eb7534edf8bc860638184eb6a4] [spanID: cd12ad8e96d8aabe] Flow Instance [86cf586ee9e6c5c97f347031e623120a] for event id [AE079D8100237AA0467965FA] completed in 152.9553ms

This new behavior is turned on by default, if you wish to disable injecting the traceID and spanID in the log statements, you can set the following env variable to false. By default the value for this variable is true

export FLOGO_LOG_TRACE_CTX_ENABLED=false

@abhide-tibco abhide-tibco merged commit 36a50f5 into project-flogo:master Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants