Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation of tracing dependencies and configuration properties #34991

Closed
wants to merge 4 commits into from

Conversation

RobertRad
Copy link
Contributor

Document which property should contain the Zipkin URL.

Document which property should contain the Zipkin URL
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 14, 2023
@@ -95,6 +95,7 @@ All tracer implementations need the `org.springframework.boot:spring-boot-starte

* `io.micrometer:micrometer-tracing-bridge-brave` - which is needed to bridge the Micrometer Observation API to Brave.
* `io.zipkin.reporter2:zipkin-reporter-brave` - which is needed to report traces to Zipkin.
* Point the property `management.zipkin.tracing.endpoint` to the Zipkin server
Copy link
Member

Choose a reason for hiding this comment

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

Each item in the list is a dependency so I don't think this is quite the right place to draw attention to the management.zipkin.tracing.endpoint property. If we add something for the Zipkin property, we should also do the same for the management.wavefront.uri property.

I wonder if we'd be better restructuring Tracer Implementations to have Zipkin and Wavefront subsections. We could then mention the property in their respective sections and list the two dependency combinations that each supports as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @wilkinsona

I tried to restructure the subsection the way you described.

Does that match your expectations?

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the changes, @RobertRad. Unfortunately, now that I've seen them, I've realised that what I proposed isn't quite right as Zipkin and Wavefront are not tracer implementations. They're tracing systems to which a tracer exports traces. I'll have give this one some more thought.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @wilkinsona

I just wonder, how the management.zipkin.tracing.endpoint property is now documented?
I had a hard time getting tracing to work with Spring Boot 3 and needed to go through the Spring source code, to find out that property.
That was the reason, why I started this pull request.

Copy link
Member

Choose a reason for hiding this comment

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

It's listed in the appendix. It will also be offered by auto-completion in your IDE if you have Spring Boot tooling enabled/installed.

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Apr 14, 2023
@wilkinsona wilkinsona changed the title Document prop 'management.zipkin.tracing.endpoint' Improve documentation of tracing deps and config props Apr 17, 2023
@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Apr 17, 2023
@wilkinsona wilkinsona changed the title Improve documentation of tracing deps and config props Improve documentation of tracing dependencies and configuration properties Apr 17, 2023
@wilkinsona wilkinsona added this to the 3.1.x milestone Apr 17, 2023
@wilkinsona wilkinsona added type: documentation A documentation update and removed type: enhancement A general enhancement labels Apr 17, 2023
@wilkinsona wilkinsona modified the milestones: 3.1.x, 3.0.x Apr 17, 2023
@wilkinsona wilkinsona modified the milestones: 3.0.x, 3.0.6 Apr 17, 2023
@wilkinsona
Copy link
Member

@RobertRad Thank you very much for making your first contribution to Spring Boot. I didn't want to waste more of your time so I went with an amended version of your first suggestion in the end. I've mentioned the configuration properties for Wavefront and Zipkin in each section where they're relevant. There's a bit of repetition but I think that's unavoidable without a much bigger overhaul of the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants