Skip to content

Fix/add explain tracing to operation service errors - #1981

Merged
lbroudoux merged 5 commits into
microcks:masterfrom
StartUpNationLabs:fix/add-explain-tracing-to-operation-service-errors
Mar 31, 2026
Merged

lbroudoux merged 5 commits into
microcks:masterfrom
StartUpNationLabs:fix/add-explain-tracing-to-operation-service-errors

Conversation

@Apoorva64

@Apoorva64 Apoorva64 commented Mar 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

Before this change, requests to non-existent services or unmatched operations returned HTTP errors silently with no trace data. This made it difficult to diagnose routing issues via the live-traces graph.
This PR adds missing tracing in the Rest Controller and changes the Trace some of the Tracing logic to capture theses requests.

I also did a small refactor in the RestController to remove duplications see dcaa90c

image

Related issue(s)

Fixes #1950

@Apoorva64
Apoorva64 force-pushed the fix/add-explain-tracing-to-operation-service-errors branch from b553c0c to 78a457d Compare March 8, 2026 15:05
@Apoorva64
Apoorva64 marked this pull request as ready for review March 8, 2026 15:06
@Apoorva64
Apoorva64 requested review from lbroudoux and yada as code owners March 8, 2026 15:06
@Apoorva64
Apoorva64 marked this pull request as draft March 9, 2026 06:40
@Apoorva64

Copy link
Copy Markdown
Contributor Author

There is an integration test to fix. I'll fix it tonight

@lbroudoux

Copy link
Copy Markdown
Member

There is an integration test to fix. I'll fix it tonight

This looks good so far. Let me know when fix is pushed.

@Apoorva64
Apoorva64 force-pushed the fix/add-explain-tracing-to-operation-service-errors branch 2 times, most recently from f535b39 to e80d76f Compare March 22, 2026 10:40
… logic and add request validation

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
…ices and not found operation as well as validation errors are shown in traces.

A null pattern now matches everything and SpanFilterUtil also handles null values with wildcard

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
…d SOAP controllers

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
…et the operation as it is not yet resolved on invocation received so we use the URI

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
@Apoorva64
Apoorva64 force-pushed the fix/add-explain-tracing-to-operation-service-errors branch from e80d76f to e087adf Compare March 22, 2026 10:41
@Apoorva64
Apoorva64 marked this pull request as ready for review March 22, 2026 10:54
@Apoorva64

Copy link
Copy Markdown
Contributor Author

Sorry, for the late reply,
I changed the integration test from checking a message with the operation name to the URI of the resquest as we don't have the operation info when we do the "INVOCATION_RECIEVED" event
I think the AsyncAPITestManagerIT failing test is a flaky test as it works locally

@Apoorva64

Copy link
Copy Markdown
Contributor Author

@lbroudoux @SebastienDegodez are we good for this PR?

@SebastienDegodez SebastienDegodez added this to the 1.14.0 milestone Mar 25, 2026
@Apoorva64
Apoorva64 changed the base branch from 1.13.x to master March 28, 2026 19:38
@lbroudoux

Copy link
Copy Markdown
Member

@lbroudoux @SebastienDegodez are we good for this PR?

Thanks for your patience. Looking at it now.

@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.

Looks all good to me. Thanks @Apoorva64!

@lbroudoux
lbroudoux merged commit 374e694 into microcks:master Mar 31, 2026
11 of 12 checks passed
lbroudoux pushed a commit that referenced this pull request Mar 31, 2026
* refactor: request handling in RestController to consolidate execution logic and add request validation

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>

* feat: enhance tracing events in RestController so that not found services and not found operation as well as validation errors are shown in traces.
A null pattern now matches everything and SpanFilterUtil also handles null values with wildcard

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>

* feat: fix explain tracing for service and operation errors in GRPC and SOAP controllers

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>

* fix: add a better name for missing operation and missing service

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>

* test: fix integration test, we cannot use the invocation context to get the operation as it is not yet resolved on invocation received so we use the URI

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>

---------

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
(cherry picked from commit 374e694)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live Traces don't work if operation selection fails

3 participants