ScopeAgent-Reference is the reference app to showcase Scope integration and functionality in a .NET Core
Solution, containing examples for C#, VB.NET and F#
In order to execute it, please follow the instructions at https://scope.undefinedlabs.com/docs/dotnet-installation
| Path | Description |
|---|---|
src/Reference.Csharp |
C# project containing Models, Entities, Http clients, Redis clients and Database connectors as an application logic representation without any reference to Opentracing neither the ScopeAgent. |
src/Reference.VB |
VB.NET project containing Models, Entities, Http clients, Redis clients and Database connectors as an application logic representation without any reference to Opentracing neither the ScopeAgent. |
| Path | Description |
|---|---|
tests/csharp/Reference.Tests.CSharp.MSTest |
C# project for MSTest Framework |
tests/csharp/Reference.Tests.CSharp.NUnit |
C# project for NUnit Framework |
tests/csharp/Reference.Tests.CSharp.xUnit |
C# project for xUnit Framework |
tests/csharp/Reference.Tests.VB.MSTest |
VB.NET project for MSTest Framework |
tests/csharp/Reference.Tests.VB.NUnit |
VB.NET project for NUnit Framework |
tests/csharp/Reference.Tests.VB.xUnit |
VB.NET project for xUnit Framework |
tests/csharp/Reference.Tests.FSharp.MSTest |
F# project for MSTest Framework |
tests/csharp/Reference.Tests.FSharp.NUnit |
F# project for NUnit Framework |
tests/csharp/Reference.Tests.FSharp.xUnit |
F# project for xUnit Framework |
-
SimpleUnitTest: Unit tests without any Opentracing neither ScopeAgent dependency
OkTest: A simple UnitTest comparing two strings.View ResultsErrorTest: A simple UnitTest to demonstrate exception handling.View ResultsSkipTest: An empty UnitTest with theSkip/Ignoreattribute.View ResultsFailTest: A simple UnitTest to demonstrate anAssertexception.View Results
-
FactorialUnitTest
FactorialTest: UnitTest with a Factorial algorithm that creates an OpenTracingSpanandEventon every recursion using theGlobalTracerand theMicrosoft.Extensions.Logginglogger.View Results
-
SerilogUnitTest
SerilogExample: UnitTest demonstratingEventscreation using theSerilogstructured logger.View Results
-
NLogUnitTest
NLogExample: UnitTest demonstratingEventscreation using theNLogstructured logger.View Results
-
Log4NetUnitTest
Log4NetExample: UnitTest demonstratingEventscreation using thelog4netlogger.View Results
-
SimpleIntegrationTest: Integration tests without any Opentracing neither ScopeAgent dependency
HttpOK: A simpleHttpClientrequest to http://www.google.com.View ResultsHttpBadFormat: A simpleHttpClientrequest to http://www.badUrl.c213 to throw aBadRequestexception.View ResultsHttpKO: A simpleHttpClientrequest to http://localhost to throw aSocketExceptionexception (assuming no listener is setted on localhost:80).View Results
-
GeoIntegrationTest: (Available only on C# and VB.NET UnitTest Project)
-
ErrorIntegrationTest: An integration test with a remote service error.View Results -
CompleteOKTest: A complex UnitTest demonstrating:Spancreation using theGlobalTracer.Eventcreation using theMicrosoft.Extensions.Loggingstructured logger.Redisclient instrumentation.Httpclient instrumentation with an instrumented service (IntegrationTest).Httpclient instrumentation without an instrumented service.Entity frameworkinstrumentation using theSqlServerconnector.
-