mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 04:02:26 -05:00 
			
		
		
		
	[chore]: Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc (#3888)
This commit is contained in:
		
					parent
					
						
							
								85e17b3e78
							
						
					
				
			
			
				commit
				
					
						252a17a691
					
				
			
		
					 97 changed files with 3821 additions and 1018 deletions
				
			
		
							
								
								
									
										2
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/handler.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/handler.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -196,7 +196,7 @@ func ForwardResponseMessage(ctx context.Context, mux *ServeMux, marshaler Marsha | |||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	if !doForwardTrailers { | ||||
| 	if !doForwardTrailers && mux.writeContentLength { | ||||
| 		w.Header().Set("Content-Length", strconv.Itoa(len(buf))) | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										8
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/mux.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/mux.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -71,6 +71,7 @@ type ServeMux struct { | |||
| 	routingErrorHandler       RoutingErrorHandlerFunc | ||||
| 	disablePathLengthFallback bool | ||||
| 	unescapingMode            UnescapingMode | ||||
| 	writeContentLength        bool | ||||
| } | ||||
| 
 | ||||
| // ServeMuxOption is an option that can be given to a ServeMux on construction. | ||||
|  | @ -258,6 +259,13 @@ func WithDisablePathLengthFallback() ServeMuxOption { | |||
| 	} | ||||
| } | ||||
| 
 | ||||
| // WithWriteContentLength returns a ServeMuxOption to enable writing content length on non-streaming responses | ||||
| func WithWriteContentLength() ServeMuxOption { | ||||
| 	return func(serveMux *ServeMux) { | ||||
| 		serveMux.writeContentLength = true | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| // WithHealthEndpointAt returns a ServeMuxOption that will add an endpoint to the created ServeMux at the path specified by endpointPath. | ||||
| // When called the handler will forward the request to the upstream grpc service health check (defined in the | ||||
| // gRPC Health Checking Protocol). | ||||
|  |  | |||
							
								
								
									
										16
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/query.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/query.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -126,6 +126,15 @@ func populateFieldValueFromPath(msgValue protoreflect.Message, fieldPath []strin | |||
| 			} | ||||
| 		} | ||||
| 
 | ||||
| 		// Check if oneof already set | ||||
| 		if of := fieldDescriptor.ContainingOneof(); of != nil && !of.IsSynthetic() { | ||||
| 			if f := msgValue.WhichOneof(of); f != nil { | ||||
| 				if fieldDescriptor.Message() == nil || fieldDescriptor.FullName() != f.FullName() { | ||||
| 					return fmt.Errorf("field already set for oneof %q", of.FullName().Name()) | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
| 		// If this is the last element, we're done | ||||
| 		if i == len(fieldPath)-1 { | ||||
| 			break | ||||
|  | @ -140,13 +149,6 @@ func populateFieldValueFromPath(msgValue protoreflect.Message, fieldPath []strin | |||
| 		msgValue = msgValue.Mutable(fieldDescriptor).Message() | ||||
| 	} | ||||
| 
 | ||||
| 	// Check if oneof already set | ||||
| 	if of := fieldDescriptor.ContainingOneof(); of != nil && !of.IsSynthetic() { | ||||
| 		if f := msgValue.WhichOneof(of); f != nil { | ||||
| 			return fmt.Errorf("field already set for oneof %q", of.FullName().Name()) | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	switch { | ||||
| 	case fieldDescriptor.IsList(): | ||||
| 		return populateRepeatedField(fieldDescriptor, msgValue.Mutable(fieldDescriptor).List(), values) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue