-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable container and Kubernetes awareness for improved telemetry. #1235
Conversation
JAVA-5210
JAVA-5210
JAVA-5210
@@ -257,6 +257,7 @@ configure(javaCodeCheckedProjects) { | |||
testImplementation 'org.spockframework:spock-core' | |||
testImplementation 'org.spockframework:spock-junit4' | |||
testImplementation("org.mockito:mockito-core:3.8.0") | |||
testImplementation("org.mockito:mockito-inline:3.8.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This useful addon to Mockito allows for the mocking of static methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
@@ -168,8 +180,7 @@ static boolean clientMetadataDocumentTooLarge(final BsonDocument document) { | |||
new BsonDocumentCodec().encode(new BsonBinaryWriter(buffer), document, EncoderContext.builder().build()); | |||
return buffer.getPosition() > MAXIMUM_CLIENT_METADATA_ENCODED_SIZE; | |||
} | |||
|
|||
private enum Environment { | |||
private enum FaasEnvironment { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the introduction of new parameters in the env
section related to containers/orchestration, I've renamed this enum in accordance with the specification, as it contains metadata of FaaS environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
JAVA-5210
JAVA-5210
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -168,8 +180,7 @@ static boolean clientMetadataDocumentTooLarge(final BsonDocument document) { | |||
new BsonDocumentCodec().encode(new BsonBinaryWriter(buffer), document, EncoderContext.builder().build()); | |||
return buffer.getPosition() > MAXIMUM_CLIENT_METADATA_ENCODED_SIZE; | |||
} | |||
|
|||
private enum Environment { | |||
private enum FaasEnvironment { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
@@ -257,6 +257,7 @@ configure(javaCodeCheckedProjects) { | |||
testImplementation 'org.spockframework:spock-core' | |||
testImplementation 'org.spockframework:spock-junit4' | |||
testImplementation("org.mockito:mockito-core:3.8.0") | |||
testImplementation("org.mockito:mockito-inline:3.8.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
Include container and Kubernetes awareness, as specified in the MongoDB Handshake Specification
JAVA-5072