File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ void OpenTelemetryPluginImpl::ClientCallTracer::CallAttemptTracer::RecordEnd(
276276void OpenTelemetryPluginImpl::ClientCallTracer::CallAttemptTracer::
277277 RecordAnnotation (absl::string_view annotation) {
278278 if (span_ != nullptr ) {
279- span_->AddEvent (annotation);
279+ span_->AddEvent (AbslStringViewToNoStdStringView ( annotation) );
280280 }
281281}
282282
@@ -393,8 +393,10 @@ absl::string_view OpenTelemetryPluginImpl::ClientCallTracer::MethodForStats()
393393}
394394
395395void OpenTelemetryPluginImpl::ClientCallTracer::RecordAnnotation (
396- absl::string_view /* annotation*/ ) {
397- // Not implemented
396+ absl::string_view annotation) {
397+ if (span_ != nullptr ) {
398+ span_->AddEvent (AbslStringViewToNoStdStringView (annotation));
399+ }
398400}
399401
400402void OpenTelemetryPluginImpl::ClientCallTracer::RecordAnnotation (
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ void OpenTelemetryPluginImpl::ServerCallTracer::RecordOutgoingBytes(
240240void OpenTelemetryPluginImpl::ServerCallTracer::RecordAnnotation (
241241 absl::string_view annotation) {
242242 if (span_ != nullptr ) {
243- span_->AddEvent (annotation);
243+ span_->AddEvent (AbslStringViewToNoStdStringView ( annotation) );
244244 }
245245}
246246
You can’t perform that action at this time.
0 commit comments