mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 20:52:25 -05:00 
			
		
		
		
	[chore] update otel libraries (#3740)
* chore: update otel dependencies * refactor: combine tracing & metrics in observability package * chore: update example tracing compose file
This commit is contained in:
		
					parent
					
						
							
								baed591a1d
							
						
					
				
			
			
				commit
				
					
						dd094e4012
					
				
			
		
					 217 changed files with 6873 additions and 2734 deletions
				
			
		
							
								
								
									
										10
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/handler.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/handler.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -64,7 +64,13 @@ func ForwardResponseStream(ctx context.Context, mux *ServeMux, marshaler Marshal | |||
| 		} | ||||
| 
 | ||||
| 		if !wroteHeader { | ||||
| 			w.Header().Set("Content-Type", marshaler.ContentType(respRw)) | ||||
| 			var contentType string | ||||
| 			if sct, ok := marshaler.(StreamContentType); ok { | ||||
| 				contentType = sct.StreamContentType(respRw) | ||||
| 			} else { | ||||
| 				contentType = marshaler.ContentType(respRw) | ||||
| 			} | ||||
| 			w.Header().Set("Content-Type", contentType) | ||||
| 		} | ||||
| 
 | ||||
| 		var buf []byte | ||||
|  | @ -194,7 +200,7 @@ func ForwardResponseMessage(ctx context.Context, mux *ServeMux, marshaler Marsha | |||
| 		w.Header().Set("Content-Length", strconv.Itoa(len(buf))) | ||||
| 	} | ||||
| 
 | ||||
| 	if _, err = w.Write(buf); err != nil { | ||||
| 	if _, err = w.Write(buf); err != nil && !errors.Is(err, http.ErrBodyNotAllowed) { | ||||
| 		grpclog.Errorf("Failed to write response: %v", err) | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue