Lumigo.DotNET 1.0.12

Install-Package Lumigo.DotNET -Version 1.0.12
dotnet add package Lumigo.DotNET --version 1.0.12
<PackageReference Include="Lumigo.DotNET" Version="1.0.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lumigo.DotNET --version 1.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Lumigo.DotNET, 1.0.12"
#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.12

// Install Lumigo.DotNET as a Cake Tool
#tool nuget:?package=Lumigo.DotNET&version=1.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Lumigo .NET Tracer

Nuget GitHub GitHub top language

Supported Runtimes: .NET Core 2.1, .NET Core 3.1

This readme explains how to deploy .NET Test function that impletemets "Lumigo .NET Tracer"

Adding NuGet Package

    Install-Package Lumigo.DotNET

Wrapping your Lambda

  • Wrap your lambda function by implementing a supplier which contains your code
public class Function : LumigoRequestHandler
    {
        public Function()
        {
            LumigoBootstrap.Bootstrap();
        }

        public async Task<string> FunctionHandler(string input, ILambdaContext context)
        {
            return await Handle(input, context, async () =>
            {
                //Your lambda code
                //return <result of type OUTPUT>;
            });
        }
    }
  • For handler return void use:
public class Function : LumigoRequestHandler
    {
        public Function()
        {
            LumigoBootstrap.Bootstrap();
        }

        public async Task FunctionHandler(string input, ILambdaContext context)
        {
            return await Handle(input, context, async () =>
            {
                //Your lambda code
            });
        }
    }

Configuration

Environment variables

    Adding `LUMIGO_TRACER_TOKEN` environment variables

Building and Deployment using the Serverless framework

  • Make sure you have dotnet installed on your machine by running brew install --cask dotnet.
  • Create a .Net project template by running sls create -t aws-csharp -n hello-world .. This command will create a .net template for a service named hello-world in current directory.
  • After creation run ./build.sh in the created template directory. The command will build th zip artifact for the Lambda.
  • Run sls deploy to deploy your lambda Pay attention Each time you are changing the code you need to run ./buid.sh and then sls deploy, incase you are only changing the serverless.yml run sls deploy

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.12 34 10/14/2021
1.0.11 41 10/13/2021
1.0.10 129 9/29/2021
1.0.2.2 84 9/14/2021
1.0.2.1 176 8/24/2021
1.0.2 53 8/24/2021
1.0.1.6 54 8/24/2021
1.0.1.5 49 8/24/2021
1.0.1.4 60 8/24/2021
1.0.1.3 62 8/24/2021
1.0.1.2 71 8/23/2021
1.0.1.1 55 8/23/2021
1.0.1 75 8/19/2021