Enabled Zipkin tracing for all the projects.
This commit is contained in:
		
							parent
							
								
									c5298158ef
								
							
						
					
					
						commit
						576ce3165d
					
				| @ -36,6 +36,7 @@ using System.IO; | ||||
| using GrpcBasket; | ||||
| using Microsoft.AspNetCore.Http.Features; | ||||
| using Serilog; | ||||
| using System.Diagnostics; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.Services.Basket.API | ||||
| { | ||||
| @ -43,6 +44,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API | ||||
|     { | ||||
|         public Startup(IConfiguration configuration) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             Configuration = configuration; | ||||
|         } | ||||
| 
 | ||||
|  | ||||
| @ -13,6 +13,7 @@ using Microsoft.Extensions.Options; | ||||
| using Serilog; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Net; | ||||
| @ -26,6 +27,8 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API | ||||
| 
 | ||||
|         public static int Main(string[] args) | ||||
|         { | ||||
| 
 | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             var configuration = GetConfiguration(); | ||||
| 
 | ||||
|             Log.Logger = CreateSerilogLogger(configuration); | ||||
|  | ||||
| @ -20,6 +20,7 @@ using Microsoft.Extensions.Hosting; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using StackExchange.Redis; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
| using System.Reflection; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.Services.Identity.API | ||||
| @ -28,6 +29,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API | ||||
|     { | ||||
|         public Startup(IConfiguration configuration) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             Configuration = configuration; | ||||
|         } | ||||
| 
 | ||||
|  | ||||
| @ -5,6 +5,7 @@ using Microsoft.Extensions.Configuration; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Serilog; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.Services.Locations.API | ||||
| @ -16,6 +17,7 @@ namespace Microsoft.eShopOnContainers.Services.Locations.API | ||||
| 
 | ||||
|         public static int Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             var configuration = GetConfiguration(); | ||||
| 
 | ||||
|             Log.Logger = CreateSerilogLogger(configuration); | ||||
|  | ||||
| @ -34,11 +34,13 @@ | ||||
|     using System.Collections.Generic; | ||||
|     using System.IdentityModel.Tokens.Jwt; | ||||
|     using System.Reflection; | ||||
|     using System.Diagnostics; | ||||
| 
 | ||||
|     public class Startup | ||||
|     { | ||||
|         public Startup(IConfiguration configuration) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             Configuration = configuration; | ||||
|         } | ||||
| 
 | ||||
|  | ||||
| @ -10,6 +10,7 @@ using Microsoft.Extensions.Logging; | ||||
| using Microsoft.Extensions.Options; | ||||
| using Serilog; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Net; | ||||
| 
 | ||||
| @ -22,6 +23,7 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API | ||||
| 
 | ||||
|         public static int Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             var configuration = GetConfiguration(); | ||||
| 
 | ||||
|             Log.Logger = CreateSerilogLogger(configuration); | ||||
|  | ||||
| @ -4,6 +4,7 @@ using Microsoft.Extensions.Configuration; | ||||
| using Microsoft.Extensions.Hosting; | ||||
| using Ordering.BackgroundTasks.Extensions; | ||||
| using Serilog; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| 
 | ||||
| namespace Ordering.BackgroundTasks | ||||
| @ -14,6 +15,7 @@ namespace Ordering.BackgroundTasks | ||||
| 
 | ||||
|         public static void Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             CreateHostBuilder(args).Run(); | ||||
|         } | ||||
| 
 | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Threading.Tasks; | ||||
| @ -18,6 +19,7 @@ namespace Ordering.SignalrHub | ||||
| 
 | ||||
|         public static int Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             var configuration = GetConfiguration(); | ||||
| 
 | ||||
|             Log.Logger = CreateSerilogLogger(configuration); | ||||
|  | ||||
| @ -5,6 +5,7 @@ using Microsoft.Extensions.Configuration; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Serilog; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| 
 | ||||
| namespace Payment.API | ||||
| @ -16,6 +17,7 @@ namespace Payment.API | ||||
| 
 | ||||
|         public static int Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             var configuration = GetConfiguration(); | ||||
| 
 | ||||
|             Log.Logger = CreateSerilogLogger(configuration); | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Threading.Tasks; | ||||
| @ -15,6 +16,7 @@ namespace Webhooks.API | ||||
|     { | ||||
|         public static void Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             CreateWebHostBuilder(args).Build() | ||||
|                 .MigrateDbContext<WebhooksContext>((_,__) => { }) | ||||
|                 .Run(); | ||||
|  | ||||
| @ -23,6 +23,7 @@ using RabbitMQ.Client; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Data.Common; | ||||
| using System.Diagnostics; | ||||
| using System.IdentityModel.Tokens.Jwt; | ||||
| using System.Reflection; | ||||
| using System.Threading; | ||||
| @ -38,6 +39,7 @@ namespace Webhooks.API | ||||
| 
 | ||||
|         public Startup(IConfiguration configuration) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             Configuration = configuration; | ||||
|         } | ||||
| 
 | ||||
|  | ||||
| @ -4,6 +4,7 @@ using Microsoft.Extensions.Configuration; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Serilog; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.WebMVC | ||||
| @ -15,6 +16,7 @@ namespace Microsoft.eShopOnContainers.WebMVC | ||||
| 
 | ||||
|         public static int Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             var configuration = GetConfiguration(); | ||||
| 
 | ||||
|             Log.Logger = CreateSerilogLogger(configuration); | ||||
|  | ||||
| @ -4,6 +4,7 @@ using System.IO; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Microsoft.Extensions.Configuration; | ||||
| using Serilog; | ||||
| using System.Diagnostics; | ||||
| 
 | ||||
| namespace eShopConContainers.WebSPA | ||||
| { | ||||
| @ -11,6 +12,7 @@ namespace eShopConContainers.WebSPA | ||||
|     { | ||||
|         public static void Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             BuildWebHost(args).Run(); | ||||
|         } | ||||
| 
 | ||||
|  | ||||
| @ -4,6 +4,7 @@ using Microsoft.Extensions.Configuration; | ||||
| using Serilog; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Reflection; | ||||
| @ -17,6 +18,7 @@ namespace WebStatus | ||||
| 
 | ||||
|         public static int Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             var configuration = GetConfiguration(); | ||||
| 
 | ||||
|             Log.Logger = CreateSerilogLogger(configuration); | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Threading.Tasks; | ||||
| @ -14,6 +15,7 @@ namespace WebhookClient | ||||
|     { | ||||
|         public static void Main(string[] args) | ||||
|         { | ||||
|             Activity.DefaultIdFormat = ActivityIdFormat.W3C; | ||||
|             CreateWebHostBuilder(args).Build().Run(); | ||||
|         } | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										17
									
								
								src/tye.yaml
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								src/tye.yaml
									
									
									
									
									
								
							| @ -1,4 +1,8 @@ | ||||
| name: eshoponcontainers-servicesandwebapps | ||||
| 
 | ||||
| extensions: | ||||
| - name: zipkin | ||||
| 
 | ||||
| services: | ||||
| 
 | ||||
| - name: sqldata | ||||
| @ -11,27 +15,20 @@ services: | ||||
|     value: Y | ||||
|   - name: SA_PASSWORD | ||||
|     value: Pass@word | ||||
|   volumes: | ||||
|     - source: eshop-sqldata | ||||
|       target: /var/opt/mssql | ||||
|    | ||||
| 
 | ||||
| - name: nosqldata | ||||
|   image: mongo | ||||
|   bindings: | ||||
|   - port: 27017 | ||||
|     containerPort: 27017 | ||||
|   volumes: | ||||
|     - source: eshop-nosqldata-four | ||||
|       target: /data/db | ||||
|    | ||||
| 
 | ||||
| - name: basketdata | ||||
|   image: redis:alpine | ||||
|   bindings: | ||||
|   - port: 6379 | ||||
|     containerPort: 6379 | ||||
|   volumes: | ||||
|     - source: eshop-basketdata | ||||
|       target: /data | ||||
|     containerPort: 6379   | ||||
| 
 | ||||
| - name: rabbitmq | ||||
|   image: rabbitmq:3-management-alpine | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user