Skip to content
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

Custom timestamp for subsegment #93

Merged
merged 4 commits into from
Jul 17, 2019
Merged

Custom timestamp for subsegment #93

merged 4 commits into from
Jul 17, 2019

Conversation

srprash
Copy link
Collaborator

@srprash srprash commented Jul 15, 2019

Issue #, if available: 76

Description of changes:
Added timestamp parameter to BeginSubsegment and EndSubsegment.
Added Unit tests for the same.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@srprash srprash changed the title Custom timestamp for subsegment 2 Custom timestamp for subsegment Jul 15, 2019
@@ -1052,6 +1052,35 @@ public void TestDefaultStreamingStrategyWithNegativeValue()
Assert.ThrowsException<ArgumentException>(() => new AWSXRayRecorderBuilder().WithStreamingStrategy(new DefaultStreamingStrategy(-100)));
}

[TestMethod]
public void TestBeginSubsegmentWithCustomTime()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sanity check : unit test that checks begin/end subsegment if no value is passed? The assertion should be on the current time.

sdk/src/Core/AWSXRayRecorder.netcore.cs Show resolved Hide resolved
sdk/src/Core/AWSXRayRecorder.netcore.cs Show resolved Hide resolved
@srprash srprash merged commit f65303a into aws:master Jul 17, 2019
@srprash srprash deleted the custom_timestamp_for_subsegment_2 branch July 17, 2019 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants