Skip to content

Commit f7fe951

Browse files
committed
Merge branch 'main' into integration-test-hadoop
2 parents 4115c48 + 2d14db9 commit f7fe951

File tree

81 files changed

+2961
-1659
lines changed

Some content is hidden

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

81 files changed

+2961
-1659
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ body:
1717
- jfr-connection
1818
- jfr-events
1919
- jmx-metrics
20+
- jmx-scraper
2021
- maven-extension
2122
- micrometer-meter-provider
2223
- noop-api

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ body:
1717
- jfr-connection
1818
- jfr-events
1919
- jmx-metrics
20+
- jmx-scraper
2021
- maven-extension
2122
- micrometer-meter-provider
2223
- noop-api

.github/renovate.json5

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
"packageRules": [
77
{
88
"matchPackageNames": [
9-
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha",
10-
"io.opentelemetry.semconv:opentelemetry-semconv",
11-
"io.opentelemetry.semconv:opentelemetry-semconv-incubating",
12-
"io.opentelemetry.proto:opentelemetry-proto"
9+
"io.opentelemetry:**",
10+
"io.opentelemetry.instrumentation:**",
11+
"io.opentelemetry.semconv:**",
12+
"io.opentelemetry.proto:**"
1313
],
1414
// Renovate's default behavior is only to update from unstable -> unstable if it's for the
1515
// major.minor.patch, under the assumption that you would want to update to the stable version
1616
// of that release instead of the unstable version for a future release
17-
// (TODO remove once the artifacts above release stable versions)
1817
"ignoreUnstable": false
1918
},
2019
{
@@ -25,10 +24,6 @@
2524
"matchPackagePrefixes": ["io.micrometer:"],
2625
"groupName": "micrometer packages"
2726
},
28-
{
29-
"matchPackagePrefixes": ["com.gradle.enterprise"],
30-
"groupName": "gradle enterprise packages"
31-
},
3227
{
3328
// prevent 3.0.1u2 -> 3.0.1
3429
"matchPackageNames": ["com.google.code.findbugs:annotations"],

.github/scripts/get-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash -e
22

3-
grep -Po "val stableVersion = \"\K[0-9]+.[0-9]+.[0-9]+" version.gradle.kts
3+
grep "val stableVersion = " version.gradle.kts | grep -Eo "[0-9]+.[0-9]+.[0-9]+"

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
cache-read-only: ${{ github.event_name == 'pull_request' }}
3131
- name: Gradle build and test
3232
run: ./gradlew build -x test
33-
env:
34-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
3533

3634
test:
3735
name: test (${{ matrix.test-java-version }})
@@ -71,8 +69,6 @@ jobs:
7169
-PtestJavaVersion=${{ matrix.test-java-version }}
7270
-Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }}
7371
-Porg.gradle.java.installations.auto-download=false
74-
env:
75-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
7672
7773
integration-test:
7874
runs-on: ubuntu-latest
@@ -89,10 +85,9 @@ jobs:
8985
uses: gradle/actions/setup-gradle@v4
9086
with:
9187
cache-read-only: ${{ github.event_name == 'pull_request' }}
88+
9289
- name: Integration test
9390
run: ./gradlew integrationTest
94-
env:
95-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
9691

9792
- name: Save integration test results
9893
uses: actions/upload-artifact@v4

CHANGELOG.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,57 @@
22

33
## Unreleased
44

5+
## Version 1.42.0 (2024-12-13)
6+
7+
### AWS X-Ray SDK support
8+
9+
- Update semconv dependency version
10+
([#1585](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1585))
11+
12+
### Baggage processor
13+
14+
- [baggage-processor] Add BaggageLogRecordProcessor
15+
([#1576](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1576))
16+
17+
### Disk buffering
18+
19+
- Deserialization validation
20+
([#1571](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1571))
21+
22+
### JMX metrics
23+
24+
- Align HBase metric units to semconv
25+
([#1538](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1538))
26+
- Align Cassandra metric units to semconv
27+
([#1591](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1591))
28+
- Align Tomcat metric units to semconv
29+
([#1589](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1589))
30+
- Align JVM units to semconv
31+
([#1593](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1593))
32+
33+
### JMX scraper - New 🌟
34+
35+
The future of the [JMX metrics](./jmx-metrics/README.md) component,
36+
built on top of the
37+
[JMX metrics](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/jmx-metrics/javaagent#jmx-metric-insight)
38+
component from the opentelemetry-java-instrumentation repository.
39+
40+
### Maven extension
41+
42+
- Load OTel SDK config from environment variables and system properties
43+
([#1434](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1434))
44+
- Workaround `NoClassDefFoundError` in `@PreDestroy` waiting for MNG-7056
45+
([#1431](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1431))
46+
547
## Version 1.41.0 (2024-11-21)
648

49+
### JMX metrics
50+
51+
- Align ActiveMQ metric units to semconv
52+
([#1553](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1553))
53+
- Align Jetty metric units to semconv
54+
([#1517](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1517))
55+
756
### Inferred spans
857

958
- Allow customization of parent-override behavior
@@ -107,7 +156,9 @@
107156
### Inferred spans - New 🌟
108157

109158
An OpenTelemetry extension for generating spans via profiling instead of instrumentation.
110-
This extension enhances traces by running [async-profiler](https://github.com/async-profiler/async-profiler) in wall-clock profiling mode
159+
This extension enhances traces by
160+
running [async-profiler](https://github.com/async-profiler/async-profiler) in wall-clock profiling
161+
mode
111162
whenever there is an active sampled OpenTelemetry span.
112163

113164
The resulting profiling data is analyzed afterward and spans are "inferred".
@@ -171,7 +222,7 @@ This module provides a SpanProcessor that stamps baggage onto spans as attribute
171222
### JMX metrics
172223

173224
- Add support for newly named Tomcat MBean with Spring
174-
([#1269](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1269))
225+
([#1269](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/1269))
175226

176227
### Span stack traces - New 🌟
177228

@@ -239,7 +290,8 @@ This module provides GCP resource detectors for OpenTelemetry.
239290

240291
### Kafka exporter - New 🌟
241292

242-
This module contains `KafkaSpanExporter`, which is an implementation of the `io.opentelemetry.sdk.trace.export.SpanExporter` interface.
293+
This module contains `KafkaSpanExporter`, which is an implementation of the
294+
`io.opentelemetry.sdk.trace.export.SpanExporter` interface.
243295

244296
`KafkaSpanExporter` can be used for sending `SpanData` to a Kafka topic.
245297

@@ -329,7 +381,7 @@ which can be sent later on demand.
329381

330382
- Links based sampler
331383
([#813](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/813),
332-
[#903](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/903))
384+
[#903](https://github.com/open-telemetry/opentelemetry-java-contrib/pull/903))
333385

334386
## Version 1.26.0 (2023-05-17)
335387

aws-resources/src/test/java/io/opentelemetry/contrib/aws/resource/BeanstalkResourceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import static io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CLOUD_PROVIDER;
1212
import static io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes.SERVICE_INSTANCE_ID;
1313
import static io.opentelemetry.semconv.incubating.ServiceIncubatingAttributes.SERVICE_NAMESPACE;
14+
import static java.nio.charset.StandardCharsets.UTF_8;
1415
import static org.assertj.core.api.Assertions.entry;
1516

16-
import com.google.common.base.Charsets;
1717
import com.google.common.io.Files;
1818
import io.opentelemetry.api.common.Attributes;
1919
import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider;
@@ -33,7 +33,7 @@ void testCreateAttributes(@TempDir File tempFolder) throws IOException {
3333
String content =
3434
"{\"noise\": \"noise\", \"deployment_id\":4,\""
3535
+ "version_label\":\"2\",\"environment_name\":\"HttpSubscriber-env\"}";
36-
Files.write(content.getBytes(Charsets.UTF_8), file);
36+
Files.write(content.getBytes(UTF_8), file);
3737
Resource resource = BeanstalkResource.buildResource(file.getPath());
3838
Attributes attributes = resource.getAttributes();
3939
assertThat(attributes)
@@ -59,7 +59,7 @@ void testBadConfigFile(@TempDir File tempFolder) throws IOException {
5959
String content =
6060
"\"deployment_id\":4,\"version_label\":\"2\",\""
6161
+ "environment_name\":\"HttpSubscriber-env\"}";
62-
Files.write(content.getBytes(Charsets.UTF_8), file);
62+
Files.write(content.getBytes(UTF_8), file);
6363
Attributes attributes = BeanstalkResource.buildResource(file.getPath()).getAttributes();
6464
assertThat(attributes).isEmpty();
6565
}

aws-resources/src/test/java/io/opentelemetry/contrib/aws/resource/DockerHelperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
package io.opentelemetry.contrib.aws.resource;
77

8+
import static java.nio.charset.StandardCharsets.UTF_8;
89
import static org.assertj.core.api.Assertions.assertThat;
910

10-
import com.google.common.base.Charsets;
1111
import com.google.common.io.Files;
1212
import java.io.File;
1313
import java.io.IOException;
@@ -26,7 +26,7 @@ void testCgroupFileMissing() {
2626
void testContainerIdMissing(@TempDir File tempFolder) throws IOException {
2727
File file = new File(tempFolder, "no_container_id");
2828
String content = "13:pids:/\n" + "12:hugetlb:/\n" + "11:net_prio:/";
29-
Files.write(content.getBytes(Charsets.UTF_8), file);
29+
Files.write(content.getBytes(UTF_8), file);
3030

3131
DockerHelper dockerHelper = new DockerHelper(file.getPath());
3232
assertThat(dockerHelper.getContainerId()).isEmpty();
@@ -37,7 +37,7 @@ void testGetContainerId(@TempDir File tempFolder) throws IOException {
3737
File file = new File(tempFolder, "cgroup");
3838
String expected = "386a1920640799b5bf5a39bd94e489e5159a88677d96ca822ce7c433ff350163";
3939
String content = "dummy\n11:devices:/ecs/bbc36dd0-5ee0-4007-ba96-c590e0b278d2/" + expected;
40-
Files.write(content.getBytes(Charsets.UTF_8), file);
40+
Files.write(content.getBytes(UTF_8), file);
4141

4242
DockerHelper dockerHelper = new DockerHelper(file.getPath());
4343
assertThat(dockerHelper.getContainerId()).isEqualTo(expected);

aws-resources/src/test/java/io/opentelemetry/contrib/aws/resource/EksResourceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
import static io.opentelemetry.semconv.incubating.CloudIncubatingAttributes.CLOUD_PROVIDER;
1414
import static io.opentelemetry.semconv.incubating.ContainerIncubatingAttributes.CONTAINER_ID;
1515
import static io.opentelemetry.semconv.incubating.K8sIncubatingAttributes.K8S_CLUSTER_NAME;
16+
import static java.nio.charset.StandardCharsets.UTF_8;
1617
import static org.assertj.core.api.Assertions.entry;
1718
import static org.mockito.ArgumentMatchers.any;
1819
import static org.mockito.Mockito.when;
1920

20-
import com.google.common.base.Charsets;
2121
import com.google.common.io.Files;
2222
import io.opentelemetry.api.common.Attributes;
2323
import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider;
@@ -44,10 +44,10 @@ public class EksResourceTest {
4444
void testEks(@TempDir File tempFolder) throws IOException {
4545
File mockK8sTokenFile = new File(tempFolder, "k8sToken");
4646
String token = "token123";
47-
Files.write(token.getBytes(Charsets.UTF_8), mockK8sTokenFile);
47+
Files.write(token.getBytes(UTF_8), mockK8sTokenFile);
4848
File mockK8sKeystoreFile = new File(tempFolder, "k8sCert");
4949
String truststore = "truststore123";
50-
Files.write(truststore.getBytes(Charsets.UTF_8), mockK8sKeystoreFile);
50+
Files.write(truststore.getBytes(UTF_8), mockK8sKeystoreFile);
5151

5252
when(httpClient.fetchString(any(), Mockito.eq(K8S_SVC_URL + AUTH_CONFIGMAP_PATH), any(), any()))
5353
.thenReturn("not empty");

aws-xray/build.gradle.kts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ dependencies {
1313
compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
1414

1515
implementation("com.squareup.okhttp3:okhttp")
16-
implementation("io.opentelemetry:opentelemetry-semconv")
16+
implementation("io.opentelemetry.semconv:opentelemetry-semconv")
17+
implementation("io.opentelemetry.semconv:opentelemetry-semconv-incubating")
1718

1819
annotationProcessor("com.google.auto.service:auto-service")
1920
testImplementation("com.google.auto.service:auto-service")
@@ -45,10 +46,3 @@ testing {
4546
}
4647
}
4748
}
48-
49-
configurations.all {
50-
resolutionStrategy {
51-
// TODO this module still needs to be updated to the latest semconv
52-
force("io.opentelemetry:opentelemetry-semconv:1.28.0-alpha")
53-
}
54-
}

0 commit comments

Comments
 (0)