// Fallback: legacy per-key format for backward compatibility with older writers.
for prefixedKey, values := range trailer {
// Skip the proto trailer key itself in the legacy path.
trailer_to_context_metadata_interceptor.go
if prefixedKey == protoTrailerKey {
continue
}
key, ok := strings.CutPrefix(prefixedKey, trailerKeyPrefix)
trailer_to_context_metadata_interceptor.go
if !ok {
// Backward compatibility: accept unprefixed keys from older writers.
if prefixedKey != contextutil.MetadataKeyWorkflowType && prefixedKey != contextutil.MetadataKeyWorkflowTaskQueue {