Skip to content

Commit

Permalink
Releasing v1.2.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdbowman committed Dec 5, 2017
1 parent 8e031d0 commit c821d01
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 1.2.2 - 2017-12-05
### Changed
- Fixed a bug a bug which caused certain non-sampled segments to be emitted to the X-Ray daemon. This issue occurred only when the segment began as sampled and was manually overridden to non-sampled using `setSampled(false)`.

## 1.2.1 - 2017-11-20
### Changed
- Fixed a bug in the exception serialization logic that occurred when an added exception had one or more 'cause' exceptions.
Expand Down
4 changes: 2 additions & 2 deletions aws-xray-recorder-sdk-apache-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-apache-http</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>AWS X-Ray Recorder SDK for Java - Apache HTTP Client Proxy</name>
<build>
<plugins>
Expand Down
4 changes: 2 additions & 2 deletions aws-xray-recorder-sdk-aws-sdk-instrumentor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-aws-sdk-instrumentor</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>AWS X-Ray Recorder SDK for Java - AWS SDK Instrumentor</name>
<build>
<plugins>
Expand Down
4 changes: 2 additions & 2 deletions aws-xray-recorder-sdk-aws-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-aws-sdk</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>AWS X-Ray Recorder SDK for Java - AWS SDK Handler</name>
<build>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion aws-xray-recorder-sdk-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-bom</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions aws-xray-recorder-sdk-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-core</artifactId>
<name>AWS X-Ray Recorder SDK for Java - Core</name>
<version>1.2.1</version>
<version>1.2.2</version>
<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public void endSegment() {
Segment segment = current.getParentSegment();
logger.debug("Ending segment named '" + segment.getName() + "'.");
if(segment.end()) {
emitter.sendSegment(segment);
sendSegment(segment);
} else {
logger.debug("Not emitting segment named '" + segment.getName() + "' as it parents in-progress subsegments.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,18 @@ public void testSubsegmentBeginWithoutSegmentContextThrowsException() {
AWSXRay.beginSubsegment("test");
}

@Test
public void testNotSendingUnsampledSegment() {
Emitter mockEmitter = Mockito.mock(UDPEmitter.class);
AWSXRayRecorder recorder = AWSXRayRecorderBuilder.standard().withEmitter(mockEmitter).build();

Segment segment = recorder.beginSegment("test");
segment.setSampled(false);
recorder.endSegment();

Mockito.verify(mockEmitter, Mockito.times(0)).sendSegment(Mockito.any());
}

@Test
public void testSegmentEmitted() {
Emitter mockEmitter = Mockito.mock(UDPEmitter.class);
Expand Down
4 changes: 2 additions & 2 deletions aws-xray-recorder-sdk-sql-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-sql-mysql</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>AWS X-Ray Recorder SDK for Java - AWS SDK MySQL Interceptor</name>
<build>
<plugins>
Expand Down
8 changes: 4 additions & 4 deletions aws-xray-recorder-sdk-sql-postgres/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.2</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-sql-postgres</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>AWS X-Ray Recorder SDK for Java - AWS SDK PostgreSQL Interceptor</name>
<build>
<plugins>
Expand Down
4 changes: 2 additions & 2 deletions aws-xray-recorder-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -45,7 +45,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-bom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-pom</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<packaging>pom</packaging>
<name>AWS X-Ray Recorder SDK for Java</name>
<description>The Amazon Web Services X-Ray Recorder SDK for Java provides Java APIs for emitting tracing data to AWS X-Ray. AWS X-Ray helps developers analyze and debug distributed applications. With X-Ray, you can understand how your application and its underlying services are performing to identify and troubleshoot the root cause of performance issues and errors.</description>
Expand Down Expand Up @@ -45,7 +45,7 @@
</repository>
</distributionManagement>
<properties>
<awsxrayrecordersdk.version>1.2.1</awsxrayrecordersdk.version>
<awsxrayrecordersdk.version>1.2.2</awsxrayrecordersdk.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
Expand Down

0 comments on commit c821d01

Please sign in to comment.