mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-29 04:22:24 -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
				
			
		
							
								
								
									
										29
									
								
								vendor/go.opentelemetry.io/otel/sdk/metric/exemplar/exemplar.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								vendor/go.opentelemetry.io/otel/sdk/metric/exemplar/exemplar.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| // Copyright The OpenTelemetry Authors | ||||
| // SPDX-License-Identifier: Apache-2.0 | ||||
| 
 | ||||
| package exemplar // import "go.opentelemetry.io/otel/sdk/metric/exemplar" | ||||
| 
 | ||||
| import ( | ||||
| 	"time" | ||||
| 
 | ||||
| 	"go.opentelemetry.io/otel/attribute" | ||||
| ) | ||||
| 
 | ||||
| // Exemplar is a measurement sampled from a timeseries providing a typical | ||||
| // example. | ||||
| type Exemplar struct { | ||||
| 	// FilteredAttributes are the attributes recorded with the measurement but | ||||
| 	// filtered out of the timeseries' aggregated data. | ||||
| 	FilteredAttributes []attribute.KeyValue | ||||
| 	// Time is the time when the measurement was recorded. | ||||
| 	Time time.Time | ||||
| 	// Value is the measured value. | ||||
| 	Value Value | ||||
| 	// SpanID is the ID of the span that was active during the measurement. If | ||||
| 	// no span was active or the span was not sampled this will be empty. | ||||
| 	SpanID []byte `json:",omitempty"` | ||||
| 	// TraceID is the ID of the trace the active span belonged to during the | ||||
| 	// measurement. If no span was active or the span was not sampled this will | ||||
| 	// be empty. | ||||
| 	TraceID []byte `json:",omitempty"` | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue