Socket
Socket
Sign inDemoInstall

oly-node-sdk

Package Overview
Dependencies
120
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    oly-node-sdk

Components for building Node applications in Olympusat Cloud Platform


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
99.1 MB
Created
Weekly downloads
 

Readme

Source

Olympusat Node SDK

Reusable components for building Node applications in the Oly Cloud Platform

XRAY Tracing

Provides a simpler, unobtrusive interface for using XRAY to trace an application including decorators. All helpers return the values of the functions they call.

import XRAY from 'oly-node-sdk/build/src/xray'

  • XRAY.openTraceSegment(myFunction, label, options).then(...)
    • Required to call this at the head of your execution tree to open a context for tracing
    • Opens a trace segment on myFunction which can have subsegments to granularly trace program execution
    • label represents the name/label of the trace in AWS XRAY dashboard
    • options can include HTTP request information, metadata and xray annotations. See typescript annotations for more details.
    • Returns the result of myFunction()
  • Synchronus Functions
    • XRAY.traceFunction(myFunction, label, options): Traces non-async function and returns the result
    • XRAY.decorateMethod(label, options): Can be used with typescript class method decorator syntax to decorate a method with XRAY.traceFunction
    • XRAY.decorateFunction(myFunction, label, options): Returns a myFunction decorated with XRAY.traceFunction, useful for reuse and calling with arguments.
  • Asynchronus Functions
    • XRAY.traceAsyncFunction(myFunction, label, options): Traces async function and returns the result in a promise
    • XRAY.decorateAsyncMethod(label, options): Can be used with typescript class method decorator syntax to decorate an async method with XRAY.traceAsyncFunction
    • XRAY.decorateAsyncFunction(myFunction, label, options): Returns a myFunction decorated with XRAY.traceAsyncFunction, useful for reuse and calling with arguments.

Keywords

FAQs

Last updated on 22 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc