Skip to content

Commit f690101

Browse files
committed
Merge branch 'main' of https://github.com/open-telemetry/opentelemetry-java into experimental-extended-attributes
2 parents ff97464 + 9cb6365 commit f690101

File tree

141 files changed

+2096
-578
lines changed

Some content is hidden

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

141 files changed

+2096
-578
lines changed

.github/renovate.json5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
{
1919
"matchPackageNames": [
20+
"io.opentelemetry.contrib:opentelemetry-aws-xray-propagator",
2021
"io.opentelemetry.proto:opentelemetry-proto",
2122
"io.opentelemetry.semconv:opentelemetry-semconv-incubating"
2223
],

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
## Unreleased
44

5+
## Version 1.49.0 (2025-04-04)
6+
7+
### SDK
8+
9+
#### Trace
10+
11+
* Avoid linear queue.size() calls in span producers by storing queue size separately
12+
([#7141](https://github.com/open-telemetry/opentelemetry-java/pull/7141))
13+
14+
#### Exporters
15+
16+
* OTLP: Add support for setting exporter executor service
17+
([#7152](https://github.com/open-telemetry/opentelemetry-java/pull/7152))
18+
* OTLP: Refine delay jitter for exponential backoff
19+
([#7206](https://github.com/open-telemetry/opentelemetry-java/pull/7206))
20+
21+
#### Extensions
22+
23+
* Autoconfigure: Remove support for otel.experimental.exporter.otlp.retry.enabled
24+
([#7200](https://github.com/open-telemetry/opentelemetry-java/pull/7200))
25+
* Autoconfigure: Add stable cardinality limit property otel.java.metrics.cardinality.limit
26+
([#7199](https://github.com/open-telemetry/opentelemetry-java/pull/7199))
27+
* Incubator: Add declarative config model customizer SPI
28+
([#7118](https://github.com/open-telemetry/opentelemetry-java/pull/7118))
29+
530
## Version 1.48.0 (2025-03-07)
631

732
### API

README.md

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

VERSIONING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ respect to semantic versioning.
7373
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
7474
| Java | 8+ | All artifacts, unless otherwise noted | Changing requires major version bump. |
7575
| Android | 23+ (NOTE: [desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) is required. We stay up to date with the latest version of [desugar_jdk_libs](https://github.com/google/desugar_jdk_libs).) | Artifacts using `otel.animalsniffer-conventions` plugin | Kept in sync with minimum requirements for [Google Play services](https://developers.google.com/android/guides/setup). Subject to change in minor version. |
76-
| Kotlin | 1.6+ | Only applies to `opentelemetry-extension-kotlin` | Kept in sync with [minimum non-deprecated](https://kotlinlang.org/docs/gradle-compiler-options.html#attributes-common-to-jvm-and-js) version. Subject to change in minor versions. |
76+
| Kotlin | 1.8+ | Only applies to `opentelemetry-extension-kotlin` | Kept in sync with [minimum non-deprecated](https://kotlinlang.org/docs/gradle-compiler-options.html#attributes-common-to-jvm-and-js) version. Subject to change in minor versions. |
7777

7878
## API vs SDK
7979

animal-sniffer-signature/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ configurations.add(signatureJarClasspath)
2727
configurations.add(generatedSignature)
2828

2929
dependencies {
30-
signature("com.toasttab.android:gummy-bears-api-23:0.10.0@signature")
30+
signature("com.toasttab.android:gummy-bears-api-23:0.12.0@signature")
3131
signatureJar("com.android.tools:desugar_jdk_libs")
3232
}
3333

api/incubator/src/main/java/io/opentelemetry/api/incubator/logs/ExtendedDefaultLogger.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public ExtendedLogRecordBuilder setEventName(String eventName) {
4040
return this;
4141
}
4242

43+
@Override
44+
public ExtendedLogRecordBuilder setException(Throwable throwable) {
45+
return this;
46+
}
47+
4348
@Override
4449
public <T> ExtendedLogRecordBuilder setAttribute(ExtendedAttributeKey<T> key, T value) {
4550
return this;

api/incubator/src/main/java/io/opentelemetry/api/incubator/logs/ExtendedLogRecordBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,7 @@ default ExtendedLogRecordBuilder setAllAttributes(ExtendedAttributes attributes)
130130
* record with a non-empty event name is an Event.
131131
*/
132132
ExtendedLogRecordBuilder setEventName(String eventName);
133+
134+
/** Set standard {@code exception.*} attributes based on the {@code throwable}. */
135+
ExtendedLogRecordBuilder setException(Throwable throwable);
133136
}

buildSrc/build.gradle.kts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
`kotlin-dsl`
33

44
// When updating, update below in dependencies too
5-
id("com.diffplug.spotless") version "7.0.2"
5+
id("com.diffplug.spotless") version "7.0.3"
66
}
77

88
if (!hasLauncherForJavaVersion(17)) {
@@ -53,9 +53,7 @@ dependencies {
5353
implementation(enforcedPlatform("com.squareup.wire:wire-bom:5.3.1"))
5454
implementation("com.google.auto.value:auto-value-annotations:1.11.0")
5555
// When updating, update above in plugins too
56-
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.2")
57-
// Needed for japicmp but not automatically brought in for some reason.
58-
implementation("com.google.guava:guava:33.4.0-jre")
56+
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.3")
5957
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:3.19.2")
6058
implementation("com.squareup:javapoet:1.13.0")
6159
implementation("com.squareup.wire:wire-compiler")
@@ -66,8 +64,8 @@ dependencies {
6664
implementation("me.champeau.jmh:jmh-gradle-plugin:0.7.3")
6765
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.1.0")
6866
implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.2.0")
69-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.10")
70-
implementation("org.owasp:dependency-check-gradle:12.1.0")
67+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.20")
68+
implementation("org.owasp:dependency-check-gradle:12.1.1")
7169
implementation("ru.vyarus:gradle-animalsniffer-plugin:2.0.0")
7270
}
7371

buildSrc/src/main/kotlin/otel.errorprone-conventions.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ tasks {
8787
// cognitive load is dubious.
8888
disable("YodaCondition")
8989

90+
// Text blocks are not supported in java 8
91+
disable("StringConcatToTextBlock")
92+
9093
if ((name.contains("Jmh") || name.contains("Test") || project.name.contains("testing-internal")) && !project.name.equals("custom-checks")) {
9194
// Allow underscore in test-type method names
9295
disable("MemberName")

buildSrc/src/main/kotlin/otel.jacoco-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
jacoco {
8-
toolVersion = "0.8.12"
8+
toolVersion = "0.8.13"
99
}
1010

1111
// https://docs.gradle.org/current/samples/sample_jvm_multi_project_with_code_coverage.html

0 commit comments

Comments
 (0)