Skip to content

Comments

Add ICP agent configurations to the log message when ICP agent running#1393

Merged
anuruddhal merged 13 commits intoballerina-platform:masterfrom
NipunaMadhushan:add-icp-tags
Dec 1, 2025
Merged

Add ICP agent configurations to the log message when ICP agent running#1393
anuruddhal merged 13 commits intoballerina-platform:masterfrom
NipunaMadhushan:add-icp-tags

Conversation

@NipunaMadhushan
Copy link
Contributor

@NipunaMadhushan NipunaMadhushan commented Oct 16, 2025

Purpose

This will add ICP runtimeId tag to log messages only if the ICP agent is running.

wso2/integration-control-plane#22

Examples

A sample log message will be displayed as follows.

time=2025-10-16T10:35:22.539+05:30 level=INFO module=nipunal/sample_1 message="Fetching product list" traceId="15f992c0ac10ae018fbb0961f23c6fc3" spanId="66c3d67f6ff5ef62" icp.runtimeId="152819201"

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@NipunaMadhushan NipunaMadhushan changed the title Add icp tags Add ICP agent configurations to the log message when ICP agent running Oct 16, 2025
[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.12.0"
distribution-version = "2201.13.0-20251016-073200-0d348172"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to bump the lang version? Can't we do it as a patch on top of update 12?

@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.95%. Comparing base (a80dd75) to head (8d5d0a1).
⚠️ Report is 33 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1393   +/-   ##
=========================================
  Coverage     79.95%   79.95%           
  Complexity       81       81           
=========================================
  Files             8        8           
  Lines           499      499           
  Branches         93       93           
=========================================
  Hits            399      399           
  Misses           73       73           
  Partials         27       27           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TharmiganK
Copy link
Contributor

@NipunaMadhushan Do we have a design/proposal document for this?

@sonarqubecloud
Copy link

Copy link
Contributor

@TharmiganK TharmiganK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anuruddhal anuruddhal merged commit 603106b into ballerina-platform:master Dec 1, 2025
7 of 8 checks passed
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.

4 participants