Skip to content

Commit 7a62f68

Browse files
committed
Merge branch 'main' of https://github.com/open-telemetry/opentelemetry-java into logbuilder-set-exception
2 parents 1b0a28e + d7fb208 commit 7a62f68

File tree

156 files changed

+1593
-751
lines changed

Some content is hidden

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

156 files changed

+1593
-751
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
],

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
3838

3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
40+
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
4141
with:
4242
languages: java, actions
4343
# using "latest" helps to keep up with the latest Kotlin support
@@ -51,4 +51,4 @@ jobs:
5151
run: ./gradlew assemble --no-build-cache --no-daemon
5252

5353
- name: Perform CodeQL analysis
54-
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
54+
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
45+
uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
4646
with:
4747
sarif_file: results.sarif

CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,80 @@
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+
30+
## Version 1.48.0 (2025-03-07)
31+
32+
### API
33+
34+
* Add some helpful logging attribute methods to `LogRecordBuilder`
35+
([#7089](https://github.com/open-telemetry/opentelemetry-java/pull/7089))
36+
37+
#### Incubator
38+
39+
* Introduce ConfigProvider API. Rename `StructuredConfigProperties` to `DeclarativeConfigProperties`
40+
and move to `opentelemetry-api-incubator`. Rename `FileConfiguration`
41+
to `DeclarativeConfiguration`.
42+
([#6549](https://github.com/open-telemetry/opentelemetry-java/pull/6549))
43+
44+
### SDK
45+
46+
* Log warning and adjust when BatchLogRecordProcessor, BatchSpanProcessor `maxExportBatchSize`
47+
exceeds `maxQueueSize`.
48+
([#7045](https://github.com/open-telemetry/opentelemetry-java/pull/7045),
49+
[#7148](https://github.com/open-telemetry/opentelemetry-java/pull/7148))
50+
* Fix bug causing `ThrottlingLogger` to log more than once per minute
51+
([#7156](https://github.com/open-telemetry/opentelemetry-java/pull/7156))
52+
53+
#### Metrics
54+
55+
* Remove obsolete `SdkMeterProviderUtil#setCardinalitylimit` API
56+
([#7169](https://github.com/open-telemetry/opentelemetry-java/pull/7169))
57+
58+
#### Traces
59+
60+
* Fix bug preventing accurate reporting of span event dropped attribute count
61+
([#7142](https://github.com/open-telemetry/opentelemetry-java/pull/7142))
62+
63+
#### Exporters
64+
65+
* OTLP: remove support for `otel.java.experimental.exporter.memory_mode`
66+
which was previously replaced by `otel.java.exporter.memory_mode`
67+
([#7127](https://github.com/open-telemetry/opentelemetry-java/pull/7127))
68+
* OTLP: Extract sender parameters to config carrier class
69+
(incubating API)
70+
([#7151](https://github.com/open-telemetry/opentelemetry-java/pull/7151))
71+
* OTLP: Add support for setting OTLP exporter service class loader
72+
([#7150](https://github.com/open-telemetry/opentelemetry-java/pull/7150))
73+
74+
### Tooling
75+
76+
* Update android animalsniffer min API version to 23
77+
([#7153](https://github.com/open-telemetry/opentelemetry-java/pull/7153))
78+
579
## Version 1.47.0 (2025-02-07)
680

781
### 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/all/src/main/java/io/opentelemetry/api/logs/LogRecordBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ default LogRecordBuilder setAllAttributes(Attributes attributes) {
123123
* @param key the key for this attribute.
124124
* @param value the value for this attribute.
125125
* @return this.
126+
* @since 1.48.0
126127
*/
127128
default LogRecordBuilder setAttribute(String key, String value) {
128129
return setAttribute(stringKey(key), value);
@@ -138,6 +139,7 @@ default LogRecordBuilder setAttribute(String key, String value) {
138139
* @param key the key for this attribute.
139140
* @param value the value for this attribute.
140141
* @return this.
142+
* @since 1.48.0
141143
*/
142144
default LogRecordBuilder setAttribute(String key, long value) {
143145
return setAttribute(longKey(key), value);
@@ -153,6 +155,7 @@ default LogRecordBuilder setAttribute(String key, long value) {
153155
* @param key the key for this attribute.
154156
* @param value the value for this attribute.
155157
* @return this.
158+
* @since 1.48.0
156159
*/
157160
default LogRecordBuilder setAttribute(String key, double value) {
158161
return setAttribute(doubleKey(key), value);
@@ -168,6 +171,7 @@ default LogRecordBuilder setAttribute(String key, double value) {
168171
* @param key the key for this attribute.
169172
* @param value the value for this attribute.
170173
* @return this.
174+
* @since 1.48.0
171175
*/
172176
default LogRecordBuilder setAttribute(String key, boolean value) {
173177
return setAttribute(booleanKey(key), value);
@@ -183,6 +187,7 @@ default LogRecordBuilder setAttribute(String key, boolean value) {
183187
* @param key the key for this attribute.
184188
* @param value the value for this attribute.
185189
* @return this.
190+
* @since 1.48.0
186191
*/
187192
default LogRecordBuilder setAttribute(String key, int value) {
188193
return setAttribute(key, (long) value);

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")

0 commit comments

Comments
 (0)