GithubHelp home page GithubHelp logo

isabella232 / moesif-aws-lambda-go-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moesif/moesif-aws-lambda-go-example

0.0 0.0 0.0 12 KB

Example using Moesif API Analytics with AWS Lambda

Go 100.00%

moesif-aws-lambda-go-example's Introduction

Moesif AWS Lambda Example for Go

Moesif is an API analytics platform. moesif-aws-lambda-go is a middleware that logs API calls to Moesif for AWS Lambda.

This example is a Go application with Moesif's API analytics and monitoring integrated.

How to run this example.

Make sure moesif-aws-lambda-go is installed. If not, you could install with go get github.com/moesif/moesif-aws-lambda-go

Create a new AWS Lambda function that is trigged by AWS API Gateway

Create a zip using following steps:

  1. GOOS=linux go build main.go
  2. zip function.zip main

Upload this zip, when prompted for handler, enter main

You will also want to add an environment vairable MOESIF_APPLICATION_ID with the value being your application id from your Moesif account.

Your Moesif Application Id can be found in the Moesif Portal. After signing up for a Moesif account, your Moesif Application Id will be displayed during the onboarding steps.

You can always find your Moesif Application Id at any time by logging into the Moesif Portal, click on the top right menu, and then clicking Installation.

Go to the URL for the API gateway such as https://XXXXXX.execute-api.us-west-2.amazonaws.com/default/my-test-function

The API Calls should show up in Moesif.

moesif-aws-lambda-go-example's People

Contributors

dgilling avatar dkm199 avatar keyur9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.