Skip to content

Fix duration.sum.us value in JSON #1166

Fix duration.sum.us value in JSON

Fix duration.sum.us value in JSON #1166

GitHub Actions / Linux Tests Summary failed Nov 9, 2023 in 1s

2519 passed, 1 failed and 76 skipped

Tests failed

Report Passed Failed Skipped Time
junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.CosmosDb.Tests.xml 21✔️ 23s
junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.Functions.Tests.xml 8✔️ 1s
junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.ServiceBus.Tests.xml 24✔️ 184s
junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.Storage.Tests.xml 29✔️ 9s
junit-profiler-linux-NETCoreApp70-Elastic.Apm.Profiler.Managed.Tests.xml 220✔️ 3✖️ 1303s
junit-startuphooks-linux-NETCoreApp70-Elastic.Apm.StartupHook.Tests.xml 12✔️ 201s
junit-unit-linux-NETCoreApp70-Elastic.Apm.AspNetCore.Static.Tests.xml 1✔️ 937ms
junit-unit-linux-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml 170✔️ 94s
junit-unit-linux-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml 11✔️ 62✖️ 84ms
junit-unit-linux-NETCoreApp70-Elastic.Apm.Docker.Tests.xml 9✔️ 1✖️ 24ms
junit-unit-linux-NETCoreApp70-Elastic.Apm.Elasticsearch.Tests.xml 3✔️ 4✖️ 3s
junit-unit-linux-NETCoreApp70-Elastic.Apm.EntityFrameworkCore.Tests.xml 6✔️ 2s
junit-unit-linux-NETCoreApp70-Elastic.Apm.Extensions.Hosting.Tests.xml 4✔️ 1✖️ 3s
junit-unit-linux-NETCoreApp70-Elastic.Apm.Extensions.Logging.Tests.xml 1✔️ 1s
junit-unit-linux-NETCoreApp70-Elastic.Apm.Grpc.Tests.xml 2✔️ 2s
junit-unit-linux-NETCoreApp70-Elastic.Apm.MongoDb.Tests.xml 2✔️ 261ms
junit-unit-linux-NETCoreApp70-Elastic.Apm.OpenTelemetry.Tests.xml 10✔️ 1✖️ 6s
junit-unit-linux-NETCoreApp70-Elastic.Apm.SqlClient.Tests.xml 7✔️ 12s
junit-unit-linux-NETCoreApp70-Elastic.Apm.StackExchange.Redis.Tests.xml 3✔️ 11s
junit-unit-linux-NETCoreApp70-Elastic.Apm.StaticExplicitInitialization.Tests.xml 1✔️ 208ms
junit-unit-linux-NETCoreApp70-Elastic.Apm.StaticImplicitInitialization.Tests.xml 1✔️ 268ms
junit-unit-linux-NETCoreApp70-Elastic.Apm.Tests.xml 1969✔️ 1❌ 4✖️ 1095s
junit-unit-linux-NETCoreApp70-Elastic.Clients.Elasticsearch.Tests.xml 5✔️ 1s

✔️ junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.CosmosDb.Tests.xml

21 tests were completed in 23s with 21 passed, 0 failed and 0 skipped.

✔️ junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.Functions.Tests.xml

8 tests were completed in 1s with 8 passed, 0 failed and 0 skipped.

✔️ junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.ServiceBus.Tests.xml

24 tests were completed in 184s with 24 passed, 0 failed and 0 skipped.

✔️ junit-azure-linux-NETCoreApp70-Elastic.Apm.Azure.Storage.Tests.xml

29 tests were completed in 9s with 29 passed, 0 failed and 0 skipped.

✔️ junit-profiler-linux-NETCoreApp70-Elastic.Apm.Profiler.Managed.Tests.xml

223 tests were completed in 1303s with 220 passed, 0 failed and 3 skipped.

✔️ junit-startuphooks-linux-NETCoreApp70-Elastic.Apm.StartupHook.Tests.xml

12 tests were completed in 201s with 12 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.AspNetCore.Static.Tests.xml

1 tests were completed in 937ms with 1 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.AspNetCore.Tests.xml

170 tests were completed in 94s with 170 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml

73 tests were completed in 84ms with 11 passed, 0 failed and 62 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.Docker.Tests.xml

10 tests were completed in 24ms with 9 passed, 0 failed and 1 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.Elasticsearch.Tests.xml

7 tests were completed in 3s with 3 passed, 0 failed and 4 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.EntityFrameworkCore.Tests.xml

6 tests were completed in 2s with 6 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.Extensions.Hosting.Tests.xml

5 tests were completed in 3s with 4 passed, 0 failed and 1 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.Extensions.Logging.Tests.xml

1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.Grpc.Tests.xml

2 tests were completed in 2s with 2 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.MongoDb.Tests.xml

2 tests were completed in 261ms with 2 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.OpenTelemetry.Tests.xml

11 tests were completed in 6s with 10 passed, 0 failed and 1 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.SqlClient.Tests.xml

7 tests were completed in 12s with 7 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.StackExchange.Redis.Tests.xml

3 tests were completed in 11s with 3 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.StaticExplicitInitialization.Tests.xml

1 tests were completed in 208ms with 1 passed, 0 failed and 0 skipped.

✔️ junit-unit-linux-NETCoreApp70-Elastic.Apm.StaticImplicitInitialization.Tests.xml

1 tests were completed in 268ms with 1 passed, 0 failed and 0 skipped.

❌ junit-unit-linux-NETCoreApp70-Elastic.Apm.Tests.xml

1974 tests were completed in 1095s with 1969 passed, 1 failed and 4 skipped.

Test suite Passed Failed Skipped Time
Elastic.Apm.Tests.dll 1969✔️ 1❌ 4✖️ 1095s

❌ Elastic.Apm.Tests.dll

Elastic.Apm.Tests.Cloud.AzureFunctionsMetadataProviderTests
Elastic.Apm.Tests.DbSpanNameTests
Elastic.Apm.Tests.HelpersTests
Elastic.Apm.Tests.ConstructorTests
Elastic.Apm.Tests.HelpersTests.ExceptionUtilsTests
Elastic.Apm.Tests.HelpersTests.UrlUtilsTests
Elastic.Apm.Tests.BasicAgentTests
Elastic.Apm.Tests.TestHelpers.EnumerableTestExtensionsTests
Elastic.Apm.Tests.Metrics.CgroupMetricsProviderTests
Elastic.Apm.Tests.HelpersTests.DbConnectionStringParserTests
Elastic.Apm.Tests.BackendCommTests.CentralConfig.CentralConfigResponseParserTests
Elastic.Apm.Tests.ApiTests.ApiTests
Elastic.Apm.Tests.DistributedTracing.BaggageTests
Elastic.Apm.Tests.Config.ConfigurationLoggingPreambleTests
Elastic.Apm.Tests.HelpersTests.ObjectExtensionsTests
Elastic.Apm.Tests.DistributedTracing.DistributedTracingTests
Elastic.Apm.Tests.HelpersTests.TimeExtensionsTests
Elastic.Apm.Tests.EnabledAndRecordingTests
Elastic.Apm.Tests.SamplerTests
Elastic.Apm.Tests.SerializationTests
  ❌ SerializationTests.DroppedSpanStatsTest
	Expected json "{"context":{},"dropped_spans_stats":[{"destination_service_resource":"foo.bar:443","service_target_type":"bar","service_target_name":"foo.bar:443","outcome":"success","duration":{"count":1,"sum":{"us":100}}}],"duration":2.604,"id":"081f63347aec82ce","sampled":true,"name":"foo","outcome":"success","sample_rate":1.0,"span_count":{"dropped":1,"started":1},"timestamp":1699535573110883,"trace_id":"d5891123c8ab0d3282beba3c9dfc9170","type":"test"}" to contain ""duration":{"count":1,"sum":{"us":100.0}}".
Elastic.Apm.Tests.BackendCommTests.BackendCommUtilsTests
Elastic.Apm.Tests.StackTraceTests
Elastic.Apm.Tests.InstrumentationFlagTests
Elastic.Apm.Tests.Extensions.EnvironmentVariablesExtensionsTests
Elastic.Apm.Tests.HelpersTests.CascadeFetcherTests
Elastic.Apm.Tests.LoggerTests
Elastic.Apm.Tests.UnsampledTransactionTests
Elastic.Apm.Tests.ListExtensionsTests
Elastic.Apm.Tests.DroppedSpansStatsTests
Elastic.Apm.Tests.ApiTests.ConvenientApiSpanTests
Elastic.Apm.Tests.Cloud.AzureAppServiceMetadataProviderTests
Elastic.Apm.Tests.HelpersTests.IntExtensionsTests
Elastic.Apm.Tests.MetricsTests
Elastic.Apm.Tests.HelpersTests.StringExtensionsTests
Elastic.Apm.Tests.HelpersTests.ContractExtensionsTests
Elastic.Apm.Tests.HelpersTests.LazyContextualInitTests
Elastic.Apm.Tests.BackendCommTests.CentralConfig.CentralConfigFetcherTests
Elastic.Apm.Tests.WorkingLoopTests
Elastic.Apm.Tests.HelpersTests.PlatformDetectionTests
Elastic.Apm.Tests.ExitSpanMinDurationTests
Elastic.Apm.Tests.BackendCommTests.ServiceActivationTests
Elastic.Apm.Tests.SpecTests
Elastic.Apm.Tests.TestHelpers.MultiThreadsTestUtilsTests
Elastic.Apm.Tests.ApiTests.UrlTests
Elastic.Apm.Tests.TransactionIgnoreUrlsTests
Elastic.Apm.Tests.Config.ConfigTests
Elastic.Apm.Tests.HelpersTests.TimeUtilsTests
Elastic.Apm.Tests.DiagnosticSource.DiagnosticListenerTests
Elastic.Apm.Tests.Extensions.EnumerableExtensionsTests
Elastic.Apm.Tests.LibrariesTests
Elastic.Apm.Tests.SystemInfoHelperTests
Elastic.Apm.Tests.Features.AgentFeaturesProviderTests
Elastic.Apm.Tests.Cloud.CloudMetadataProviderCollectionTests
Elastic.Apm.Tests.HelpersTests.DbgInstanceNameGeneratorTests
Elastic.Apm.Tests.HelpersTests.TextUtilsTests
Elastic.Apm.Tests.ErrorTests
Elastic.Apm.Tests.ExitSpanTests
Elastic.Apm.Tests.ApiTests.CulpritTests
Elastic.Apm.Tests.LabelTests
Elastic.Apm.Tests.SpanCompressionTests
Elastic.Apm.Tests.HelpersTests.DisposableHelperTests
Elastic.Apm.Tests.HelpersTests.CollectionExtensionsTests
Elastic.Apm.Tests.Cloud.GcpCloudMetadataProviderTests
Elastic.Apm.Tests.WildcardMatcherTests
Elastic.Apm.Tests.ApiTests.ExitSpanTests
Elastic.Apm.Tests.HelpersTests.ToStringBuilderTests
Elastic.Apm.Tests.DistributedTracing.TraceStateTests
Elastic.Apm.Tests.ServiceResourceTest
Elastic.Apm.Tests.ActivityIntegrationTests
Elastic.Apm.Tests.BreakdownTests
Elastic.Apm.Tests.LogValuesFormatterTests
Elastic.Apm.Tests.TestHelpers.RandomTestHelperTests
Elastic.Apm.Tests.ApiTests.ConvenientApiTransactionTests
Elastic.Apm.Tests.TestHelpers.TestingConfigTests
Elastic.Apm.Tests.ApmServerInfoProviderTests
Elastic.Apm.Tests.SpanTests
Elastic.Apm.Tests.Utilities.MockAgentTimerTests
Elastic.Apm.Tests.Config.ProfilerLogConfigTests
Elastic.Apm.Tests.ApiTests.DistributedTracingDataTests
Elastic.Apm.Tests.HelpersTests.DbgUtilsTests
Elastic.Apm.Tests.HelpersTests.AssertionTests
Elastic.Apm.Tests.TestHelpers.TextUtilsTests
Elastic.Apm.Tests.HelpersTests.AgentTimeInstantTests
Elastic.Apm.Tests.HelpersTests.AgentSpinLockTests
Elastic.Apm.Tests.TransactionSamplingTests
Elastic.Apm.Tests.ServerCertificateTests
Elastic.Apm.Tests.BackendCommTests.PayloadSenderTests
Elastic.Apm.Tests.Cloud.AzureCloudMetadataProviderTests
Elastic.Apm.Tests.Cloud.AwsCloudMetadataProviderTests
Elastic.Apm.Tests.FilterTests
Elastic.Apm.Tests.HelpersTests.AgentTimerTests
Elastic.Apm.Tests.HttpDiagnosticListenerTests

✔️ junit-unit-linux-NETCoreApp70-Elastic.Clients.Elasticsearch.Tests.xml

5 tests were completed in 1s with 5 passed, 0 failed and 0 skipped.

Annotations

Check failure on line 0 in junit-unit-linux-NETCoreApp70-Elastic.Apm.Tests.xml

See this annotation in the file changed.

@github-actions github-actions / Linux Tests Summary

Elastic.Apm.Tests.dll ► Elastic.Apm.Tests.SerializationTests ► SerializationTests.DroppedSpanStatsTest

Failed test found in:
  junit-unit-linux-NETCoreApp70-Elastic.Apm.Tests.xml
Error:
  Expected json "{"context":{},"dropped_spans_stats":[{"destination_service_resource":"foo.bar:443","service_target_type":"bar","service_target_name":"foo.bar:443","outcome":"success","duration":{"count":1,"sum":{"us":100}}}],"duration":2.604,"id":"081f63347aec82ce","sampled":true,"name":"foo","outcome":"success","sample_rate":1.0,"span_count":{"dropped":1,"started":1},"timestamp":1699535573110883,"trace_id":"d5891123c8ab0d3282beba3c9dfc9170","type":"test"}" to contain ""duration":{"count":1,"sum":{"us":100.0}}".
Raw output
Expected json "{"context":{},"dropped_spans_stats":[{"destination_service_resource":"foo.bar:443","service_target_type":"bar","service_target_name":"foo.bar:443","outcome":"success","duration":{"count":1,"sum":{"us":100}}}],"duration":2.604,"id":"081f63347aec82ce","sampled":true,"name":"foo","outcome":"success","sample_rate":1.0,"span_count":{"dropped":1,"started":1},"timestamp":1699535573110883,"trace_id":"d5891123c8ab0d3282beba3c9dfc9170","type":"test"}" to contain ""duration":{"count":1,"sum":{"us":100.0}}".
Stack Trace:
   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Primitives.StringAssertions.Contain(String expected, String because, Object[] becauseArgs)
   at Elastic.Apm.Tests.SerializationTests.DroppedSpanStatsTest() in /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/Elastic.Apm.Tests/SerializationTests.cs:line 498
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)