Skip to content

Commit

Permalink
Fix typo in MetricAdapterTest#convertHistogram (open-telemetry#4592)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-ai authored Jul 9, 2022
1 parent aa873a0 commit 9031338
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ void convertsDoubleSum() {

@Test
void convertHistogram() {
Map<String, AttachmentValue> exemplarAttachements = new HashMap<>();
Map<String, AttachmentValue> exemplarAttachments = new HashMap<>();
// TODO - Import opencensus util for a code-dependent test on common exemplar-trace usage.
exemplarAttachements.put(
exemplarAttachments.put(
"SpanContext",
AttachmentValue.AttachmentValueString.create(
"SpanContext{traceId=TraceId{traceId=00000000000000000000000000000001}, spanId=SpanId{spanId=0000000000000002}, others=stuff}"));
Expand Down Expand Up @@ -226,7 +226,7 @@ void convertHistogram() {
Distribution.Bucket.create(
6,
Exemplar.create(
4.0, Timestamp.fromMillis(1), exemplarAttachements)),
4.0, Timestamp.fromMillis(1), exemplarAttachments)),
Distribution.Bucket.create(2)))),
Timestamp.fromMillis(2000))),
Timestamp.fromMillis(1000)));
Expand Down Expand Up @@ -311,9 +311,9 @@ void convertSummary() {

@Test
void convertGaugeHistogram() {
Map<String, AttachmentValue> exemplarAttachements = new HashMap<>();
Map<String, AttachmentValue> exemplarAttachments = new HashMap<>();
// TODO - Import opencensus util for a code-dependent test on common exemplar-trace usage.
exemplarAttachements.put(
exemplarAttachments.put(
"SpanContext",
AttachmentValue.AttachmentValueString.create(
"SpanContext{traceId=TraceId{traceId=00000000000000000000000000000001}, spanId=SpanId{spanId=0000000000000002}, others=stuff}"));
Expand Down Expand Up @@ -343,7 +343,7 @@ void convertGaugeHistogram() {
Distribution.Bucket.create(
6,
Exemplar.create(
4.0, Timestamp.fromMillis(1), exemplarAttachements)),
4.0, Timestamp.fromMillis(1), exemplarAttachments)),
Distribution.Bucket.create(2)))),
Timestamp.fromMillis(2000))),
Timestamp.fromMillis(1000)));
Expand Down

0 comments on commit 9031338

Please sign in to comment.