mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:02:25 -05:00 
			
		
		
		
	[chore]: Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc (#2244)
Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://github.com/open-telemetry/opentelemetry-go) from 1.18.0 to 1.19.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.18.0...v1.19.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								21f051733a
							
						
					
				
			
			
				commit
				
					
						118b546d9f
					
				
			
		
					 8 changed files with 50 additions and 36 deletions
				
			
		
							
								
								
									
										15
									
								
								vendor/google.golang.org/grpc/stream.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								vendor/google.golang.org/grpc/stream.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -158,11 +158,6 @@ type ClientStream interface { | |||
| // If none of the above happen, a goroutine and a context will be leaked, and grpc | ||||
| // will not call the optionally-configured stats handler with a stats.End message. | ||||
| func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error) { | ||||
| 	if err := cc.idlenessMgr.OnCallBegin(); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	defer cc.idlenessMgr.OnCallEnd() | ||||
| 
 | ||||
| 	// allow interceptor to see all applicable call options, which means those | ||||
| 	// configured as defaults from dial option as well as per-call options | ||||
| 	opts = combine(cc.dopts.callOptions, opts) | ||||
|  | @ -179,6 +174,16 @@ func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth | |||
| } | ||||
| 
 | ||||
| func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (_ ClientStream, err error) { | ||||
| 	// Start tracking the RPC for idleness purposes. This is where a stream is | ||||
| 	// created for both streaming and unary RPCs, and hence is a good place to | ||||
| 	// track active RPC count. | ||||
| 	if err := cc.idlenessMgr.OnCallBegin(); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	// Add a calloption, to decrement the active call count, that gets executed | ||||
| 	// when the RPC completes. | ||||
| 	opts = append([]CallOption{OnFinish(func(error) { cc.idlenessMgr.OnCallEnd() })}, opts...) | ||||
| 
 | ||||
| 	if md, added, ok := metadata.FromOutgoingContextRaw(ctx); ok { | ||||
| 		// validate md | ||||
| 		if err := imetadata.Validate(md); err != nil { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue