Skip to content

Commit

Permalink
Program:
Browse files Browse the repository at this point in the history
- Reduced call to controller timeout period from 3 minutes to 1 minute
- Log size increated to 50MB

Snapshots Report:
- Fixed OOM exception during extraction of really large call stacks
- Added a small check to the URL parsing of details of Exit to speed up the indexing

Flame Graphs Report:
- Added 20 coloring schemes for unknown frameworks
- Added legend of frameworks
- Added display of exits in the flowmap
- Added support for text color on the text

Dashboards Report:
- Added error handling on parsing of widgtts in dashboards that didn't get extracted

Detected APM Entities Report:
- Removed the link for the non-real Error IDs
  • Loading branch information
danielodievich committed Apr 18, 2019
1 parent 9b2abb5 commit e6f79c4
Show file tree
Hide file tree
Showing 34 changed files with 816 additions and 364 deletions.
2 changes: 2 additions & 0 deletions AppDynamics.Dexter.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<None Remove=".gitignore" />
<None Remove="packages.config" />
<None Remove="README.md" />
<None Remove="~%24MethodNamespaceTypeMapping.xlsm" />
<None Remove="~%24MethodNamespaceTypeMapping.xlsx" />
</ItemGroup>

<ItemGroup>
Expand Down
11 changes: 7 additions & 4 deletions ControllerApi/ControllerApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Net.Security;
using System.Reflection;
using System.Text;

namespace AppDynamics.Dexter
{
Expand All @@ -18,7 +20,8 @@ public class ControllerApi : IDisposable
private HttpClientHandler _httpClientHandler;
private CookieContainer _cookieContainer;

private System.Net.Security.RemoteCertificateValidationCallback ignoreBadCertificates = new System.Net.Security.RemoteCertificateValidationCallback(delegate { return true; });
// Always return true for the certificates, even if they are busted
private RemoteCertificateValidationCallback ignoreBadCertificates = new RemoteCertificateValidationCallback(delegate { return true; });

#endregion

Expand Down Expand Up @@ -46,15 +49,15 @@ public ControllerApi(string controllerURL, string userName, string userPassword)
this._httpClientHandler.CookieContainer = this._cookieContainer;

HttpClient httpClient = new HttpClient(this._httpClientHandler);
httpClient.Timeout = new TimeSpan(0, 3, 0);
httpClient.Timeout = new TimeSpan(0, 1, 0);
httpClient.BaseAddress = new Uri(this.ControllerUrl);
if (this.UserName == "BEARER")
if (this.UserName.ToUpper() == "BEARER")
{
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", this.Password);
}
else
{
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(String.Format("{0}:{1}", this.UserName, this.Password))));
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.ASCII.GetBytes(String.Format("{0}:{1}", this.UserName, this.Password))));
}
httpClient.DefaultRequestHeaders.Add("User-Agent", String.Format("AppDynamics DEXTER {0}", Assembly.GetEntryAssembly().GetName().Version));

Expand Down
1 change: 0 additions & 1 deletion DataObjects/JobConfiguration/JobOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ public class JobOutput
public bool DetectedEntities { get; set; }
public bool EntityMetrics { get; set; }
public bool EntityMetricGraphs { get; set; }
public bool Flowmaps { get; set; }
public bool EntityDetails { get; set; }
public bool Snapshots { get; set; }
public bool FlameGraphs { get; set; }
Expand Down
11 changes: 7 additions & 4 deletions FlameGraphTemplate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions Helpers/FileIOHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,29 @@ public static bool SaveFileToPath(string fileContents, string filePath, bool wri
return false;
}

public static TextWriter SaveFileToPathWithWriter(string filePath)
{
string folderPath = Path.GetDirectoryName(filePath);

if (CreateFolder(folderPath) == true)
{
try
{
logger.Trace("Opening TextWriter to file {0}", filePath);

return File.CreateText(filePath);
}
catch (Exception ex)
{
logger.Error("Unable to write to file {0}", filePath);
logger.Error(ex);

return null;
}
}
return null;
}

public static string ReadFileFromPath(string filePath)
{
try
Expand Down
Loading

0 comments on commit e6f79c4

Please sign in to comment.