Skip to content

Commit 1fbd7ec

Browse files
authored
Merge branch 'develop' into feature/WIN-183
2 parents d57085c + 1fc3cee commit 1fbd7ec

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

Src/StackifyLib/Config.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ public static void ReadStackifyJSONConfig()
292292
if (File.Exists(jsonPath))
293293
{
294294
using (var fs = new FileStream(jsonPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
295+
296+
if (string.IsNullOrEmpty(v))
295297
{
296298
using (var sr = new StreamReader(fs))
297299
{
@@ -356,6 +358,29 @@ public static void ReadStackifyJSONConfig(string filePath)
356358
{
357359
json = sr.ReadToEnd();
358360
}
361+
362+
#if NETCORE || NETCOREX
363+
if (_configuration != null && string.IsNullOrEmpty(v))
364+
{
365+
var appSettings = _configuration.GetSection("Stackify");
366+
v = appSettings[key.Replace("Stackify.", string.Empty)];
367+
368+
if (string.IsNullOrEmpty(v))
369+
{
370+
// Search in Retrace, but key will likely still be Stackify.name, not Retrace.name in the code
371+
var retraceAppSettings = _configuration.GetSection("Retrace");
372+
v = retraceAppSettings[key.Replace("Stackify.", string.Empty)];
373+
}
374+
}
375+
#endif
376+
377+
#if NETFULL
378+
if (string.IsNullOrEmpty(v))
379+
{
380+
v = System.Configuration.ConfigurationManager.AppSettings[key];
381+
}
382+
#endif
383+
359384
}
360385

361386
var obj = JObject.Parse(json, Settings);

Src/StackifyLib/ProfileTracer.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Specialized;
23
using System.Runtime.CompilerServices;
34
using System.Threading.Tasks;
45
using StackifyLib.Utils;
@@ -203,6 +204,12 @@ public ProfileTracer IgnoreChildFrames(bool value = true)
203204
return this;
204205
}
205206

207+
[MethodImpl(MethodImplOptions.PreserveSig | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
208+
public void ApplyDistributedHeaders(string traceparent,string tracestate)
209+
{
210+
211+
}
212+
206213
//Method the profiler looks for
207214
[MethodImpl(MethodImplOptions.PreserveSig | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
208215
private void ExecInternal2(string values, Action action)

Src/StackifyLib/StackifyLib.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<AssemblyTitle>Stackify API</AssemblyTitle>
5-
<VersionPrefix>2.2.2</VersionPrefix>
5+
<VersionPrefix>2.2.3</VersionPrefix>
66
<TargetFrameworks>netstandard2.0;net40;net45;net451;net452;net46;net461;net462</TargetFrameworks>
77
<AssemblyName>StackifyLib</AssemblyName>
88
<PackageId>StackifyLib</PackageId>
@@ -13,15 +13,15 @@
1313
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1414
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
1515
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
16-
<Version>2.2.2</Version>
16+
<Version>2.2.3-beta</Version>
1717
<Authors>StackifyLib</Authors>
1818
<PackageProjectUrl>https://github.com/stackify/stackify-api-dotnet</PackageProjectUrl>
1919
<PackageLicenseUrl>https://github.com/stackify/stackify-api-dotnet/blob/master/LICENSE</PackageLicenseUrl>
2020
<RepositoryUrl>https://github.com/stackify/stackify-api-dotnet</RepositoryUrl>
2121
<RepositoryType>git</RepositoryType>
2222
<PackageIconUrl>https://stackify.com/wp-content/uploads/2017/02/stk.png</PackageIconUrl>
23-
<AssemblyVersion>2.2.2.0</AssemblyVersion>
24-
<FileVersion>2.2.2.0</FileVersion>
23+
<AssemblyVersion>2.2.3.0</AssemblyVersion>
24+
<FileVersion>2.2.3.0</FileVersion>
2525
<PackageReleaseNotes>Remove default internal file logger</PackageReleaseNotes>
2626
</PropertyGroup>
2727

0 commit comments

Comments
 (0)