Skip to content

Conversation

@hmtang
Copy link
Contributor

@hmtang hmtang commented Oct 27, 2024

Signed-off-by: Sunny hmtang@gmail.com
[resolves #1]

Signed-off-by: Sunny <hmtang@gmail.com>
[resolves spring-projects#1]
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Thanks @hmtang for the contribution. I have made a few request for changes. Let us know if you have any questions or need further clarifications - we are excited to have you on the project. Thank you.

@hmtang
Copy link
Contributor Author

hmtang commented Oct 28, 2024

Thanks a lot for the feedbacks. I would be out for a short trip in next week. I would look into this when I get back. Appreciate your time on the reviews.

@making
Copy link
Member

making commented Oct 31, 2024

I don't think we need MetricCollectingServerInterceptor if we support ObservationGrpcServerInterceptor which can output similar metrics and traces at the same time.

@onobc
Copy link
Contributor

onobc commented Oct 31, 2024

I don't think we need MetricCollectingServerInterceptor if we support ObservationGrpcServerInterceptor which can output similar metrics and traces at the same time.

I agree w/ this @making . I think we should just add auto-configuration for the Micrometer Observations API (which gives metrics and tracing) and if users want to only use Micrometer metrics they can add it in via interceptor themselves.

We have started taking this approach in our newer Spring projects (e.g. Spring Pulsar only provides support for Observations API). Most Spring projects were incepted prior to the availability of Observations API therefore Micrometer support was already in place.

@dsyer do you agree w/ this?

@dsyer
Copy link
Member

dsyer commented Oct 31, 2024

100%

- keep only AutoConfiguration

Signed-off-by: Sunny <hmtang@gmail.com>
[resolves spring-projects#1]
@hmtang
Copy link
Contributor Author

hmtang commented Nov 3, 2024

Tried to change to include only AutoConfiguration for the Metric, I am not entire sure about whether this is enough for the change. Please have a look. Thanks a lot.

- format fix

Signed-off-by: Sunny <hmtang@gmail.com>
[resolves spring-projects#1]
@hmtang hmtang requested a review from onobc November 4, 2024 22:38
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Nice work @hmtang ! A have added a few comments/suggestions.

Besides the suggestions, once we get the base configuration in this PR we will definitely want to document how to enable observations in a Spring gRPC application. There are quite a few moving pieces and it can be confusing. It does not have to be in this PR though as it may get large.

We did this exact thing for Spring Pulsar docs and we can clone/own those or just point to the SB docs on this topic.

We may want to create a sample that uses Micrometer observations as well (we did the same thing in Spring Pulsar here.

- rename metric to observation
- new condition changes

Signed-off-by: Sunny <hmtang@gmail.com>
[resolves spring-projects#1]
@hmtang
Copy link
Contributor Author

hmtang commented Nov 5, 2024

Thanks for the reviews. I have pushed a new changes for the requested changes.

@dsyer
Copy link
Member

dsyer commented Nov 6, 2024

"This branch cannot be rebased safely" according to github, so you need to rebase. Probably a good idea to squash your commits into one as well and force push back to your fork.

@onobc
Copy link
Contributor

onobc commented Nov 6, 2024

Thanks again for the great contribution @hmtang . I am closing this PR in favor of 7fed50a.

I added a follow-on commit to your commit (see details in commit message if you are interested. I add a couple more tests).

@onobc onobc closed this Nov 6, 2024
@onobc onobc added the enhancement New feature or request label Nov 6, 2024
@onobc onobc added this to the 0.2.0 milestone Nov 6, 2024
@onobc
Copy link
Contributor

onobc commented Nov 6, 2024

"This branch cannot be rebased safely" according to github, so you need to rebase. Probably a good idea to squash your commits into one as well and force push back to your fork.

Sorry @dsyer ,
I went ahead and handled that locally when I added polish commit. Next time I will assign the PR to myself to give a signal.

@onobc onobc mentioned this pull request Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Micrometer observations collection

4 participants