Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Tax committed Apr 6, 2020
1 parent 25987a5 commit ef07670
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sdk/include/opentelemetry/sdk/trace/exporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ enum class ExportResult
/**
* Batch was successfully exported.
*/
rSuccess = 0,
kSuccess = 0,
/**
* Exporting failed. The caller must not retry exporting the same batch; the
* batch must be dropped.
*/
rFailure
kFailure
};
/**
* SpanExporter defines the interface that protocol-specific span exporters must
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/trace/simple_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SimpleSpanProcessor : public SpanProcessor
{
std::shared_ptr<Recordable> recordable{std::move(span)};
nostd::span<std::shared_ptr<Recordable>> s(&recordable, 1);
if (exporter_->Export(s) == ExportResult::rFailure)
if (exporter_->Export(s) == ExportResult::kFailure)
{
/* Once it is defined how the SDK does logging, an error should be
* logged in this case. */
Expand Down
2 changes: 1 addition & 1 deletion sdk/test/trace/simple_processor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MockSpanExporter final : public SpanExporter
*span_received_ = true;
}
}
return ExportResult::rSuccess;
return ExportResult::kSuccess;
}

void Shutdown() noexcept { *shutdown_called_ = true; }
Expand Down

0 comments on commit ef07670

Please sign in to comment.