Skip to content

Commit f1ea88f

Browse files
committed
Merge remote-tracking branch 'upstream/main' into prepare-stable-release
2 parents 9f75aba + d39c45c commit f1ea88f

File tree

10 files changed

+29
-75
lines changed

10 files changed

+29
-75
lines changed

.github/renovate.json5

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:base"
5+
],
6+
"packageRules": [
7+
{
8+
// pin opentelemetry-api dependency to: avoid churn, for conservative api version requirement, and because opentelemetry-api is a compileOnly dependency
9+
"matchPackageNames": ["io.opentelemetry:opentelemetry-api"],
10+
"matchCurrentVersion": "1.33.0",
11+
"enabled": false
12+
}
13+
]
14+
}

build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ val schemaUrlVersions = listOf(
1818
"1.27.0",
1919
"1.26.0",
2020
"1.25.0",
21-
"1.24.0",
22-
"1.23.1",
23-
"1.22.0")
21+
"1.24.0")
2422

2523
allprojects {
2624
// Compute the artifact version.

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repositories {
99
}
1010

1111
dependencies {
12-
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.25.0")
12+
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.1")
1313
implementation("ru.vyarus:gradle-animalsniffer-plugin:1.7.2")
1414
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.5")
1515
// Needed for japicmp but not automatically brought in for some reason.

buildscripts/templates/registry/incubating_java/weaver.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
params:
22
excluded_namespaces: ["ios", "aspnetcore", "signalr"]
3-
excluded_attributes: ["messaging.client_id"]
3+
excluded_attributes: ["messaging.client_id", "exception.escaped"]
44
comment_formats:
55
javadoc:
66
format: html
@@ -19,12 +19,11 @@ templates:
1919
filter: >
2020
semconv_grouped_attributes({
2121
"exclude_root_namespace": $excluded_namespaces,
22-
"exclude_stability": [],
23-
"exclude_deprecated": false
22+
"exclude_stability": []
2423
}) | map({
2524
root_namespace: .root_namespace,
2625
attributes: .attributes,
27-
excluded_attributes: $excluded_attributes[]
26+
excluded_attributes: $excluded_attributes
2827
})
2928
application_mode: each
3029
file_name: "{{ctx.root_namespace | pascal_case}}IncubatingAttributes.java"

buildscripts/templates/registry/java/SemanticAttributes.java.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import java.util.List;
3636
// DO NOT EDIT, this is an Auto-generated file from buildscripts/templates/registry/java/SemanticAttributes.java.j2
3737
@SuppressWarnings("unused")
3838
public final class {{ my_class_name }} {
39-
{% for attribute in ctx.attributes %}{% if attribute is stable %}
39+
{% for attribute in ctx.attributes | rejectattr("name", "in", ctx.excluded_attributes) %}{% if attribute is stable %}
4040
{%- if attribute is deprecated %}
4141
{%- set deprecated_javadoc = "@deprecated " ~ attribute.deprecated -%}
4242
{%- endif -%}

buildscripts/templates/registry/java/weaver.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
params:
22
excluded_namespaces: ["ios", "aspnetcore", "signalr"]
3-
excluded_attributes: ["messaging.client_id"]
3+
# excluding "exception.escaped" from stable attributes
4+
# because we are anticipating it being deprecated soon
5+
excluded_attributes: ["messaging.client_id", "exception.escaped"]
46
comment_formats:
57
javadoc:
68
format: html
@@ -16,11 +18,14 @@ comment_formats:
1618
default_comment_format: javadoc
1719
templates:
1820
- pattern: SemanticAttributes.java.j2
19-
filter: >
21+
filter: >
2022
semconv_grouped_attributes({
2123
"exclude_root_namespace": $excluded_namespaces,
22-
"exclude_stability": ["experimental", "deprecated"],
23-
"exclude_deprecated": false
24+
"exclude_stability": ["experimental", "deprecated"]
25+
}) | map({
26+
root_namespace: .root_namespace,
27+
attributes: .attributes,
28+
excluded_attributes: $excluded_attributes
2429
})
2530
application_mode: each
2631
file_name: "{{ctx.root_namespace | pascal_case}}Attributes.java"

renovate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/ExceptionIncubatingAttributes.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
package io.opentelemetry.semconv.incubating;
77

8-
import static io.opentelemetry.api.common.AttributeKey.booleanKey;
98
import static io.opentelemetry.api.common.AttributeKey.stringKey;
109

1110
import io.opentelemetry.api.common.AttributeKey;
@@ -14,34 +13,6 @@
1413
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
1514
@SuppressWarnings("unused")
1615
public final class ExceptionIncubatingAttributes {
17-
/**
18-
* SHOULD be set to true if the exception event is recorded at a point where it is known that the
19-
* exception is escaping the scope of the span.
20-
*
21-
* <p>Notes:
22-
*
23-
* <p>An exception is considered to have escaped (or left) the scope of a span, if that span is
24-
* ended while the exception is still logically "in flight". This may be actually "in flight" in
25-
* some languages (e.g. if the exception is passed to a Context manager's {@code __exit__} method
26-
* in Python) but will usually be caught at the point of recording the exception in most
27-
* languages.
28-
*
29-
* <p>It is usually not possible to determine at the point where an exception is thrown whether it
30-
* will escape the scope of a span. However, it is trivial to know that an exception will escape,
31-
* if one checks for an active exception just before ending the span, as done in the <a
32-
* href="https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception">example
33-
* for recording span exceptions</a>.
34-
*
35-
* <p>It follows that an exception may still escape the scope of the span even if the {@code
36-
* exception.escaped} attribute was not set or set to false, since the event might have been
37-
* recorded at a time where it was not clear whether the exception will escape.
38-
*
39-
* @deprecated deprecated in favor of stable {@link
40-
* io.opentelemetry.semconv.ExceptionAttributes#EXCEPTION_ESCAPED} attribute.
41-
*/
42-
@Deprecated
43-
public static final AttributeKey<Boolean> EXCEPTION_ESCAPED = booleanKey("exception.escaped");
44-
4516
/**
4617
* The exception message.
4718
*

semconv/src/main/java/io/opentelemetry/semconv/ExceptionAttributes.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
package io.opentelemetry.semconv;
77

8-
import static io.opentelemetry.api.common.AttributeKey.booleanKey;
98
import static io.opentelemetry.api.common.AttributeKey.stringKey;
109

1110
import io.opentelemetry.api.common.AttributeKey;
@@ -14,30 +13,6 @@
1413
// buildscripts/templates/registry/java/SemanticAttributes.java.j2
1514
@SuppressWarnings("unused")
1615
public final class ExceptionAttributes {
17-
/**
18-
* SHOULD be set to true if the exception event is recorded at a point where it is known that the
19-
* exception is escaping the scope of the span.
20-
*
21-
* <p>Notes:
22-
*
23-
* <p>An exception is considered to have escaped (or left) the scope of a span, if that span is
24-
* ended while the exception is still logically "in flight". This may be actually "in flight" in
25-
* some languages (e.g. if the exception is passed to a Context manager's {@code __exit__} method
26-
* in Python) but will usually be caught at the point of recording the exception in most
27-
* languages.
28-
*
29-
* <p>It is usually not possible to determine at the point where an exception is thrown whether it
30-
* will escape the scope of a span. However, it is trivial to know that an exception will escape,
31-
* if one checks for an active exception just before ending the span, as done in the <a
32-
* href="https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception">example
33-
* for recording span exceptions</a>.
34-
*
35-
* <p>It follows that an exception may still escape the scope of the span even if the {@code
36-
* exception.escaped} attribute was not set or set to false, since the event might have been
37-
* recorded at a time where it was not clear whether the exception will escape.
38-
*/
39-
public static final AttributeKey<Boolean> EXCEPTION_ESCAPED = booleanKey("exception.escaped");
40-
4116
/** The exception message. */
4217
public static final AttributeKey<String> EXCEPTION_MESSAGE = stringKey("exception.message");
4318

semconv/src/main/java/io/opentelemetry/semconv/SchemaUrls.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ public final class SchemaUrls {
1313
public static final String V1_26_0 = "https://opentelemetry.io/schemas/1.26.0";
1414
public static final String V1_25_0 = "https://opentelemetry.io/schemas/1.25.0";
1515
public static final String V1_24_0 = "https://opentelemetry.io/schemas/1.24.0";
16-
public static final String V1_23_1 = "https://opentelemetry.io/schemas/1.23.1";
17-
public static final String V1_22_0 = "https://opentelemetry.io/schemas/1.22.0";
1816

1917
private SchemaUrls() {}
2018
}

0 commit comments

Comments
 (0)