Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion exporters/otlp/src/otlp_grpc_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static sdk::common::ExportResult InternalDelegateAsyncExport(
stub->experimental_async()
# endif
->Export(call_data->grpc_context.get(), call_data->request, call_data->response,
[call_data, async_data](::grpc::Status grpc_status) {
[call_data, async_data, export_data_name](::grpc::Status grpc_status) {
--async_data->running_requests;
++async_data->finished_request_counter;

Expand All @@ -216,6 +216,13 @@ static sdk::common::ExportResult InternalDelegateAsyncExport(
{
call_data->export_result = opentelemetry::sdk::common::ExportResult::kSuccess;
}
else
{
OTEL_INTERNAL_LOG_ERROR("[OTLP GRPC Client] ERROR: Export "
<< export_data_name << " failed with status_code: \""
<< grpc_status.error_code() << "\" error_message: \""
<< grpc_status.error_message() << "\"");
}

if (call_data->grpc_async_callback)
{
Expand Down