Skip to content

Add OpenTelemetry Tracing to DynamicMockRestController - #1934

Merged
lbroudoux merged 2 commits into
microcks:1.13.xfrom
dipak0000812:feat/dynamic-mock-tracing
Jan 27, 2026
Merged

lbroudoux merged 2 commits into
microcks:1.13.xfrom
dipak0000812:feat/dynamic-mock-tracing

Conversation

@dipak0000812

Copy link
Copy Markdown
Contributor

Fixes #1930

This PR adds OpenTelemetry tracing to DynamicMockRestController to align it with existing tracing in SoapController and RestInvocationProcessor.

The change is intentionally minimal:

  • sets standard span attributes (service, version, operation)
  • emits lifecycle events for dynamic mock operations

No functional or behavioral changes are introduced.

@github-actions

Copy link
Copy Markdown

👋 @dipak0000812

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

@dipak0000812
dipak0000812 force-pushed the feat/dynamic-mock-tracing branch from a979060 to 1cdb491 Compare January 26, 2026 11:30
Add comprehensive tracing instrumentation to all five DynamicMockRestController endpoints (create, find, get, update, delete) to align with existing tracing patterns in SoapController.

Changes:
- Add required OpenTelemetry imports (Span, TraceUtil, CommonAttributes, CommonEvents)
- Instrument all methods with span attributes (service.name, service.version, operation.name)
- Add lifecycle events for invocation receipt, resource operations, and delay configuration
- Add error tracking with span status for JSON parse failures and missing resources

Fixes microcks#1930

Signed-off-by: dipak0000812 <[email protected]>
@dipak0000812
dipak0000812 force-pushed the feat/dynamic-mock-tracing branch from 1cdb491 to 3934346 Compare January 26, 2026 11:47

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks! I just have a minor comment on the default value for invocation stats enablement, in order to keep consistancy.

@dipak0000812
dipak0000812 force-pushed the feat/dynamic-mock-tracing branch from 6292962 to 5bb2163 Compare January 27, 2026 16:48
@dipak0000812

Copy link
Copy Markdown
Contributor Author

Hello @lbroudoux,
Thanks for the catch — updated the default to stay consistent with application.properties.
CI is running again.

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks!

@lbroudoux
lbroudoux merged commit e7aa452 into microcks:1.13.x Jan 27, 2026
8 of 9 checks passed
@dipak0000812
dipak0000812 deleted the feat/dynamic-mock-tracing branch January 27, 2026 17:36
lbroudoux added a commit that referenced this pull request Feb 5, 2026
…ll mongo and be detected as exfiltration or SSRF

Signed-off-by: Laurent Broudoux <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants