-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add old profile reminders #591
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,13 @@ | |
using SkyApm.PeerFormatters.SqlClient; | ||
using SkyApm.PeerFormatters.MySqlConnector; | ||
using ILoggerFactory = SkyApm.Logging.ILoggerFactory; | ||
using System.IO; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection | ||
{ | ||
public static class ServiceCollectionExtensions | ||
{ | ||
private static string oldConfigName = "skywalking.json"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When did we use this name? From which version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. skywalking.json??? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. 2.1 to 2.2? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It used to be this sywalk.json, I used the old version to upgrade to 2.2, but apache-skywalk-APM-9.5.0 view is empty, but I have dropped to 2.1, view the source code only to find that the configuration name has changed |
||
public static IServiceCollection AddSkyAPM(this IServiceCollection services, | ||
Action<SkyApmExtensions> extensionsSetup = null) | ||
{ | ||
|
@@ -56,7 +58,13 @@ public static IServiceCollection AddSkyAPM(this IServiceCollection services, | |
environment = "Development"; | ||
} | ||
|
||
if (File.Exists(oldConfigName)) | ||
{ | ||
throw new FileLoadException("The new configuration file name is skyapm.json, please update"); | ||
} | ||
|
||
IConfigurationBuilder configurationBuilder = new ConfigurationBuilder(); | ||
|
||
configurationBuilder.AddJsonFile("skyapm.json", true); | ||
configurationBuilder.AddJsonFile("skyapm." + environment + ".json", true); | ||
IConfiguration configuration = configurationBuilder.Build(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enable