Giter VIP home page Giter VIP logo

poc-ls-dynamo's Introduction

POC: long running traces using a dynamodb buffer and AWS Lambda

See individual function folders for write ups on each function.

FYI: The sample access token is checked into this repo and would need to be replaced.

The overall flow is:

App Tracing Client --> AWS Lambda pushTraces --> DynamoDB spanTable --> AWS Lambda listener --> LightStep Satellites --> LightStep SaaS

In Stackery this looks like: Imgur

The biggest limiter to long running traces in LightStep is Satellite recall. This POC gets around this limitation by buffering spans in DynamoDB (a performant transactional nosql database), listening to the database via emitted events, and pulling and submitting all spans associated to a trace when it detects the trace is finished via a finished_flag: true span tag on the longest running/final span of the long running transaction.

In the product, this still enables all features except the Latency Histogram in Explorer (since that histgoram is displaying logarithmically and assuming that all spans will be of a shorter duration). One caveat, traces with an extremely high amount of spans may not look nice in the Trace View page. Until this is mitigated in some way in the product, a work around could be achieved by creating lower fidelity traces in some way (i.e. having a verbosity flag, purposeful exclusion in the listener, etc.)

This POC was made with https://www.stackery.io/ as the deployment manager and CloudFormation template generator.

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.