Skip to content

Commit

Permalink
integration test tw4eaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Sep 5, 2024
1 parent f485b37 commit b801666
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ public void Test()
new() {metricName = "DotNet/Function1", callCount = 1},
new() {metricName = "DotNet/Function1", metricScope = "WebTransaction/AzureFunction/Function1", callCount = 1},
new() {metricName = "WebTransaction/AzureFunction/Function1", callCount = 1},
new() {metricName = "WebTransactionTotalTime/AzureFunction/Function1", callCount = 1},
new() {metricName = "Apdex/AzureFunction/Function1", callCount = 1},
};


var metrics = _fixture.AgentLog.GetMetrics().ToList();
Assertions.MetricsExist(expectedMetrics, metrics);

// TODO: when interaction with aspnetcore instrumentation is resolved, we should expect to see the Azure function transaction get sampled
//var transactionSample = _fixture.AgentLog.TryGetTransactionSample("WebTransaction/AzureFunction/Function1");
//Assert.NotNull(transactionSample);

Expand All @@ -79,7 +77,6 @@ public void Test()
Assert.Equal("Function1", faasNameValue);
Assert.True(transactionEvent.IntrinsicAttributes.TryGetValue("faas.trigger", out var faasTriggerValue));
Assert.Equal("http", faasTriggerValue);
Assert.True(transactionEvent.IntrinsicAttributes.TryGetValue("faas.invocation_id", out _));
}
}

Expand Down

0 comments on commit b801666

Please sign in to comment.