Skip to content

Conversation

@zeitlinger
Copy link
Member

No description provided.

@zeitlinger zeitlinger requested a review from a team as a code owner September 26, 2025 12:56
@zeitlinger zeitlinger self-assigned this Sep 26, 2025
@zeitlinger
Copy link
Member Author

@laurit @trask excluding gh anchors is quite easy 😄


exclude = [
# Disabled until https://github.com/lycheeverse/lychee/issues/1729 is fixed
"^https://github.com/.*#.*$",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not ideal as it completely disables checking github links. Have you considered using the remap option. Perhaps that could be used to strip the anchor from github links?

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea!

Copy link
Member Author

Choose a reason for hiding this comment

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

copilot suggested to add a remap that actually (with a little bit of tweaking) checking all anchors instead of discarding them.

Here's a link that is now verified as correct:

https://raw.githubusercontent.com/open-telemetry/opentelemetry-specification/v1.20.0/specification/resource/sdk.md#specifying-resource-information-via-an-environment-variable

Several are not correct - not not fixed in this PR (yet)

[./CHANGELOG.md]:                                                                                                                                                                                  
   [ERROR] https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/jmx-metrics#jmx-metric-insight | Cannot find fragment                                    

[./consistent-sampling/README.md]:
   [ERROR] https://raw.githubusercontent.com/open-telemetry/opentelemetry-specification/main/specification/trace/tracestate-probability-sampling.md#always-off-sampler | Cannot find fragment      
   [ERROR] https://raw.githubusercontent.com/open-telemetry/opentelemetry-specification/main/specification/trace/tracestate-probability-sampling.md#always-on-consistent-probability-sampler | Cannot find fragment
   [ERROR] https://raw.githubusercontent.com/open-telemetry/opentelemetry-specification/main/specification/trace/tracestate-probability-sampling.md#consistentprobabilitybased-sampler | Cannot find fragment
   [ERROR] https://raw.githubusercontent.com/open-telemetry/opentelemetry-specification/main/specification/trace/tracestate-probability-sampling.md#parentconsistentprobabilitybased-sampler | Cannot find fragment
   [ERROR] https://raw.githubusercontent.com/open-telemetry/opentelemetry-specification/main/specification/trace/tracestate-probability-sampling.md#requirement-combine-multiple-consistent-probability-samplers-using-the-minimum-p-value | Cannot find fragment

[./jmx-scraper/README.md]:
     [400] https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-instrumentation/main/instrumentation/jmx-metrics/library/src/main/resources/jmx/rules/ | Rejected status code (this depends on your "accept" configuration): Bad Request

Copy link
Member

Choose a reason for hiding this comment

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

wow, love that! 😍

Copy link
Member Author

Choose a reason for hiding this comment

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

wow, love that! 😍

all credits go to @laurit and copilot - they are an incredible combo 😜

@zeitlinger zeitlinger changed the title skip fragments for gh links update lychee and fix gh links with remap Sep 26, 2025
The future of the [JMX metrics](./jmx-metrics/README.md) component,
built on top of the
[JMX metrics](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/jmx-metrics#jmx-metric-insight)
[JMX metrics](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/jmx-metrics/README.md#jmx-metric-insight)
Copy link
Member

Choose a reason for hiding this comment

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

the original link is a bit better in this case (and isn't broken), how messy would the regex get if we wanted to accommodate it?

Copy link
Member

Choose a reason for hiding this comment

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

actually, maybe it's not better, linking directly to the README.md is nice too, let's leave it as is

Copy link
Member Author

Choose a reason for hiding this comment

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

the original link can't be checked by lychee

@trask trask added this pull request to the merge queue Sep 26, 2025
Merged via the queue into open-telemetry:main with commit 9939235 Sep 26, 2025
25 checks passed
@zeitlinger zeitlinger deleted the skip-fragmentts-for-github-links branch September 26, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants