From d13871647d529bf79676317e0a5f4142205242df Mon Sep 17 00:00:00 2001 From: Yami An Date: Sun, 25 Jun 2023 11:51:06 +0700 Subject: [PATCH] config apm --- .../appsettings.Development.json | 17 +++++------------ .../appsettings.Production.json | 17 +++++------------ 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/host/YANLib.HttpApi.Host/appsettings.Development.json b/host/YANLib.HttpApi.Host/appsettings.Development.json index 0c78601..124b9a9 100644 --- a/host/YANLib.HttpApi.Host/appsettings.Development.json +++ b/host/YANLib.HttpApi.Host/appsettings.Development.json @@ -87,17 +87,10 @@ } ] }, - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Information" - }, - "ElasticApm": { - "Enabled": true, - "ServerUrls": "http://localhost:8200", - "ServiceName": "YANLib", - "Environment": "Development", - "SecretToken": "" - } + "ElasticApm": { + "ServiceName": "YANLib", + "SecretToken": "", + "ServerUrl": "http://apm-server:8200", + "Environment": "Development" } } \ No newline at end of file diff --git a/host/YANLib.HttpApi.Host/appsettings.Production.json b/host/YANLib.HttpApi.Host/appsettings.Production.json index f23e41a..c9f3df8 100644 --- a/host/YANLib.HttpApi.Host/appsettings.Production.json +++ b/host/YANLib.HttpApi.Host/appsettings.Production.json @@ -87,17 +87,10 @@ } ] }, - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Information" - }, - "ElasticApm": { - "Enabled": true, - "ServerUrls": "http://localhost:8200", - "ServiceName": "YANLib", - "Environment": "Production", - "SecretToken": "" - } + "ElasticApm": { + "ServiceName": "YANLib", + "SecretToken": "", + "ServerUrl": "http://apm-server:8200", + "Environment": "Production" } } \ No newline at end of file