Skip to content

Commit 5588c42

Browse files
committed
fix grpc generation
1 parent cb3f783 commit 5588c42

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/librarian/rust/codec.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ func buildModuleCodec(library *config.Library, module *config.RustModule) map[st
300300
if module.IncludeGrpcOnlyMethods {
301301
codec["include-grpc-only-methods"] = "true"
302302
}
303+
if library.Rust != nil && library.Rust.DetailedTracingAttributes {
304+
codec["detailed-tracing-attributes"] = "true"
305+
}
303306
if module.ModulePath != "" {
304307
codec["module-path"] = module.ModulePath
305308
}

internal/sidekick/rust/templates/grpc-client/transport.rs.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl super::stub::{{Codec.Name}} for {{Codec.Name}} {
135135
))
136136
})();
137137
if let Some(rn) = resource_name {
138-
use google_cloud_gax::options::internal::ResourceName;
138+
use google_cloud_gax::options::internal::{RequestOptionsExt, ResourceName};
139139
options.insert_extension(ResourceName(rn))
140140
} else {
141141
options

0 commit comments

Comments
 (0)