You've already forked opentelemetry-go
							
							
				mirror of
				https://github.com/open-telemetry/opentelemetry-go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	[example/jaeger] Remove prefix slash in Tracer.Start() (#292)
- trivial fix, original example generates "component-main//foo", which should be "component-main/foo"
This commit is contained in:
		| @@ -67,14 +67,14 @@ func main() { | ||||
| 	ctx := context.Background() | ||||
|  | ||||
| 	tr := global.TraceProvider().GetTracer("component-main") | ||||
| 	ctx, span := tr.Start(ctx, "/foo") | ||||
| 	ctx, span := tr.Start(ctx, "foo") | ||||
| 	bar(ctx) | ||||
| 	span.End() | ||||
| } | ||||
|  | ||||
| func bar(ctx context.Context) { | ||||
| 	tr := global.TraceProvider().GetTracer("component-bar") | ||||
| 	_, span := tr.Start(ctx, "/bar") | ||||
| 	_, span := tr.Start(ctx, "bar") | ||||
| 	defer span.End() | ||||
|  | ||||
| 	// Do bar... | ||||
|   | ||||
		Reference in New Issue
	
	Block a user