Skip to content
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

summary: Azure function support (preview) #2724

Merged
merged 56 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ea80daa
wip
tippmar-nr Aug 13, 2024
75422d6
Initial POC implementation is working
tippmar-nr Aug 13, 2024
e9ce99f
New instrumentation stuff
tippmar-nr Aug 13, 2024
e20c363
app name tweak
tippmar-nr Aug 14, 2024
3d511ad
cleanup
tippmar-nr Aug 14, 2024
494684c
More cleanup
tippmar-nr Aug 14, 2024
61201f4
added more trigger types
tippmar-nr Aug 14, 2024
707c3d9
Cleanup, optimization
tippmar-nr Aug 14, 2024
c967297
Updated Serilog to latest everywhere
tippmar-nr Aug 16, 2024
692236d
Minor cleanup
tippmar-nr Aug 16, 2024
fa2dd3e
Fix ilrepack issues for serilog
tippmar-nr Aug 16, 2024
ecc964a
Updated Serilog to latest everywhere
tippmar-nr Aug 16, 2024
a32b438
Fix ilrepack issues for serilog
tippmar-nr Aug 16, 2024
7e7c482
Refactor GuidGenerator to work around ILRepack of System.Diagnostics.…
tippmar-nr Aug 16, 2024
f61dee6
Null checking
tippmar-nr Aug 16, 2024
cf4f926
Merge branch 'chore/update-serilog' into poc/azure-function-instrumen…
tippmar-nr Aug 16, 2024
1304087
Visibility bypasser caching
tippmar-nr Aug 19, 2024
a4a0e77
Composite tests for GuidGenerator changes
tippmar-nr Aug 19, 2024
7a1cd92
Fixes for GuidGenerator unit testing
tippmar-nr Aug 19, 2024
6406d92
Revert composite test changes, exclude GuidGenerator
tippmar-nr Aug 20, 2024
1271df5
Merge branch 'main' into chore/update-serilog
tippmar-nr Aug 20, 2024
601a177
Reverting a change
tippmar-nr Aug 20, 2024
d3c0a22
Merge branch 'chore/update-serilog' of https://github.com/newrelic/ne…
tippmar-nr Aug 20, 2024
1e892ed
Merge branch 'chore/update-serilog' into poc/azure-function-instrumen…
tippmar-nr Aug 20, 2024
725c4ed
Limit profiler logging to INFO or higher when in Azure Function mode
tippmar-nr Aug 20, 2024
ba295aa
chore: Update Profiler NuGet Package Reference to v10.28.0.40 (#2703)
github-actions[bot] Aug 20, 2024
e618ce9
Merge branch 'poc/azure-function-instrumention/nugetupdate' into poc/…
tippmar-nr Aug 20, 2024
2d90a9e
Merge latest from main, resolve conflicts
tippmar-nr Aug 20, 2024
0279e83
Profiler updates for azure function detection
tippmar-nr Aug 20, 2024
d0b2c59
Merge latest from main
tippmar-nr Aug 20, 2024
5dc44b4
Modify app name priority for azure function
tippmar-nr Aug 20, 2024
d090551
log message oops
tippmar-nr Aug 21, 2024
527130b
chore: Update Profiler NuGet Package Reference to v10.29.0.32 (#2705)
github-actions[bot] Aug 21, 2024
6b66651
Fix logic for determining whether to instrument in azure function mode
tippmar-nr Aug 22, 2024
5bb20d0
Merge branch 'poc/azure-function-instrumentation' of https://github.c…
tippmar-nr Aug 22, 2024
d207723
Azure vendor info check wasn't correctly implemented
tippmar-nr Aug 26, 2024
6870167
ReportedConfig tweak
tippmar-nr Aug 26, 2024
3ec5ddb
Merge branch 'poc/azure-function-instrumentation' into feature/azure-…
jaffinito Aug 27, 2024
129cf1f
Fixed up resourse groups and some minor changes all around.
jaffinito Aug 29, 2024
9d739b5
Feature work: Azure Function Mode Config (#2723)
tippmar-nr Aug 30, 2024
fd03d84
Azure functions: Unit tests (#2726)
tippmar-nr Aug 30, 2024
5f48908
Finish remaining todos and initial code cleanup. (#2725)
jaffinito Aug 30, 2024
9483c5d
Merge branch 'main' into feature/azure-functions
tippmar-nr Sep 3, 2024
37d155e
Feature work: Azure functions integration test framework (#2737)
tippmar-nr Sep 5, 2024
9911b8a
Merge remote-tracking branch 'origin/main' into feature/azure-functions
tippmar-nr Sep 5, 2024
e41c19e
Feature work: More integration tests (#2739)
tippmar-nr Sep 6, 2024
5464347
Feature work: Disable AspNetCore middleware wrapper (#2740)
tippmar-nr Sep 9, 2024
e53ecd1
profiler unit test fix
tippmar-nr Sep 9, 2024
d87e318
Merge branch 'feature/azure-functions' of https://github.com/newrelic…
tippmar-nr Sep 9, 2024
557a867
Feature work: Added QueueTrigger function to integration tests (#2745)
tippmar-nr Sep 9, 2024
e2dadbb
Check azure site name for null and don't use as app name
tippmar-nr Sep 10, 2024
b14f9a7
Merge branch 'main' into feature/azure-functions
tippmar-nr Sep 10, 2024
99a3773
Update src/Agent/NewRelic/Agent/Core/Config/Configuration.cs
tippmar-nr Sep 10, 2024
50bce85
Change faas.coldStart to a boolean instead of string, to match OTel c…
tippmar-nr Sep 11, 2024
cce4ffe
Merge branch 'feature/azure-functions' of https://github.com/newrelic…
tippmar-nr Sep 11, 2024
7ac4712
integration test fixes
tippmar-nr Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/all_solutions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
strategy:
matrix:
namespace: [
AgentFeatures,
AgentFeatures,
AgentLogs,
AgentMetrics,
Api,
Expand All @@ -232,6 +232,7 @@ jobs:
AwsLambda.Sns,
AwsLambda.Sqs,
AwsLambda.WebRequest,
AzureFunction,
BasicInstrumentation,
CatInbound,
CatOutbound,
Expand Down Expand Up @@ -279,6 +280,8 @@ jobs:
# Make this variable true to enable extra data-gathering and logging to help troubleshoot test failures, at the cost of additional time and resources
enhanced_logging: false
NR_DOTNET_TEST_SAVE_WORKING_DIRECTORY: 1
azure_func_exe_path: C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\func.exe
NEW_RELIC_AZURE_FUNCTION_LOG_LEVEL_OVERRIDE: 1 # enables profiler debug logs when testing an azure function

steps:
- name: Checkout
Expand Down Expand Up @@ -330,6 +333,12 @@ jobs:
pip install aiohttp
shell: powershell

- name: Install Azure Functions Core Tools
if: matrix.namespace == 'AzureFunction'
run: |
choco install azure-functions-core-tools -y --params "'/x64'"
shell: powershell

- name: Run Integration Tests
run: |
if ($Env:enhanced_logging -eq $True) {
Expand Down
10 changes: 9 additions & 1 deletion FullAgent.sln
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Home", "src\Agent\NewRelic\
{279F8AD0-C959-476F-BD58-3581D9A33238} = {279F8AD0-C959-476F-BD58-3581D9A33238}
{2E6CF650-CB50-453D-830A-D00F0540FC2C} = {2E6CF650-CB50-453D-830A-D00F0540FC2C}
{2FB30555-65A4-43D7-82AA-56BF203D3A96} = {2FB30555-65A4-43D7-82AA-56BF203D3A96}
{338AD83A-ED68-438A-8FB1-E93A3AE87EA8} = {338AD83A-ED68-438A-8FB1-E93A3AE87EA8}
{37262C22-6A3A-4AD7-AB78-3853D2B2931D} = {37262C22-6A3A-4AD7-AB78-3853D2B2931D}
{3D69B4C9-FD16-461F-95AF-6FCA6EAA914E} = {3D69B4C9-FD16-461F-95AF-6FCA6EAA914E}
{44434B8F-EE14-49B0-855D-6EA0B48048BF} = {44434B8F-EE14-49B0-855D-6EA0B48048BF}
Expand Down Expand Up @@ -214,6 +215,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestSerializationHelpers.Te
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AwsSdk", "src\Agent\NewRelic\Agent\Extensions\Providers\Wrapper\AwsSdk\AwsSdk.csproj", "{37262C22-6A3A-4AD7-AB78-3853D2B2931D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureFunction", "src\Agent\NewRelic\Agent\Extensions\Providers\Wrapper\AzureFunction\AzureFunction.csproj", "{338AD83A-ED68-438A-8FB1-E93A3AE87EA8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -448,6 +451,10 @@ Global
{37262C22-6A3A-4AD7-AB78-3853D2B2931D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37262C22-6A3A-4AD7-AB78-3853D2B2931D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37262C22-6A3A-4AD7-AB78-3853D2B2931D}.Release|Any CPU.Build.0 = Release|Any CPU
{338AD83A-ED68-438A-8FB1-E93A3AE87EA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{338AD83A-ED68-438A-8FB1-E93A3AE87EA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{338AD83A-ED68-438A-8FB1-E93A3AE87EA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{338AD83A-ED68-438A-8FB1-E93A3AE87EA8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -516,10 +523,11 @@ Global
{173B1B8E-51D9-4639-88E9-B08065C2B47B} = {E5B988C0-5D19-407E-8210-71FFB90C579A}
{DC3E4801-A54A-42A4-AC45-DBD2F0CAE438} = {E5B988C0-5D19-407E-8210-71FFB90C579A}
{37262C22-6A3A-4AD7-AB78-3853D2B2931D} = {5E86E10A-C38F-48CB-ADE9-67B22BB2F50A}
{338AD83A-ED68-438A-8FB1-E93A3AE87EA8} = {5E86E10A-C38F-48CB-ADE9-67B22BB2F50A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.2\lib\NET35
SolutionGuid = {D8B98070-6B8E-403C-A07F-A3F2E4A3A3D0}
EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.2\lib\NET35
EndGlobalSection
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = FullAgent.vsmdi
Expand Down
2 changes: 2 additions & 0 deletions build/ArtifactBuilder/CoreAgentComponents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ protected override void CreateAgentComponents()
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.Bedrock.dll",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AwsLambda.dll",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AwsSdk.dll",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AzureFunction.dll",
};

var wrapperXmls = new[]
Expand All @@ -84,6 +85,7 @@ protected override void CreateAgentComponents()
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.Bedrock.Instrumentation.xml",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AwsLambda.Instrumentation.xml",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AwsSdk.Instrumentation.xml",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AzureFunction.Instrumentation.xml",
};

ExtensionXsd = $@"{SourceHomeBuilderPath}\extensions\extension.xsd";
Expand Down
2 changes: 2 additions & 0 deletions build/ArtifactBuilder/FrameworkAgentComponents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected override void CreateAgentComponents()
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.Kafka.dll",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.Bedrock.dll",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AwsSdk.dll",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AzureFunction.dll",
};

var wrapperXmls = new[]
Expand Down Expand Up @@ -105,6 +106,7 @@ protected override void CreateAgentComponents()
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.Kafka.Instrumentation.xml",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.Bedrock.Instrumentation.xml",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AwsSdk.Instrumentation.xml",
$@"{SourceHomeBuilderPath}\extensions\NewRelic.Providers.Wrapper.AzureFunction.Instrumentation.xml",
};

ExtensionXsd = $@"{SourceHomeBuilderPath}\extensions\extension.xsd";
Expand Down
16 changes: 14 additions & 2 deletions src/Agent/MsiInstaller/Installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ SPDX-License-Identifier: Apache-2.0
<Component Id="AwsSdkWrapperComponent" Guid="{00D58C03-D517-41CA-BBAD-DAC605EADD3E}">
<File Id="AwsSdkWrapperFile" Name="NewRelic.Providers.Wrapper.AwsSdk.dll" KeyPath="yes" Source="$(var.HomeFolderPath)\extensions\NewRelic.Providers.Wrapper.AwsSdk.dll" />
</Component>
<Component Id="AzureFunctionWrapperComponent" Guid="{949893C5-0212-447A-88A3-DDE3638DDC6E}">
<File Id="AzureFunctionWrapperFile" Name="NewRelic.Providers.Wrapper.AzureFunction.dll" KeyPath="yes" Source="$(var.HomeFolderPath)\extensions\NewRelic.Providers.Wrapper.AzureFunction.dll" />
</Component>
</ComponentGroup>

<ComponentGroup Id="CoreNewRelic.Agent.Extensions" Directory="CoreProgramFilesExtensionsFolder">
Expand Down Expand Up @@ -470,7 +473,10 @@ SPDX-License-Identifier: Apache-2.0
<Component Id="CoreAwsSdkWrapperComponent" Guid="{7C5E31CB-BA85-4E00-BA1B-99FA0B42E414}">
<File Id="CoreAwsSdkWrapperFile" Name="NewRelic.Providers.Wrapper.AwsSdk.dll" KeyPath="yes" Source="$(var.HomeFolderPath)_coreclr\extensions\NewRelic.Providers.Wrapper.AwsSdk.dll" />
</Component>
</ComponentGroup>
<Component Id="CoreAzureFunctionWrapperComponent" Guid="{6DC23A07-4063-462E-B43A-532D6F810AFE}">
<File Id="CoreAzureFunctionWrapperFile" Name="NewRelic.Providers.Wrapper.AzureFunction.dll" KeyPath="yes" Source="$(var.HomeFolderPath)_coreclr\extensions\NewRelic.Providers.Wrapper.AzureFunction.dll" />
</Component>
</ComponentGroup>

<!-- Wrapper Instrumentation Files-->
<ComponentGroup Id="NewRelic.Agent.Extensions.Instrumentation" Directory="FrameworkExtensionsFolder">
Expand Down Expand Up @@ -582,7 +588,10 @@ SPDX-License-Identifier: Apache-2.0
<Component Id="AwsSdkInstrumentationComponent" Guid="{E719FAC8-8D69-41EA-9395-B71868DA7449}">
<File Id="AwsSdkInstrumentationFile" Name="NewRelic.Providers.Wrapper.AwsSdk.Instrumentation.xml" KeyPath="yes" Source="$(var.HomeFolderPath)\extensions\NewRelic.Providers.Wrapper.AwsSdk.Instrumentation.xml" />
</Component>
</ComponentGroup>
<Component Id="AzureFunctionInstrumentationComponent" Guid="{0D802289-3B47-4D94-8907-285FFD2779AB}">
<File Id="AzureFunctionInstrumentationFile" Name="NewRelic.Providers.Wrapper.AzureFunction.Instrumentation.xml" KeyPath="yes" Source="$(var.HomeFolderPath)\extensions\NewRelic.Providers.Wrapper.AzureFunction.Instrumentation.xml" />
</Component>
</ComponentGroup>

<ComponentGroup Id="CoreNewRelic.Agent.Extensions.Instrumentation" Directory="CoreExtensionsFolder">
<Component Id="CoreAspNetCoreInstrumentationComponent" Guid="{E69FA7D5-DC09-4146-A77E-6EE697EF2910}">
Expand Down Expand Up @@ -651,6 +660,9 @@ SPDX-License-Identifier: Apache-2.0
<Component Id="CoreAwsSdkInstrumentationComponent" Guid="{CAB15FAE-EF3F-4998-9376-56DA4E11BAEF}">
<File Id="CoreAwsSdkInstrumentationFile" Name="NewRelic.Providers.Wrapper.AwsSdk.Instrumentation.xml" KeyPath="yes" Source="$(var.HomeFolderPath)_coreclr\extensions\NewRelic.Providers.Wrapper.AwsSdk.Instrumentation.xml"/>
</Component>
<Component Id="CoreAzureFunctionInstrumentationComponent" Guid="{BF3BEE66-A563-4A59-ADEC-65C3381C582E}">
<File Id="CoreAzureFunctionInstrumentationFile" Name="NewRelic.Providers.Wrapper.AzureFunction.Instrumentation.xml" KeyPath="yes" Source="$(var.HomeFolderPath)_coreclr\extensions\NewRelic.Providers.Wrapper.AzureFunction.Instrumentation.xml"/>
</Component>
</ComponentGroup>

<!-- Extensions XSD-->
Expand Down
3 changes: 2 additions & 1 deletion src/Agent/NewRelic/Agent/Core/AgentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ private void LogInitialized()
"NEW_RELIC_FORCE_NEW_TRANSACTION_ON_NEW_THREAD",
"NEW_RELIC_CODE_LEVEL_METRICS_ENABLED",
"NEW_RELIC_SEND_DATA_ON_EXIT",
"NEW_RELIC_SEND_DATA_ON_EXIT_THRESHOLD_MS"
"NEW_RELIC_SEND_DATA_ON_EXIT_THRESHOLD_MS",
"NEW_RELIC_AZURE_FUNCTION_MODE_ENABLED"
};

List<string> environmentVariablesSensitive = new List<string> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public interface IAttributeDefinitions
AttributeDefinition<object, object> GetCustomAttributeForTransaction(string name);

AttributeDefinition<object, object> GetLambdaAttribute(string name);
AttributeDefinition<object, object> GetFaasAttribute(string name);

AttributeDefinition<string, string> GetRequestParameterAttribute(string paramName);

Expand Down Expand Up @@ -188,6 +189,7 @@ public AttributeDefinitions(IAttributeFilter attribFilter)
private readonly ConcurrentDictionary<string, AttributeDefinition<string, string>> _requestParameterAttributes = new ConcurrentDictionary<string, AttributeDefinition<string, string>>();
private readonly ConcurrentDictionary<string, AttributeDefinition<string, string>> _requestHeadersAttributes = new ConcurrentDictionary<string, AttributeDefinition<string, string>>();
private readonly ConcurrentDictionary<string, AttributeDefinition<object, object>> _lambdaAttributes = new ConcurrentDictionary<string, AttributeDefinition<object, object>>();
private readonly ConcurrentDictionary<string, AttributeDefinition<object, object>> _faasAttributes = new();

private readonly ConcurrentDictionary<TypeAttributeValue, AttributeDefinition<TypeAttributeValue, string>> _typeAttributes = new ConcurrentDictionary<TypeAttributeValue, AttributeDefinition<TypeAttributeValue, string>>();

Expand Down Expand Up @@ -263,6 +265,22 @@ public AttributeDefinition<object, object> GetLambdaAttribute(string name)
return _lambdaAttributes.GetOrAdd(name, CreateLambdaAttribute);
}

private AttributeDefinition<object, object> CreateFaasAttribute(string attribName)
{
return AttributeDefinitionBuilder
.Create<object, object>(attribName, AttributeClassification.Intrinsics)
.AppliesTo(AttributeDestinations.TransactionTrace)
.AppliesTo(AttributeDestinations.TransactionEvent)
.AppliesTo(AttributeDestinations.SpanEvent)
.Build(_attribFilter);
}

public AttributeDefinition<object, object> GetFaasAttribute(string name)
{
return _faasAttributes.GetOrAdd(name, CreateFaasAttribute);
}


public AttributeDefinition<object, object> GetCustomAttributeForTransaction(string name)
{
return _trxCustomAttributes.GetOrAdd(name, CreateCustomAttributeForTransaction);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public interface IBootstrapConfiguration
ILogConfig LogConfig { get; }
string ServerlessFunctionName { get; }
string ServerlessFunctionVersion { get; }
bool AzureFunctionModeDetected { get; }
}

/// <summary>
Expand Down Expand Up @@ -130,6 +131,8 @@ public string AgentEnabledAt

public ILogConfig LogConfig { get; private set; }

public bool AzureFunctionModeDetected => ConfigLoaderHelpers.GetEnvironmentVar("FUNCTIONS_WORKER_RUNTIME") != null;

private bool CheckServerlessModeEnabled(configuration localConfiguration)
{
// We may need these later even if we don't use it now.
Expand Down
17 changes: 17 additions & 0 deletions src/Agent/NewRelic/Agent/Core/Config/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5722,6 +5722,8 @@ public partial class configurationUtilization

private bool detectKubernetesField;

private bool detectAzureFunctionField;

private System.Nullable<int> logicalProcessorsField;

private System.Nullable<int> totalRamMibField;
Expand All @@ -5739,6 +5741,7 @@ public configurationUtilization()
this.detectPcfField = true;
this.detectDockerField = true;
this.detectKubernetesField = true;
this.detectAzureFunctionField = true;
}

[System.Xml.Serialization.XmlAttributeAttribute()]
Expand Down Expand Up @@ -5825,6 +5828,20 @@ public bool detectKubernetes
}
}

[System.Xml.Serialization.XmlAttributeAttribute()]
[System.ComponentModel.DefaultValueAttribute(true)]
public bool detectAzureFunction
{
get
{
return this.detectAzureFunctionField;
}
set
{
this.detectAzureFunctionField = value;
}
}

[System.Xml.Serialization.XmlAttributeAttribute()]
public int logicalProcessors
{
Expand Down
7 changes: 7 additions & 0 deletions src/Agent/NewRelic/Agent/Core/Config/Configuration.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,13 @@
</xs:annotation>
</xs:attribute>

<xs:attribute name="detectAzureFunction" type="xs:boolean" default="true" use="optional">
<xs:annotation>
<xs:documentation>
This attribute controls whether to look for Azure Function environment variables (optional). The default is true.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="logicalProcessors" type="xs:int" use="optional">
<xs:annotation>
<xs:documentation>
Expand Down
Loading
Loading