Skip to content

Commit b08d6ba

Browse files
authored
Merge branch 'main' into mdcli2
2 parents 93cfe46 + 9c01934 commit b08d6ba

File tree

18 files changed

+253
-80
lines changed

18 files changed

+253
-80
lines changed

.github/config/lychee.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Lychee configuration file
2-
# See https://lychee.cli.rs/config/
2+
# See https://lychee.cli.rs/guides/config/
33

44
timeout = 30
55
retry_wait_time = 5

.github/workflows/reusable-link-check.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ jobs:
1616

1717
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
1818

19-
- name: Link check - relative links (all files)
19+
- name: Link check for pull requests
2020
if: github.event_name == 'pull_request'
2121
env:
2222
GITHUB_TOKEN: ${{ github.token }}
23-
run: mise run lint:local-links
23+
run: |
24+
mise run lint:local-links
25+
mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event pull_request
2426
25-
- name: Link check (modified files only)
27+
- name: Link check for pushes and scheduled workflows
28+
if: github.event_name != 'pull_request'
2629
env:
2730
GITHUB_TOKEN: ${{ github.token }}
28-
run: mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event ${{ github.event_name }}
31+
run: mise run lint:links

docs/contributing/documenting-instrumentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ List of possible options:
182182
* [RPC_SERVER_SPANS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/rpc/rpc-spans.md#rpc-server-span)
183183
* [RPC_SERVER_METRICS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/rpc/rpc-metrics.md#rpc-server)
184184
* [MESSAGING_SPANS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/messaging/messaging-spans.md)
185-
* [DATABASE_CLIENT_SPANS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md)
186-
* [DATABASE_CLIENT_METRICS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-metrics.md)
187-
* [DATABASE_POOL_METRICS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-metrics.md)
185+
* [DATABASE_CLIENT_SPANS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-spans.md)
186+
* [DATABASE_CLIENT_METRICS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-metrics.md)
187+
* [DATABASE_POOL_METRICS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-metrics.md)
188188
* [JVM_RUNTIME_METRICS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/runtime/jvm-metrics.md)
189189
* [GRAPHQL_SERVER_SPANS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/graphql/graphql-spans.md)
190190
* [FAAS_SERVER_SPANS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/faas/faas-spans.md)

docs/supported-libraries.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ These are the supported libraries and frameworks:
182182

183183
**[6]** Database Client Metrics are available for those who opt-in to [semantic convention stability](https://opentelemetry.io/docs/specs/semconv/non-normative/db-migration/).
184184

185-
[Elasticsearch Client Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/elasticsearch.md
185+
[Elasticsearch Client Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/elasticsearch.md
186186
[HTTP Server Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server
187187
[HTTP Client Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-client-span
188188
[HTTP Server Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-metrics.md#http-server
@@ -192,9 +192,9 @@ These are the supported libraries and frameworks:
192192
[RPC Server Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/rpc/rpc-metrics.md#rpc-server
193193
[RPC Client Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/rpc/rpc-metrics.md#rpc-client
194194
[Messaging Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/messaging/messaging-spans.md
195-
[Database Client Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md
196-
[Database Client Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-metrics.md
197-
[Database Pool Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-metrics.md
195+
[Database Client Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-spans.md
196+
[Database Client Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-metrics.md
197+
[Database Pool Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-metrics.md
198198
[JVM Runtime Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/runtime/jvm-metrics.md
199199
[System Metrics]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/system/system-metrics.md
200200
[GraphQL Server Spans]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/graphql/graphql-spans.md

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* Extractor of <a
30-
* href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md">database
30+
* href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-spans.md">database
3131
* client attributes</a>.
3232
*
3333
* <p>This class delegates to a type-specific {@link DbClientAttributesGetter} for individual

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbConnectionPoolMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/**
2424
* A helper class that models the <a
25-
* href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-metrics.md#connection-pools">database
25+
* href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-metrics.md#connection-pools">database
2626
* client connection pool metrics semantic conventions</a>.
2727
*/
2828
public final class DbConnectionPoolMetrics {

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* Extractor of <a
30-
* href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md">database
30+
* href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-spans.md">database
3131
* attributes</a>. This class is designed with SQL (or SQL-like) database clients in mind.
3232
*
3333
* <p>It sets the same set of attributes as {@link DbClientAttributesExtractor} plus an additional

instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-common/testing/src/main/java/io/opentelemetry/instrumentation/jaxrs/v2_0/test/Resource.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@
55

66
package io.opentelemetry.instrumentation.jaxrs.v2_0.test;
77

8+
import static javax.ws.rs.core.MediaType.TEXT_PLAIN;
9+
810
import javax.ws.rs.POST;
911
import javax.ws.rs.Path;
1012
import javax.ws.rs.PathParam;
13+
import javax.ws.rs.Produces;
1114

1215
@Path("/ignored")
1316
public interface Resource {
1417
@Path("ignored")
18+
@Produces(TEXT_PLAIN)
1519
String hello(String name);
1620

1721
@Path("/test")
1822
interface SubResource extends Cloneable, Resource {
1923
@Override
2024
@POST
2125
@Path("/hello/{name}")
26+
@Produces(TEXT_PLAIN)
2227
String hello(@PathParam("name") String name);
2328
}
2429

@@ -42,12 +47,14 @@ class Test3 implements SubResource {
4247
@Override
4348
@POST
4449
@Path("/hi/{name}")
50+
@Produces(TEXT_PLAIN)
4551
public String hello(@PathParam("name") String name) {
4652
return "Test3 " + name + "!";
4753
}
4854

4955
@POST
5056
@Path("/nested")
57+
@Produces(TEXT_PLAIN)
5158
public String nested() {
5259
return hello("nested");
5360
}

instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-resteasy-3.1/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ muzzle {
3434
}
3535

3636
dependencies {
37-
compileOnly("javax.ws.rs:javax.ws.rs-api:2.0")
37+
library("javax.ws.rs:javax.ws.rs-api:2.0")
3838
library("org.jboss.resteasy:resteasy-jaxrs:3.1.0.Final")
3939

4040
implementation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-common:javaagent"))

instrumentation/jaxrs/jaxrs-3.0/jaxrs-3.0-common/testing/src/main/java/io/opentelemetry/instrumentation/jaxrs/v3_0/test/Resource.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@
55

66
package io.opentelemetry.instrumentation.jaxrs.v3_0.test;
77

8+
import static jakarta.ws.rs.core.MediaType.TEXT_PLAIN;
9+
810
import jakarta.ws.rs.POST;
911
import jakarta.ws.rs.Path;
1012
import jakarta.ws.rs.PathParam;
13+
import jakarta.ws.rs.Produces;
1114

1215
@Path("/ignored")
1316
public interface Resource {
1417
@Path("ignored")
18+
@Produces(TEXT_PLAIN)
1519
String hello(String name);
1620

1721
@Path("/test")
1822
interface SubResource extends Cloneable, Resource {
1923
@Override
2024
@POST
2125
@Path("/hello/{name}")
26+
@Produces(TEXT_PLAIN)
2227
String hello(@PathParam("name") String name);
2328
}
2429

@@ -42,12 +47,14 @@ class Test3 implements SubResource {
4247
@Override
4348
@POST
4449
@Path("/hi/{name}")
50+
@Produces(TEXT_PLAIN)
4551
public String hello(@PathParam("name") String name) {
4652
return "Test3 " + name + "!";
4753
}
4854

4955
@POST
5056
@Path("/nested")
57+
@Produces(TEXT_PLAIN)
5158
public String nested() {
5259
return hello("nested");
5360
}

0 commit comments

Comments
 (0)