mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 20:02:24 -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
				
			
		
							
								
								
									
										39
									
								
								vendor/google.golang.org/grpc/dialoptions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										39
									
								
								vendor/google.golang.org/grpc/dialoptions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -73,7 +73,7 @@ type dialOptions struct { | |||
| 	chainUnaryInts  []UnaryClientInterceptor | ||||
| 	chainStreamInts []StreamClientInterceptor | ||||
| 
 | ||||
| 	cp                          Compressor | ||||
| 	compressorV0                Compressor | ||||
| 	dc                          Decompressor | ||||
| 	bs                          internalbackoff.Strategy | ||||
| 	block                       bool | ||||
|  | @ -94,6 +94,8 @@ type dialOptions struct { | |||
| 	idleTimeout                 time.Duration | ||||
| 	defaultScheme               string | ||||
| 	maxCallAttempts             int | ||||
| 	enableLocalDNSResolution    bool // Specifies if target hostnames should be resolved when proxying is enabled. | ||||
| 	useProxy                    bool // Specifies if a server should be connected via proxy. | ||||
| } | ||||
| 
 | ||||
| // DialOption configures how we set up the connection. | ||||
|  | @ -256,7 +258,7 @@ func WithCodec(c Codec) DialOption { | |||
| // Deprecated: use UseCompressor instead.  Will be supported throughout 1.x. | ||||
| func WithCompressor(cp Compressor) DialOption { | ||||
| 	return newFuncDialOption(func(o *dialOptions) { | ||||
| 		o.cp = cp | ||||
| 		o.compressorV0 = cp | ||||
| 	}) | ||||
| } | ||||
| 
 | ||||
|  | @ -377,7 +379,22 @@ func WithInsecure() DialOption { | |||
| // later release. | ||||
| func WithNoProxy() DialOption { | ||||
| 	return newFuncDialOption(func(o *dialOptions) { | ||||
| 		o.copts.UseProxy = false | ||||
| 		o.useProxy = false | ||||
| 	}) | ||||
| } | ||||
| 
 | ||||
| // WithLocalDNSResolution forces local DNS name resolution even when a proxy is | ||||
| // specified in the environment.  By default, the server name is provided | ||||
| // directly to the proxy as part of the CONNECT handshake. This is ignored if | ||||
| // WithNoProxy is used. | ||||
| // | ||||
| // # Experimental | ||||
| // | ||||
| // Notice: This API is EXPERIMENTAL and may be changed or removed in a | ||||
| // later release. | ||||
| func WithLocalDNSResolution() DialOption { | ||||
| 	return newFuncDialOption(func(o *dialOptions) { | ||||
| 		o.enableLocalDNSResolution = true | ||||
| 	}) | ||||
| } | ||||
| 
 | ||||
|  | @ -428,6 +445,11 @@ func WithTimeout(d time.Duration) DialOption { | |||
| // returned by f, gRPC checks the error's Temporary() method to decide if it | ||||
| // should try to reconnect to the network address. | ||||
| // | ||||
| // Note that gRPC by default performs name resolution on the target passed to | ||||
| // NewClient. To bypass name resolution and cause the target string to be | ||||
| // passed directly to the dialer here instead, use the "passthrough" resolver | ||||
| // by specifying it in the target string, e.g. "passthrough:target". | ||||
| // | ||||
| // Note: All supported releases of Go (as of December 2023) override the OS | ||||
| // defaults for TCP keepalive time and interval to 15s. To enable TCP keepalive | ||||
| // with OS defaults for keepalive time and interval, use a net.Dialer that sets | ||||
|  | @ -662,14 +684,15 @@ func defaultDialOptions() dialOptions { | |||
| 		copts: transport.ConnectOptions{ | ||||
| 			ReadBufferSize:  defaultReadBufSize, | ||||
| 			WriteBufferSize: defaultWriteBufSize, | ||||
| 			UseProxy:        true, | ||||
| 			UserAgent:       grpcUA, | ||||
| 			BufferPool:      mem.DefaultBufferPool(), | ||||
| 		}, | ||||
| 		bs:              internalbackoff.DefaultExponential, | ||||
| 		idleTimeout:     30 * time.Minute, | ||||
| 		defaultScheme:   "dns", | ||||
| 		maxCallAttempts: defaultMaxCallAttempts, | ||||
| 		bs:                       internalbackoff.DefaultExponential, | ||||
| 		idleTimeout:              30 * time.Minute, | ||||
| 		defaultScheme:            "dns", | ||||
| 		maxCallAttempts:          defaultMaxCallAttempts, | ||||
| 		useProxy:                 true, | ||||
| 		enableLocalDNSResolution: false, | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue