File tree 7 files changed +16
-10
lines changed
main/java/com/splunk/opentelemetry
test/java/com/splunk/opentelemetry
smoke-tests/src/test/java/com/splunk/opentelemetry
7 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ and this repository adheres to [Semantic Versioning](https://semver.org/spec/v2.
8
8
9
9
## Unreleased
10
10
11
+ - Rename ` splunk.distro.version ` to ` telemetry.distro.version ` .
12
+ - Declare compatibility with GDI spec 1.7.0
13
+ [ #2148 ] ( https://github.com/signalfx/splunk-otel-java/issues/2148 )
14
+
11
15
## v2.11.0 - 2025-01-09
12
16
13
17
### General
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ GitHub provides additional documentation on [forking a
75
75
repository] ( https://help.github.com/articles/fork-a-repo/ ) and [ creating a pull
76
76
request] ( https://help.github.com/articles/creating-a-pull-request/ ) .
77
77
78
+ Before your contribution can be accepted, you will be asked to sign our
79
+ [ Splunk Contributor License Agreement (CLA)] ( https://github.com/splunk/cla-agreement/blob/main/CLA.md ) .
80
+
78
81
## Finding contributions to work on
79
82
80
83
Looking at the existing issues is a great way to find something to contribute
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Existing customers should consider migrating to version 2.5.0 or higher. To lear
29
29
<img alt="OpenTelemetry Instrumentation for Java Version" src="https://img.shields.io/badge/otel-2.11.0-blueviolet?style=for-the-badge">
30
30
</a >
31
31
<a href =" https://github.com/signalfx/gdi-specification/releases/tag/v1.6.0 " >
32
- <img alt="Splunk GDI specification" src="https://img.shields.io/badge/GDI-1.6 .0-blueviolet?style=for-the-badge">
32
+ <img alt="Splunk GDI specification" src="https://img.shields.io/badge/GDI-1.7 .0-blueviolet?style=for-the-badge">
33
33
</a >
34
34
<a href =" https://github.com/signalfx/splunk-otel-java/releases " >
35
35
<img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/signalfx/splunk-otel-java?include_prereleases&style=for-the-badge">
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ tasks {
46
46
outputs.dir(propertiesDir)
47
47
48
48
doLast {
49
- File (propertiesDir, " splunk.properties" ).writeText(" splunk .distro.version=${project.version} " )
49
+ File (propertiesDir, " splunk.properties" ).writeText(" telemetry .distro.version=${project.version} " )
50
50
}
51
51
}
52
52
}
Original file line number Diff line number Diff line change 16
16
17
17
package com .splunk .opentelemetry ;
18
18
19
+ import static io .opentelemetry .semconv .incubating .TelemetryIncubatingAttributes .TELEMETRY_DISTRO_VERSION ;
20
+
19
21
import com .google .auto .service .AutoService ;
20
- import io .opentelemetry .api .common .AttributeKey ;
21
22
import io .opentelemetry .api .common .Attributes ;
22
23
import io .opentelemetry .sdk .autoconfigure .spi .ConfigProperties ;
23
24
import io .opentelemetry .sdk .autoconfigure .spi .ResourceProvider ;
28
29
29
30
@ AutoService (ResourceProvider .class )
30
31
public class SplunkDistroVersionResourceProvider implements ResourceProvider {
31
- static final AttributeKey <String > SPLUNK_DISTRO_VERSION =
32
- AttributeKey .stringKey ("splunk.distro.version" );
33
32
34
33
private static final Resource DISTRO_VERSION_RESOURCE = initialize ();
35
34
@@ -44,7 +43,8 @@ private static Resource initialize() {
44
43
splunkProps .load (in );
45
44
return Resource .create (
46
45
Attributes .of (
47
- SPLUNK_DISTRO_VERSION , splunkProps .getProperty (SPLUNK_DISTRO_VERSION .getKey ())));
46
+ TELEMETRY_DISTRO_VERSION ,
47
+ splunkProps .getProperty (TELEMETRY_DISTRO_VERSION .getKey ())));
48
48
} catch (IOException e ) {
49
49
return Resource .empty ();
50
50
}
Original file line number Diff line number Diff line change 17
17
package com .splunk .opentelemetry ;
18
18
19
19
import static io .opentelemetry .sdk .testing .assertj .OpenTelemetryAssertions .assertThat ;
20
+ import static io .opentelemetry .semconv .incubating .TelemetryIncubatingAttributes .TELEMETRY_DISTRO_VERSION ;
20
21
21
22
import org .junit .jupiter .api .Test ;
22
23
@@ -31,8 +32,6 @@ void shouldGetDistroVersionFromProperties() {
31
32
32
33
// then
33
34
assertThat (resource .getAttributes ().size ()).isEqualTo (1 );
34
- assertThat (
35
- resource .getAttributes ().get (SplunkDistroVersionResourceProvider .SPLUNK_DISTRO_VERSION ))
36
- .isNotEmpty ();
35
+ assertThat (resource .getAttributes ().get (TELEMETRY_DISTRO_VERSION )).isNotEmpty ();
37
36
}
38
37
}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ protected void assertTraces(TraceInspector traces) throws IOException {
89
89
90
90
// verify that correct service name is set in the resource
91
91
assertTrue (traces .resourceExists ("service.name" , "smoke-test-app" ));
92
- assertTrue (traces .resourceExists ("splunk .distro.version" , v -> !v .isEmpty ()));
92
+ assertTrue (traces .resourceExists ("telemetry .distro.version" , v -> !v .isEmpty ()));
93
93
}
94
94
95
95
protected void assertMetrics (MetricsInspector metrics ) {
You can’t perform that action at this time.
0 commit comments