mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 02:25:53 +01:00 
			
		
		
		
	Set span kinds for internal requests
This commit is contained in:
		| @@ -38,6 +38,8 @@ import java.nio.file.Path; | ||||
| import java.nio.file.Paths; | ||||
| import java.util.Optional; | ||||
|  | ||||
| import static sonia.scm.plugin.Tracing.SPAN_KIND; | ||||
|  | ||||
| @SuppressWarnings("UnstableApiUsage") | ||||
|   // guava hash is marked as unstable | ||||
| class PluginInstaller { | ||||
| @@ -126,7 +128,7 @@ class PluginInstaller { | ||||
|   } | ||||
|  | ||||
|   private InputStream download(AvailablePlugin plugin) throws IOException { | ||||
|     return client.get(plugin.getDescriptor().getUrl()).request().contentAsStream(); | ||||
|     return client.get(plugin.getDescriptor().getUrl()).spanKind(SPAN_KIND).request().contentAsStream(); | ||||
|   } | ||||
|  | ||||
|   private Path createFile(AvailablePlugin plugin) throws IOException { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user