Skip to content

Commit

Permalink
[release/v1.21.x] Prepare release 1.21.0 (#5035)
Browse files Browse the repository at this point in the history
* Prepare release 1.21.0

* Fix version-dependent test

Co-authored-by: Jack Berg <[email protected]>
  • Loading branch information
opentelemetrybot and jack-berg authored Dec 9, 2022
1 parent ca18354 commit 7105876
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Unreleased
## Version 1.21.0 (2022-12-09)

### API

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ class SdkLoggerProviderTest {
@BeforeEach
void setup() {
sdkLoggerProvider =
SdkLoggerProvider.builder().addLogRecordProcessor(logRecordProcessor).build();
SdkLoggerProvider.builder()
.setResource(Resource.empty().toBuilder().put("key", "value").build())
.addLogRecordProcessor(logRecordProcessor)
.build();
when(logRecordProcessor.forceFlush()).thenReturn(CompletableResultCode.ofSuccess());
when(logRecordProcessor.shutdown()).thenReturn(CompletableResultCode.ofSuccess());
}
Expand Down Expand Up @@ -354,7 +357,7 @@ void toString_Valid() {
.isEqualTo(
"SdkLoggerProvider{"
+ "clock=SystemClock{}, "
+ "resource=Resource{schemaUrl=null, attributes={service.name=\"unknown_service:java\", telemetry.sdk.language=\"java\", telemetry.sdk.name=\"opentelemetry\", telemetry.sdk.version=\"1.21.0-SNAPSHOT\"}}, "
+ "resource=Resource{schemaUrl=null, attributes={key=\"value\"}}, "
+ "logLimits=LogLimits{maxNumberOfAttributes=128, maxAttributeValueLength=2147483647}, "
+ "logRecordProcessor=MockLogRecordProcessor"
+ "}");
Expand Down
2 changes: 1 addition & 1 deletion version.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val snapshot = true
val snapshot = false

allprojects {
var ver = "1.21.0"
Expand Down

0 comments on commit 7105876

Please sign in to comment.