Lumigo.DotNET 1.0.38

.NET Standard 2.0
dotnet add package Lumigo.DotNET --version 1.0.38
NuGet\Install-Package Lumigo.DotNET -Version 1.0.38
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lumigo.DotNET" Version="1.0.38" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lumigo.DotNET --version 1.0.38
#r "nuget: Lumigo.DotNET, 1.0.38"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Lumigo.DotNET as a Cake Addin
#addin nuget:?package=Lumigo.DotNET&version=1.0.38

// Install Lumigo.DotNET as a Cake Tool
#tool nuget:?package=Lumigo.DotNET&version=1.0.38

Lumigo.io

CircleCI Nuget

Easily trace your .NET Lambda functions using the Lumigo platform 🚀

Supported Runtimes

  • .NET Core 3.1
  • .NET 6

Setup

Installation

Add the Lumigo tracer package via NuGet by running:

dotnet add package Lumigo.DotNET

Wrapping Your Lambda

Wrap your lambda function by implementing a supplier which contains your code:

sync handler:
using Lumigo.DotNET;
using Lumigo.DotNET.Instrumentation;
...
public class Function : LumigoRequestHandler
    {
        public Function()
        {
            LumigoBootstrap.Bootstrap();
        }

        public Response FunctionHandler(string input, ILambdaContext context)
        {
            return Handle(input, context, () =>
            {
                //Your lambda code
                //return <result>; - For void functions remove the return statements
            });
        }
    }
async handler:
using Lumigo.DotNET;
using Lumigo.DotNET.Instrumentation;
...
public class Function : LumigoRequestHandler
    {
        public Function()
        {
            LumigoBootstrap.Bootstrap();
        }

        public async Task<Response> FunctionHandler(string input, ILambdaContext context)
        {
            return await Handle(input, context, async () =>
            {
                //Your lambda code
                //return <result>; - For void functions remove the return statements
            });
        }
    }

Connect Your Lumigo Account

Add LUMIGO_TRACER_TOKEN environment variable to connect the tracing to your Lumigo account.

Track HTTP Requests

To track HTTP requests add UseLumigo to the HTTP client:

using Amazon.Lambda.Core;

using Lumigo.DotNET;
using Lumigo.DotNET.Instrumentation;
using Lumigo.DotNET.Utilities.Extensions;

using System.Net.Http;

[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))]

namespace HelloDotNet6 {

    public class Function : LumigoRequestHandler
    {
        public Function()
        {
            LumigoBootstrap.Bootstrap();
        }

        public async Task<string> Handler(string input, ILambdaContext context)
        {
            return await Handle(input, context, async () =>
                {
                    HttpResponseMessage response = await new HttpClient().UseLumigo().GetAsync("https://httpbin.org/status/200");
                    response.EnsureSuccessStatusCode();
                    return "\"Hello world\"";
                }
            );
        }
    }
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.38 136 10/2/2022
1.0.37 120 10/2/2022
1.0.36 393 1/4/2022
1.0.35 163 12/22/2021
1.0.34 153 12/16/2021
1.0.33 157 12/16/2021
1.0.32 152 12/16/2021
1.0.31 279 12/14/2021
1.0.30 139 12/14/2021
1.0.29 152 12/13/2021
1.0.28 140 12/12/2021
1.0.27 158 12/1/2021
1.0.26 146 11/30/2021
1.0.25 153 11/30/2021
1.0.24 145 11/29/2021
1.0.23 149 11/29/2021
1.0.22 1,081 11/18/2021
1.0.21 162 11/18/2021
1.0.20 346 11/3/2021
1.0.19 197 11/3/2021
1.0.18 176 11/1/2021
1.0.17 260 10/31/2021
1.0.16 226 10/27/2021
1.0.15 179 10/27/2021
1.0.14 190 10/27/2021
1.0.13 195 10/25/2021
1.0.12 166 10/14/2021
1.0.11 171 10/13/2021
1.0.10 309 9/29/2021
1.0.2.2 252 9/14/2021
1.0.2.1 432 8/24/2021
1.0.2 177 8/24/2021
1.0.1.6 447 8/24/2021
1.0.1.5 173 8/24/2021
1.0.1.4 189 8/24/2021
1.0.1.3 183 8/24/2021
1.0.1.2 252 8/23/2021
1.0.1.1 189 8/23/2021
1.0.1 208 8/19/2021