Skip to content

Commit eeee15e

Browse files
committed
Merge branch 'main' of github.com:open-telemetry/opentelemetry-java-instrumentation into indy-rmi2
2 parents 8759c21 + 1dcbc0e commit eeee15e

File tree

128 files changed

+4332
-587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+4332
-587
lines changed

.fossa.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,12 @@ targets:
709709
- type: gradle
710710
path: ./
711711
target: ':instrumentation:mongo:mongo-async-3.3:javaagent'
712+
- type: gradle
713+
path: ./
714+
target: ':instrumentation:nats:nats-2.17:javaagent'
715+
- type: gradle
716+
path: ./
717+
target: ':instrumentation:nats:nats-2.17:library'
712718
- type: gradle
713719
path: ./
714720
target: ':instrumentation:netty:netty-3.8:javaagent'

.github/renovate.json5

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@
112112
'io.opentelemetry:{/,}**',
113113
],
114114
},
115+
{
116+
// junit 6+ requires Java 17+
117+
matchPackageNames: [
118+
'org.junit:**',
119+
'org.junit.jupiter:**',
120+
],
121+
matchUpdateTypes: [
122+
'major',
123+
],
124+
enabled: false,
125+
},
115126
{
116127
// junit-pioneer 2+ requires Java 11+
117128
matchPackageNames: [
@@ -336,6 +347,18 @@
336347
},
337348
],
338349
customManagers: [
350+
{
351+
customType: 'regex',
352+
datasourceTemplate: 'java-version',
353+
managerFilePatterns: [
354+
'.github/workflows/**'
355+
],
356+
matchStrings: [
357+
'(?<currentValue>\\d+) # renovate: datasource=java-version',
358+
],
359+
depNameTemplate: 'java',
360+
extractVersionTemplate: '^(?<version>\\d+)',
361+
},
339362
{
340363
customType: 'regex',
341364
datasourceTemplate: 'pypi',

.github/scripts/check-package-names.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ for dir in $(find instrumentation -name "*.java" | grep library/src/main/java |
2929
if [[ "$dir" == "instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/lettuce/core/protocol" ]]; then
3030
continue
3131
fi
32+
if [[ "$dir" == "instrumentation/nats/nats-2.17/library/src/main/java/io/nats/client/impl" ]]; then
33+
continue
34+
fi
3235

3336
# some common modules don't have any base version
3437
# - lettuce-common

.github/workflows/build-common.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,7 @@ jobs:
238238
- 11
239239
- 17
240240
- 21
241-
- 23
242-
- 24
243-
- 25-ea
241+
- 24 # renovate: datasource=java-version
244242
vm:
245243
- hotspot
246244
- openj9
@@ -254,11 +252,7 @@ jobs:
254252
- true
255253
exclude:
256254
- vm: ${{ inputs.skip-openj9-tests && 'openj9' || '' }}
257-
- test-java-version: 23
258-
vm: hotspot
259-
- test-java-version: 24
260-
vm: openj9
261-
- test-java-version: 25-ea
255+
- test-java-version: 24 # renovate: datasource=java-version
262256
vm: openj9
263257
fail-fast: false
264258
steps:

.github/workflows/issue-management-stale-action.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ jobs:
1313
stale:
1414
permissions:
1515
contents: read
16+
actions: write # because actions/stale deletes its old cache before saving new one
1617
issues: write # for actions/stale to close stale issues
1718
pull-requests: write # for actions/stale to close stale PRs
1819
runs-on: ubuntu-latest
1920
steps:
21+
# Action #1: Handle issues/PRs awaiting author feedback
22+
# - After 7 days inactive: Adds "stale" label + warning comment
23+
# - After 7 more days inactive: Closes
2024
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
2125
with:
26+
only-labels: "needs author feedback"
2227
days-before-stale: 7
2328
days-before-close: 7
24-
only-labels: "needs author feedback"
2529
stale-issue-label: stale
2630
stale-issue-message: >
2731
This issue has been labeled as stale due to lack of activity and needing author feedback.
@@ -30,20 +34,30 @@ jobs:
3034
stale-pr-message: >
3135
This PR has been labeled as stale due to lack of activity and needing author feedback.
3236
It will be automatically closed if there is no further activity over the next 7 days.
37+
operations-per-run: 1000
3338

39+
# Action #2: Close old enhancement requests
40+
# - Targets: Issues with "enhancement" label (but NOT "needs author feedback")
41+
# - After 365 days inactive: Adds "stale" label + closes immediately (no warning period)
42+
# - Skips: Issues with "needs author feedback" to avoid conflicts with Action #1
3443
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
3544
with:
45+
only-labels: "enhancement"
46+
# Skip issues that need author feedback (handled by the first action with 7+7 day policy)
47+
exempt-issue-labels: "needs author feedback"
48+
days-before-pr-stale: -1
49+
days-before-pr-close: -1
3650
days-before-stale: 365
3751
days-before-close: 0
3852
close-issue-label: stale
3953
close-issue-message: >
4054
Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog.
4155
Anyone who would like to work on it is still welcome to do so, and we can re-open it at that time.
42-
days-before-pr-stale: -1
43-
days-before-pr-close: -1
44-
only-labels: "enhancement"
45-
exempt-issue-labels: "stale" # so that it won't close issues labeled as stale by "needs author feedback"
56+
operations-per-run: 1000
4657

58+
# Action #3: Handle stale PRs
59+
# - After 180 days inactive: Adds "stale" label + warning comment
60+
# - After 14 more days inactive: Closes
4761
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
4862
with:
4963
days-before-issue-stale: -1
@@ -55,3 +69,4 @@ jobs:
5569
This PR has been labeled as stale due to lack of activity.
5670
It will be automatically closed if there is no further activity over the next 14 days.
5771
exempt-draft-pr: false
72+
operations-per-run: 1000

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ out/
4545
######################
4646
.vscode
4747
**/bin/
48+
.metals
4849

4950
# Others #
5051
##########

conventions/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dependencies {
5858
implementation("com.google.guava:guava:33.5.0-jre")
5959
implementation("com.gradleup.shadow:shadow-gradle-plugin:9.2.2")
6060
implementation("org.apache.httpcomponents:httpclient:4.5.14")
61-
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.2")
61+
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.2.1")
6262
implementation("org.owasp:dependency-check-gradle:12.1.6")
6363
implementation("ru.vyarus:gradle-animalsniffer-plugin:2.0.1")
6464
implementation("org.spdx:spdx-gradle-plugin:0.9.0")

custom-checks/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ dependencies {
1313

1414
otelJava {
1515
minJavaVersionSupported.set(JavaVersion.VERSION_17)
16-
// OtelInternalJavadocTest fails with 25-ea
17-
maxJavaVersionForTests.set(JavaVersion.VERSION_24)
1816
}
1917

2018
// We cannot use "--release" javac option here because that will forbid exporting com.sun.tools package.

custom-checks/src/main/java/io/opentelemetry/javaagent/customchecks/OtelInternalJavadoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ private static String getJavadoc(VisitorState state) {
8383
if (docCommentTree == null) {
8484
return null;
8585
}
86-
return docCommentTree.toString().replace("\n", "");
86+
return docCommentTree.toString().replace("\n", " ").replace(" * ", " ").replaceAll("\\s+", " ");
8787
}
8888
}

docs/contributing/documenting-instrumentation.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ semantic_conventions:
8888
- HTTP_CLIENT_SPANS
8989
- DATABASE_CLIENT_SPANS
9090
- JVM_RUNTIME_METRICS
91+
features:
92+
- HTTP_ROUTE
93+
- CONTEXT_PROPAGATION
9194
disabled_by_default: true
9295
classification: library
9396
library_link: https://github.com/...
@@ -174,6 +177,20 @@ List of possible options:
174177
* [GENAI_CLIENT_SPANS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/gen-ai-spans.md)
175178
* [GENAI_CLIENT_METRICS](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/gen-ai-metrics.md#generative-ai-client-metrics)
176179

180+
### Features (optional)
181+
182+
As a way to help further categorize instrumentations, you can add a `features` field with a list of
183+
the relevant functionality descriptions.
184+
185+
List of possible options:
186+
187+
* `HTTP_ROUTE`: Instrumentation that enriches HTTP spans with route information
188+
* `EXPERIMENTAL_ONLY`: Instrumentation that is experimental and may not be stable
189+
* `CONTEXT_PROPAGATION`: Instrumentation that provides context propagation capabilities
190+
* `AUTO_INSTRUMENTATION_SHIM`: Instrumentation that adapts or bridges instrumentation from upstream libraries or frameworks
191+
* `CONTROLLER_SPANS`: Instrumentation that generates controller-level spans
192+
* `VIEW_SPANS`: Instrumentation that generates view-level spans
193+
177194
### Library Link
178195

179196
For library instrumentations, include a `library_link` field with a URL to the library or framework's

0 commit comments

Comments
 (0)