Skip to content

Commit 131b37a

Browse files
authored
Merge branch 'main' into test-latest-deps-helper
2 parents 372e058 + 95f1757 commit 131b37a

52 files changed

Lines changed: 199 additions & 637 deletions

File tree

Some content is hidden

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

.github/repository-settings.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ Secrets:
2424

2525
## Secrets and variables > Actions
2626

27-
### Repository secrets
28-
29-
- `FLAKY_TEST_REPORTER_ACCESS_KEY` - owned by [@laurit](https://github.com/laurit)
30-
3127
### Organization secrets
3228

3329
- `DEVELOCITY_ACCESS_KEY` (scoped only to Java repos)

.github/workflows/build-common.yml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ on:
1818
secrets:
1919
DEVELOCITY_ACCESS_KEY:
2020
required: false
21-
FLAKY_TEST_REPORTER_ACCESS_KEY:
22-
required: false
2321

2422
permissions:
2523
contents: read
@@ -338,48 +336,6 @@ jobs:
338336
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
339337
run: cat build-scan.txt
340338

341-
- name: Get current job url
342-
id: jobs
343-
if: ${{ !cancelled() }}
344-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
345-
env:
346-
matrix: ${{ toJson(matrix) }}
347-
with:
348-
result-encoding: string
349-
script: |
350-
try {
351-
const matrix = JSON.parse(process.env.matrix);
352-
const job_name = `common / test${ matrix['test-partition'] } (${ matrix['test-java-version'] }, ${ matrix.vm }, indy ${ matrix['test-indy'] })`;
353-
const workflow_jobs_nested = await github.paginate(
354-
github.rest.actions.listJobsForWorkflowRun,
355-
{
356-
owner: context.repo.owner,
357-
repo: context.repo.repo,
358-
run_id: context.runId,
359-
per_page: 100
360-
},
361-
(response) => {
362-
return response.data;
363-
},
364-
);
365-
const job = workflow_jobs_nested.flat().find((job) => job.name === job_name);
366-
return job ? job.html_url : '';
367-
} catch (e) {
368-
core.warning(`Failed to get current job url: ${e}`);
369-
return '';
370-
}
371-
372-
- name: Flaky test report
373-
if: ${{ !cancelled() }}
374-
env:
375-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
376-
JOB_URL: ${{ steps.jobs.outputs.result }}
377-
run: |
378-
if [ -s build-scan.txt ]; then
379-
export BUILD_SCAN_URL=$(cat build-scan.txt)
380-
fi
381-
./gradlew :test-report:reportFlakyTests
382-
383339
- name: Upload deadlock detector artifacts if any
384340
if: failure()
385341
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

.github/workflows/build-daily-no-build-cache.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ jobs:
1616
no-build-cache: true
1717
secrets:
1818
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
19-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
2019

2120
test-latest-deps:
2221
uses: ./.github/workflows/reusable-test-latest-deps.yml
2322
with:
2423
no-build-cache: true
2524
secrets:
2625
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
27-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
2826

2927
# muzzle is not included here because it doesn't use gradle cache anyway and so is already covered
3028
# by the normal daily build

.github/workflows/build-daily.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ jobs:
1414
uses: ./.github/workflows/build-common.yml
1515
secrets:
1616
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
17-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
1817

1918
test-latest-deps:
2019
uses: ./.github/workflows/reusable-test-latest-deps.yml
2120
secrets:
2221
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
23-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
2422

2523
muzzle:
2624
uses: ./.github/workflows/reusable-muzzle.yml

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
uses: ./.github/workflows/build-common.yml
1616
secrets:
1717
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
18-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
1918

2019
test-latest-deps:
2120
# release branches are excluded
@@ -25,7 +24,6 @@ jobs:
2524
uses: ./.github/workflows/reusable-test-latest-deps.yml
2625
secrets:
2726
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
28-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
2927

3028
muzzle:
3129
# release branches are excluded

.github/workflows/reusable-test-latest-deps.yml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
secrets:
1313
DEVELOCITY_ACCESS_KEY:
1414
required: false
15-
FLAKY_TEST_REPORTER_ACCESS_KEY:
16-
required: false
1715

1816
permissions:
1917
contents: read
@@ -88,47 +86,6 @@ jobs:
8886
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
8987
run: cat build-scan.txt
9088

91-
- name: Get current job url
92-
id: jobs
93-
if: ${{ !cancelled() }}
94-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
95-
env:
96-
matrix: ${{ toJson(matrix) }}
97-
with:
98-
result-encoding: string
99-
script: |
100-
try {
101-
const job_name = `test-latest-deps / testLatestDeps${ matrix['test-partition'] }`;
102-
const workflow_jobs_nested = await github.paginate(
103-
github.rest.actions.listJobsForWorkflowRun,
104-
{
105-
owner: context.repo.owner,
106-
repo: context.repo.repo,
107-
run_id: context.runId,
108-
per_page: 100
109-
},
110-
(response) => {
111-
return response.data;
112-
},
113-
);
114-
const job = workflow_jobs_nested.flat().find((job) => job.name === job_name);
115-
return job ? job.html_url : '';
116-
} catch (e) {
117-
core.warning(`Failed to get current job url: ${e}`);
118-
return '';
119-
}
120-
121-
- name: Flaky test report
122-
if: ${{ !cancelled() }}
123-
env:
124-
FLAKY_TEST_REPORTER_ACCESS_KEY: ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
125-
JOB_URL: ${{ steps.jobs.outputs.result }}
126-
run: |
127-
if [ -s build-scan.txt ]; then
128-
export BUILD_SCAN_URL=$(cat build-scan.txt)
129-
fi
130-
./gradlew :test-report:reportFlakyTests
131-
13289
- name: Upload deadlock detector artifacts if any
13390
if: failure()
13491
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

docs/instrumentation-list.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,15 +1798,18 @@ libraries:
17981798
- com.ning:async-http-client:[1.9.0,)
17991799
configurations:
18001800
- name: otel.instrumentation.http.known-methods
1801+
declarative_name: java.common.http.known_methods
18011802
description: |
18021803
Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.
18031804
type: list
18041805
default: CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE
18051806
- name: otel.instrumentation.http.client.capture-request-headers
1807+
declarative_name: general.http.client.request_captured_headers
18061808
description: List of HTTP request headers to capture in HTTP client telemetry.
18071809
type: list
18081810
default: ''
18091811
- name: otel.instrumentation.http.client.capture-response-headers
1812+
declarative_name: general.http.client.response_captured_headers
18101813
description: List of HTTP response headers to capture in HTTP client telemetry.
18111814
type: list
18121815
default: ''
@@ -1816,11 +1819,13 @@ libraries:
18161819
type: map
18171820
default: ''
18181821
- name: otel.instrumentation.http.client.emit-experimental-telemetry
1822+
declarative_name: java.common.http.client.emit_experimental_telemetry/development
18191823
description: |
18201824
Enable the capture of experimental HTTP client telemetry. Adds the `http.request.body.size` and `http.response.body.size` attributes to spans, and records `http.client.request.size` and `http.client.response.size` metrics.
18211825
type: boolean
18221826
default: false
18231827
- name: otel.instrumentation.sanitization.url.experimental.sensitive-query-parameters
1828+
declarative_name: general.sanitization.url.sensitive_query_parameters/development
18241829
description: List of URL query parameter names whose values are redacted in URL
18251830
attributes. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.
18261831
type: list
@@ -1913,15 +1918,18 @@ libraries:
19131918
- org.asynchttpclient:async-http-client:[2.0.0,)
19141919
configurations:
19151920
- name: otel.instrumentation.http.known-methods
1921+
declarative_name: java.common.http.known_methods
19161922
description: |
19171923
Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.
19181924
type: list
19191925
default: CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE
19201926
- name: otel.instrumentation.http.client.capture-request-headers
1927+
declarative_name: general.http.client.request_captured_headers
19211928
description: List of HTTP request headers to capture in HTTP client telemetry.
19221929
type: list
19231930
default: ''
19241931
- name: otel.instrumentation.http.client.capture-response-headers
1932+
declarative_name: general.http.client.response_captured_headers
19251933
description: List of HTTP response headers to capture in HTTP client telemetry.
19261934
type: list
19271935
default: ''
@@ -1931,11 +1939,13 @@ libraries:
19311939
type: map
19321940
default: ''
19331941
- name: otel.instrumentation.http.client.emit-experimental-telemetry
1942+
declarative_name: java.common.http.client.emit_experimental_telemetry/development
19341943
description: |
19351944
Enable the capture of experimental HTTP client telemetry. Adds the `http.request.body.size` and `http.response.body.size` attributes to spans, and records `http.client.request.size` and `http.client.response.size` metrics.
19361945
type: boolean
19371946
default: false
19381947
- name: otel.instrumentation.sanitization.url.experimental.sensitive-query-parameters
1948+
declarative_name: general.sanitization.url.sensitive_query_parameters/development
19391949
description: List of URL query parameter names whose values are redacted in URL
19401950
attributes. See https://opentelemetry.io/docs/specs/semconv/http/http-spans.
19411951
type: list
@@ -2058,6 +2068,7 @@ libraries:
20582068
- com.amazonaws:aws-lambda-java-core:[1.0.0,)
20592069
configurations:
20602070
- name: otel.instrumentation.aws-lambda.flush-timeout
2071+
declarative_name: java.aws_lambda.flush_timeout
20612072
description: Flush timeout in milliseconds.
20622073
type: int
20632074
default: 10000
@@ -2085,10 +2096,12 @@ libraries:
20852096
- com.amazonaws:aws-lambda-java-core:[1.0.0,)
20862097
configurations:
20872098
- name: otel.instrumentation.aws-lambda.flush-timeout
2099+
declarative_name: java.aws_lambda.flush_timeout
20882100
description: Flush timeout in milliseconds.
20892101
type: int
20902102
default: 10000
20912103
- name: otel.instrumentation.http.known-methods
2104+
declarative_name: java.common.http.known_methods
20922105
description: |
20932106
Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`.
20942107
type: list
@@ -2130,6 +2143,7 @@ libraries:
21302143
has_standalone_library: true
21312144
configurations:
21322145
- name: otel.instrumentation.aws-lambda.flush-timeout
2146+
declarative_name: java.aws_lambda.flush_timeout
21332147
description: Flush timeout in milliseconds.
21342148
type: int
21352149
default: 10000
@@ -3172,6 +3186,7 @@ libraries:
31723186
- com.datastax.oss:java-driver-core:[4.0,4.4)
31733187
configurations:
31743188
- name: otel.instrumentation.common.db.query-sanitization.enabled
3189+
declarative_name: java.common.db.query_sanitization.enabled
31753190
description: Enables query sanitization for database queries.
31763191
type: boolean
31773192
default: true
@@ -4320,7 +4335,7 @@ libraries:
43204335
- name: otel.instrumentation.elasticsearch.experimental-span-attributes
43214336
declarative_name: java.elasticsearch.experimental_span_attributes/development
43224337
description: |
4323-
Enable the capture of `elasticsearch.action`, `elasticsearch.id`, `elasticsearch.request`, `elasticsearch.request.indices`, `elasticsearch.request.search.types`, `elasticsearch.request.write.type`, `elasticsearch.request.write.version`, `elasticsearch.response.status`, `elasticsearch.shard.broadcast.failed`, `elasticsearch.shard.broadcast.successful`, `elasticsearch.shard.broadcast.total`, `elasticsearch.shard.replication.failed`, `elasticsearch.shard.replication.successful`, `elasticsearch.shard.replication.total`, `elasticsearch.type`, and `elasticsearch.version` experimental span attributes.
4338+
Enable the capture of `elasticsearch.action`, `elasticsearch.id`, `elasticsearch.request`, `elasticsearch.request.indices`, `elasticsearch.request.search.types`, `elasticsearch.request.write.routing`, `elasticsearch.request.write.type`, `elasticsearch.request.write.version`, `elasticsearch.response.status`, `elasticsearch.shard.broadcast.failed`, `elasticsearch.shard.broadcast.successful`, `elasticsearch.shard.broadcast.total`, `elasticsearch.shard.replication.failed`, `elasticsearch.shard.replication.successful`, `elasticsearch.shard.replication.total`, `elasticsearch.type`, and `elasticsearch.version` experimental span attributes.
43244339
type: boolean
43254340
default: false
43264341
telemetry:
@@ -4645,6 +4660,7 @@ libraries:
46454660
- org.apache.geode:geode-core:[1.4.0,)
46464661
configurations:
46474662
- name: otel.instrumentation.common.db.query-sanitization.enabled
4663+
declarative_name: java.common.db.query_sanitization.enabled
46484664
description: Enables query sanitization for database queries.
46494665
type: boolean
46504666
default: true
@@ -5622,6 +5638,7 @@ libraries:
56225638
- org.hibernate:hibernate-core:[6.0.0.Final,)
56235639
configurations:
56245640
- name: otel.instrumentation.hibernate.experimental-span-attributes
5641+
declarative_name: java.hibernate.experimental_span_attributes/development
56255642
description: Enables the experimental `hibernate.session_id` span attribute.
56265643
type: boolean
56275644
default: false
@@ -5933,6 +5950,7 @@ libraries:
59335950
- com.netflix.hystrix:hystrix-core:[1.4.0,)
59345951
configurations:
59355952
- name: otel.instrumentation.hystrix.experimental-span-attributes
5953+
declarative_name: java.hystrix.experimental_span_attributes/development
59365954
description: Enables capturing the experimental `hystrix.command`, `hystrix.circuit_open`
59375955
and `hystrix.group` span attributes.
59385956
type: boolean
@@ -6060,6 +6078,7 @@ libraries:
60606078
- org.influxdb:influxdb-java:[2.4,)
60616079
configurations:
60626080
- name: otel.instrumentation.common.db.query-sanitization.enabled
6081+
declarative_name: java.common.db.query_sanitization.enabled
60636082
description: Enables or disables query sanitization for database queries.
60646083
type: boolean
60656084
default: true
@@ -13602,8 +13621,6 @@ libraries:
1360213621
attributes:
1360313622
- name: jvm.thread.daemon
1360413623
type: BOOLEAN
13605-
- name: jvm.thread.state
13606-
type: STRING
1360713624
- when: default
1360813625
metrics:
1360913626
- name: jvm.buffer.count

instrumentation/grpc-1.6/javaagent/build.gradle.kts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ tasks {
5353
testClassesDirs = sourceSets.test.get().output.classesDirs
5454
classpath = sourceSets.test.get().runtimeClasspath
5555

56+
// exclude our grpc library instrumentation, the ContextStorageOverride contained within it
57+
// breaks the tests
58+
classpath = classpath.filter {
59+
!it.absolutePath.contains("opentelemetry-grpc-1.6")
60+
}
61+
5662
systemProperty("metadataConfig", "otel.instrumentation.grpc.experimental-span-attributes=true")
5763
jvmArgs("-Dotel.instrumentation.grpc.experimental-span-attributes=true")
5864
}
@@ -61,6 +67,12 @@ tasks {
6167
testClassesDirs = sourceSets.test.get().output.classesDirs
6268
classpath = sourceSets.test.get().runtimeClasspath
6369

70+
// exclude our grpc library instrumentation, the ContextStorageOverride contained within it
71+
// breaks the tests
72+
classpath = classpath.filter {
73+
!it.absolutePath.contains("opentelemetry-grpc-1.6")
74+
}
75+
6476
jvmArgs("-Dotel.semconv-stability.opt-in=rpc")
6577
systemProperty("metadataConfig", "otel.semconv-stability.opt-in=rpc")
6678
}
@@ -69,6 +81,12 @@ tasks {
6981
testClassesDirs = sourceSets.test.get().output.classesDirs
7082
classpath = sourceSets.test.get().runtimeClasspath
7183

84+
// exclude our grpc library instrumentation, the ContextStorageOverride contained within it
85+
// breaks the tests
86+
classpath = classpath.filter {
87+
!it.absolutePath.contains("opentelemetry-grpc-1.6")
88+
}
89+
7290
jvmArgs("-Dotel.semconv-stability.opt-in=rpc/dup")
7391
systemProperty("metadataConfig", "otel.semconv-stability.opt-in=rpc/dup")
7492
}

0 commit comments

Comments
 (0)