Skip to content

Feat/add sse endpoint - #1754

Merged
lbroudoux merged 13 commits into
microcks:1.13.xfrom
StartUpNationLabs:feat/add-see-endpoint
Sep 30, 2025
Merged

lbroudoux merged 13 commits into
microcks:1.13.xfrom
StartUpNationLabs:feat/add-see-endpoint

Conversation

@Apoorva64

@Apoorva64 Apoorva64 commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor

Description

This PR adds the sse endpoint mentioned in #1728 with the addition of regex filtering and the feature of filtering over clientAddress

Related issue(s)

#1728

@Apoorva64
Apoorva64 marked this pull request as draft September 25, 2025 08:44
@Apoorva64 Apoorva64 changed the title Feat/add see endpoint Feat/add sse endpoint Sep 25, 2025
@lbroudoux

Copy link
Copy Markdown
Member

I think some of the commits are already embedded in #1752 or #1753. Do you plan to rebase before finalizing?

@Apoorva64

Copy link
Copy Markdown
Contributor Author

I think some of the commits are already embedded in #1752 or #1753. Do you plan to rebase before finalizing?

Yes i am planning of merging #1752 and #1753 before rebasing this one

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
@Apoorva64
Apoorva64 force-pushed the feat/add-see-endpoint branch from dbb6c6d to 88616af Compare September 26, 2025 14:41
@Apoorva64
Apoorva64 marked this pull request as ready for review September 29, 2025 09:36
@Apoorva64
Apoorva64 marked this pull request as draft September 29, 2025 11:49
@Apoorva64

Copy link
Copy Markdown
Contributor Author

@lbroudoux i have a problem when adding Integration tests for the TracingController.
When i make a request with 'restTemplate' it creates a span which becomes the root span of the current context. This span does not have the 'explain-trace' tag so the 'CustomExplainTraceProcessor' does not store this root span and the SpanStorageService does not send an event as it does not recieve the "root" span.

To solve this we could add another tag (an attribute in the span) which indicates which is the root span but it adds unecessary code

@Apoorva64

Copy link
Copy Markdown
Contributor Author

@lbroudoux i have a problem when adding Integration tests for the TracingController. When i make a request with 'restTemplate' it creates a span which becomes the root span of the current context. This span does not have the 'explain-trace' tag so the 'CustomExplainTraceProcessor' does not store this root span and the SpanStorageService does not send an event as it does not recieve the "root" span.

To solve this we could add another tag (an attribute in the span) which indicates which is the root span but it adds unecessary code

i found how to do it. In the test we disable "otel.instrumentation.spring-web.enabled" which disables the restTemplate instrumentation

…pring-web.enabled

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
@Apoorva64
Apoorva64 marked this pull request as ready for review September 30, 2025 14:01

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

Thanks a lot once again for this big PR! I would move stuffs from the tracing service in other parts such as existing TracingController or another listener.

@Apoorva64
Apoorva64 requested a review from lbroudoux September 30, 2025 15:43

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

All good. Thanks for applying the requested changes.

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